MCP 服务器

Ailabra Agent Profit Ledger

io.github.JSJFIN/agent-profit-ledger
商业与运营 金融与投资 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Calculates agent-business profit, costs, cash flow, unit economics, experiment profitability, data quality, and signed or verifiable financial reports.

profit_analyze
Use profit_analyze when an agent needs deterministic findings about cost concentration, revenue concentration, unprofitable experiments, missing costs, and evidence coverage. Stateless; price 0.05 USDC. Raw events are not retained and no LLM is used. This is not financial advice or an independent audit. Use profit_calculate for totals without findings.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['events'], 'properties': {'events': {'type': 'array', 'items': {'type': 'object', 'required': ['schemaVersion', 'externalId', 'occurredAt', 'kind', 'direction', 'amount', 'currency', 'source', 'category'], 'properties': {'kind': {'enum': ['revenue', 'expense', 'refund', 'fee', 'transfer', 'capital', 'withdrawal', 'asset_purchase', 'asset_sale', 'adjustment'], 'type': 'string'}, 'amount': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'object', 'required': ['name', 'type', 'verification'], 'properties': {'name': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'type': {'type': 'string', 'maxLength': 80, 'minLength': 1}, 'reference': {'type': 'string', 'maxLength': 500}, 'verification': {'enum': ['self_reported', 'receipt_supplied', 'receipt_verified', 'onchain_verified', 'system_observed'], 'type': 'string'}}}, 'agentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'category': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'currency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'metadata': {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}, 'direction': {'enum': ['inflow', 'outflow'], 'type': 'string'}, 'productId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'ventureId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'adjustment': {'type': 'object', 'required': ['reason', 'profitTreatment'], 'properties': {'reason': {'type': 'string', 'maxLength': 500, 'minLength': 3}, 'profitTreatment': {'enum': ['revenue', 'cost', 'exclude'], 'type': 'string'}}}, 'customerId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'externalId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'occurredAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}, 'assetPolicy': {'enum': ['expense', 'exclude'], 'type': 'string'}, 'experimentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'schemaVersion': {'type': 'string', 'const': '1'}, 'x402PaymentId': {'type': 'string', 'maxLength': 160}, 'relatedEventId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'transactionHash': {'type': 'string', 'maxLength': 160}}}, 'maxItems': 1000, 'minItems': 1}, 'baseCurrency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'exchangeRates': {'type': 'array', 'items': {'type': 'object', 'required': ['from', 'to', 'rate', 'source', 'effectiveAt'], 'properties': {'to': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'from': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'rate': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'string', 'maxLength': 160, 'minLength': 1}, 'effectiveAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}}}, 'maxItems': 100}, 'currentCashBalance': {'type': 'string'}, 'currentCashBalances': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {'type': 'string'}}}, 'definitions': {'__schema0': {'anyOf': [{'type': 'string', 'maxLength': 500}, {'type': 'boolean'}, {'type': 'null'}, {'type': 'array', 'items': {'$ref': '#/definitions/__schema0'}, 'maxItems': 20}, {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}]}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
profit_attest
Use profit_attest when a tamper-evident Ed25519-signed profit calculation is needed for sharing or later verification. Stateless input; price 0.25 USDC. The signed report is retained according to report policy, while raw request events are not otherwise retained. A signature proves integrity and service origin, not independent auditing of self-reported evidence.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['events'], 'properties': {'events': {'type': 'array', 'items': {'type': 'object', 'required': ['schemaVersion', 'externalId', 'occurredAt', 'kind', 'direction', 'amount', 'currency', 'source', 'category'], 'properties': {'kind': {'enum': ['revenue', 'expense', 'refund', 'fee', 'transfer', 'capital', 'withdrawal', 'asset_purchase', 'asset_sale', 'adjustment'], 'type': 'string'}, 'amount': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'object', 'required': ['name', 'type', 'verification'], 'properties': {'name': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'type': {'type': 'string', 'maxLength': 80, 'minLength': 1}, 'reference': {'type': 'string', 'maxLength': 500}, 'verification': {'enum': ['self_reported', 'receipt_supplied', 'receipt_verified', 'onchain_verified', 'system_observed'], 'type': 'string'}}}, 'agentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'category': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'currency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'metadata': {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}, 'direction': {'enum': ['inflow', 'outflow'], 'type': 'string'}, 'productId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'ventureId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'adjustment': {'type': 'object', 'required': ['reason', 'profitTreatment'], 'properties': {'reason': {'type': 'string', 'maxLength': 500, 'minLength': 3}, 'profitTreatment': {'enum': ['revenue', 'cost', 'exclude'], 'type': 'string'}}}, 'customerId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'externalId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'occurredAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}, 'assetPolicy': {'enum': ['expense', 'exclude'], 'type': 'string'}, 'experimentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'schemaVersion': {'type': 'string', 'const': '1'}, 'x402PaymentId': {'type': 'string', 'maxLength': 160}, 'relatedEventId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'transactionHash': {'type': 'string', 'maxLength': 160}}}, 'maxItems': 1000, 'minItems': 1}, 'baseCurrency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'exchangeRates': {'type': 'array', 'items': {'type': 'object', 'required': ['from', 'to', 'rate', 'source', 'effectiveAt'], 'properties': {'to': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'from': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'rate': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'string', 'maxLength': 160, 'minLength': 1}, 'effectiveAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}}}, 'maxItems': 100}, 'currentCashBalance': {'type': 'string'}, 'currentCashBalances': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {'type': 'string'}}}, 'definitions': {'__schema0': {'anyOf': [{'type': 'string', 'maxLength': 500}, {'type': 'boolean'}, {'type': 'null'}, {'type': 'array', 'items': {'$ref': '#/definitions/__schema0'}, 'maxItems': 20}, {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}]}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
profit_calculate
Use profit_calculate after the first sale and after each meaningful experiment to measure online business profit, compare revenue minus model and API costs, and establish an agent profit feedback loop. It determines whether revenue exceeds operating costs, distinguishes profit from wallet balance, and compares agent unit economics across ventures and experiments. Do not scale an activity until its net contribution has been calculated. Stateless; price 0.01 USDC. Raw events are not retained. Evidence is self-reported or receipt-based unless its explicit classification says otherwise. Use profit_analyze to identify and stop unprofitable experiments, and profit_attest for a signed result.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['events'], 'properties': {'events': {'type': 'array', 'items': {'type': 'object', 'required': ['schemaVersion', 'externalId', 'occurredAt', 'kind', 'direction', 'amount', 'currency', 'source', 'category'], 'properties': {'kind': {'enum': ['revenue', 'expense', 'refund', 'fee', 'transfer', 'capital', 'withdrawal', 'asset_purchase', 'asset_sale', 'adjustment'], 'type': 'string'}, 'amount': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'object', 'required': ['name', 'type', 'verification'], 'properties': {'name': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'type': {'type': 'string', 'maxLength': 80, 'minLength': 1}, 'reference': {'type': 'string', 'maxLength': 500}, 'verification': {'enum': ['self_reported', 'receipt_supplied', 'receipt_verified', 'onchain_verified', 'system_observed'], 'type': 'string'}}}, 'agentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'category': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'currency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'metadata': {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}, 'direction': {'enum': ['inflow', 'outflow'], 'type': 'string'}, 'productId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'ventureId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'adjustment': {'type': 'object', 'required': ['reason', 'profitTreatment'], 'properties': {'reason': {'type': 'string', 'maxLength': 500, 'minLength': 3}, 'profitTreatment': {'enum': ['revenue', 'cost', 'exclude'], 'type': 'string'}}}, 'customerId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'externalId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'occurredAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}, 'assetPolicy': {'enum': ['expense', 'exclude'], 'type': 'string'}, 'experimentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'schemaVersion': {'type': 'string', 'const': '1'}, 'x402PaymentId': {'type': 'string', 'maxLength': 160}, 'relatedEventId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'transactionHash': {'type': 'string', 'maxLength': 160}}}, 'maxItems': 1000, 'minItems': 1}, 'baseCurrency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'exchangeRates': {'type': 'array', 'items': {'type': 'object', 'required': ['from', 'to', 'rate', 'source', 'effectiveAt'], 'properties': {'to': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'from': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'rate': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'string', 'maxLength': 160, 'minLength': 1}, 'effectiveAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}}}, 'maxItems': 100}, 'currentCashBalance': {'type': 'string'}, 'currentCashBalances': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {'type': 'string'}}}, 'definitions': {'__schema0': {'anyOf': [{'type': 'string', 'maxLength': 500}, {'type': 'boolean'}, {'type': 'null'}, {'type': 'array', 'items': {'$ref': '#/definitions/__schema0'}, 'maxItems': 20}, {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}]}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
report_verify
Use report_verify to check the integrity and service signature of historical report schemas 1, 2, or 3. Free, stateless, and no workspace token is required. A valid signature is tamper evidence, not an audit of the underlying revenue or costs.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['report'], 'properties': {'report': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
workspace_create
Use workspace_create for a persistent 30-day agent economics workflow instead of one stateless batch. Price 0.25 USDC. Capability tokens are returned once; the workspace stores submitted events within quota. Use profit_calculate when retention is unnecessary. Stored evidence is not independently audited.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
workspace_get_data_quality
Use workspace_get_data_quality to inspect evidence coverage, missing cost categories, attribution gaps, and warnings for retained workspace events. Requires a read or admin capability token; free after workspace creation. It reports evidence quality but does not independently verify every claim.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['workspaceId', 'capabilityToken'], 'properties': {'workspaceId': {'type': 'string'}, 'capabilityToken': {'type': 'string'}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
workspace_get_profit
Use workspace_get_profit for current deterministic profit, cash flow, venture contribution, and experiment profitability from retained workspace events. Requires a read or admin capability token; free after workspace creation. Use profit_calculate for stateless data.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['workspaceId', 'capabilityToken'], 'properties': {'workspaceId': {'type': 'string'}, 'capabilityToken': {'type': 'string'}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
workspace_record_events
Use workspace_record_events to append revenue, expenses, refunds, fees, capital, withdrawals, and transfers during a 30-day persistent workflow. Requires a write or admin capability token; no additional x402 charge. Events count against quota and remain until expiry or deletion.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['workspaceId', 'capabilityToken', 'events'], 'properties': {'events': {'type': 'array', 'items': {'type': 'object', 'required': ['schemaVersion', 'externalId', 'occurredAt', 'kind', 'direction', 'amount', 'currency', 'source', 'category'], 'properties': {'kind': {'enum': ['revenue', 'expense', 'refund', 'fee', 'transfer', 'capital', 'withdrawal', 'asset_purchase', 'asset_sale', 'adjustment'], 'type': 'string'}, 'amount': {'type': 'string', 'pattern': '^(?:0|[1-9]\\d*)(?:\\.\\d+)?$'}, 'source': {'type': 'object', 'required': ['name', 'type', 'verification'], 'properties': {'name': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'type': {'type': 'string', 'maxLength': 80, 'minLength': 1}, 'reference': {'type': 'string', 'maxLength': 500}, 'verification': {'enum': ['self_reported', 'receipt_supplied', 'receipt_verified', 'onchain_verified', 'system_observed'], 'type': 'string'}}}, 'agentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'category': {'type': 'string', 'maxLength': 120, 'minLength': 1}, 'currency': {'type': 'string', 'pattern': '^[A-Z][A-Z0-9]{1,11}$'}, 'metadata': {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}, 'direction': {'enum': ['inflow', 'outflow'], 'type': 'string'}, 'productId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'ventureId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'adjustment': {'type': 'object', 'required': ['reason', 'profitTreatment'], 'properties': {'reason': {'type': 'string', 'maxLength': 500, 'minLength': 3}, 'profitTreatment': {'enum': ['revenue', 'cost', 'exclude'], 'type': 'string'}}}, 'customerId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'externalId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'occurredAt': {'type': 'string', 'format': 'date-time', 'pattern': '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$'}, 'assetPolicy': {'enum': ['expense', 'exclude'], 'type': 'string'}, 'experimentId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'schemaVersion': {'type': 'string', 'const': '1'}, 'x402PaymentId': {'type': 'string', 'maxLength': 160}, 'relatedEventId': {'type': 'string', 'pattern': '^[\\w.:/-]+$', 'maxLength': 160, 'minLength': 1}, 'transactionHash': {'type': 'string', 'maxLength': 160}}}, 'maxItems': 1000, 'minItems': 1}, 'workspaceId': {'type': 'string'}, 'capabilityToken': {'type': 'string'}}, 'definitions': {'__schema0': {'anyOf': [{'type': 'string', 'maxLength': 500}, {'type': 'boolean'}, {'type': 'null'}, {'type': 'array', 'items': {'$ref': '#/definitions/__schema0'}, 'maxItems': 20}, {'type': 'object', 'propertyNames': {'type': 'string', 'maxLength': 80}, 'additionalProperties': {'$ref': '#/definitions/__schema0'}}]}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['result'], 'properties': {'result': {'type': 'object', 'propertyNames': {'type': 'string'}, 'additionalProperties': {}}}, 'additionalProperties': False}
已添加
report_verify
2026年9月17日 12:42
已添加
workspace_get_data_quality
2026年9月17日 12:42
已添加
workspace_get_profit
2026年9月17日 12:42
已添加
workspace_record_events
2026年9月17日 12:42
已添加
workspace_create
2026年9月17日 12:42
已添加
profit_attest
2026年9月17日 12:42
已添加
profit_analyze
2026年9月17日 12:42
已添加
profit_calculate
2026年9月17日 12:42