Ailabra Agent Profit Ledger

Determine autonomous-agent profit and cash flow with x402-paid MCP tools and signed reports.

사용해야 할까요

품질 및 안전성

A
설명 품질
100%
스키마 완전성
74%
이름 품질
80%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~5,847토큰 (도구 정의)
~6.3 KB일반적인 응답 크기
상당한 주의 영향 (128k 컨텍스트의 4.57%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "agent-profit-ledger": {
      "url": "https://x402.ailabra.org/mcp"
    }
  }
}

원격 엔드포인트

https://x402.ailabra.org/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (8)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢profit_calculate(events, baseCurrency, exchangeRates, currentCashBalance, currentCashBalances)

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",
  "properties": {
    "events": {
      "minItems": 1,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "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)))$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "revenue",
              "expense",
              "refund",
              "fee",
              "transfer",
              "capital",
              "withdrawal",
              "asset_purchase",
              "asset_sale",
              "adjustment"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "inflow",
              "outflow"
            ]
          },
          "amount": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "verification": {
                "type": "string",
                "enum": [
                  "self_reported",
                  "receipt_supplied",
                  "receipt_verified",
                  "onchain_verified",
                  "system_observed"
                ]
              },
              "reference": {
                "type": "string",
                "maxLength": 500
              }
            },
            "required": [
              "name",
              "type",
              "verification"
            ]
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "ventureId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "experimentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "customerId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "relatedEventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "transactionHash": {
            "type": "string",
            "maxLength": 160
          },
          "x402PaymentId": {
            "type": "string",
            "maxLength": 160
          },
          "metadata": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "$ref": "#/definitions/__schema0"
            }
          },
          "adjustment": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 3,
                "maxLength": 500
              },
              "profitTreatment": {
                "type": "string",
                "enum": [
                  "revenue",
                  "cost",
                  "exclude"
                ]
              }
            },
            "required": [
              "reason",
              "profitTreatment"
            ]
          },
          "assetPolicy": {
            "type": "string",
            "enum": [
              "expense",
              "exclude"
            ]
          }
        },
        "required": [
          "schemaVersion",
          "externalId",
          "occurredAt",
          "kind",
          "direction",
          "amount",
          "currency",
          "source",
          "category"
        ]
      }
    },
    "baseCurrency": {
      "type": "string",
      "pattern": "^[A-Z][A-Z0-9]{1,11}$"
    },
    "exchangeRates": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "to": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "rate": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "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)))$"
          }
        },
        "required": [
          "from",
          "to",
          "rate",
          "source",
          "effectiveAt"
        ]
      }
    },
    "currentCashBalance": {
      "type": "string"
    },
    "currentCashBalances": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "events"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "maxLength": 80
          },
          "additionalProperties": {
            "$ref": "#/definitions/__schema0"
          }
        }
      ]
    }
  }
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢profit_analyze(events, baseCurrency, exchangeRates, currentCashBalance, currentCashBalances)

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",
  "properties": {
    "events": {
      "minItems": 1,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "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)))$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "revenue",
              "expense",
              "refund",
              "fee",
              "transfer",
              "capital",
              "withdrawal",
              "asset_purchase",
              "asset_sale",
              "adjustment"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "inflow",
              "outflow"
            ]
          },
          "amount": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "verification": {
                "type": "string",
                "enum": [
                  "self_reported",
                  "receipt_supplied",
                  "receipt_verified",
                  "onchain_verified",
                  "system_observed"
                ]
              },
              "reference": {
                "type": "string",
                "maxLength": 500
              }
            },
            "required": [
              "name",
              "type",
              "verification"
            ]
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "ventureId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "experimentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "customerId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "relatedEventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "transactionHash": {
            "type": "string",
            "maxLength": 160
          },
          "x402PaymentId": {
            "type": "string",
            "maxLength": 160
          },
          "metadata": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "$ref": "#/definitions/__schema0"
            }
          },
          "adjustment": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 3,
                "maxLength": 500
              },
              "profitTreatment": {
                "type": "string",
                "enum": [
                  "revenue",
                  "cost",
                  "exclude"
                ]
              }
            },
            "required": [
              "reason",
              "profitTreatment"
            ]
          },
          "assetPolicy": {
            "type": "string",
            "enum": [
              "expense",
              "exclude"
            ]
          }
        },
        "required": [
          "schemaVersion",
          "externalId",
          "occurredAt",
          "kind",
          "direction",
          "amount",
          "currency",
          "source",
          "category"
        ]
      }
    },
    "baseCurrency": {
      "type": "string",
      "pattern": "^[A-Z][A-Z0-9]{1,11}$"
    },
    "exchangeRates": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "to": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "rate": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "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)))$"
          }
        },
        "required": [
          "from",
          "to",
          "rate",
          "source",
          "effectiveAt"
        ]
      }
    },
    "currentCashBalance": {
      "type": "string"
    },
    "currentCashBalances": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "events"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "maxLength": 80
          },
          "additionalProperties": {
            "$ref": "#/definitions/__schema0"
          }
        }
      ]
    }
  }
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
⚪profit_attest(events, baseCurrency, exchangeRates, currentCashBalance, currentCashBalances)

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",
  "properties": {
    "events": {
      "minItems": 1,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "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)))$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "revenue",
              "expense",
              "refund",
              "fee",
              "transfer",
              "capital",
              "withdrawal",
              "asset_purchase",
              "asset_sale",
              "adjustment"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "inflow",
              "outflow"
            ]
          },
          "amount": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "verification": {
                "type": "string",
                "enum": [
                  "self_reported",
                  "receipt_supplied",
                  "receipt_verified",
                  "onchain_verified",
                  "system_observed"
                ]
              },
              "reference": {
                "type": "string",
                "maxLength": 500
              }
            },
            "required": [
              "name",
              "type",
              "verification"
            ]
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "ventureId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "experimentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "customerId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "relatedEventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "transactionHash": {
            "type": "string",
            "maxLength": 160
          },
          "x402PaymentId": {
            "type": "string",
            "maxLength": 160
          },
          "metadata": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "$ref": "#/definitions/__schema0"
            }
          },
          "adjustment": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 3,
                "maxLength": 500
              },
              "profitTreatment": {
                "type": "string",
                "enum": [
                  "revenue",
                  "cost",
                  "exclude"
                ]
              }
            },
            "required": [
              "reason",
              "profitTreatment"
            ]
          },
          "assetPolicy": {
            "type": "string",
            "enum": [
              "expense",
              "exclude"
            ]
          }
        },
        "required": [
          "schemaVersion",
          "externalId",
          "occurredAt",
          "kind",
          "direction",
          "amount",
          "currency",
          "source",
          "category"
        ]
      }
    },
    "baseCurrency": {
      "type": "string",
      "pattern": "^[A-Z][A-Z0-9]{1,11}$"
    },
    "exchangeRates": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "to": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "rate": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "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)))$"
          }
        },
        "required": [
          "from",
          "to",
          "rate",
          "source",
          "effectiveAt"
        ]
      }
    },
    "currentCashBalance": {
      "type": "string"
    },
    "currentCashBalances": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "events"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "maxLength": 80
          },
          "additionalProperties": {
            "$ref": "#/definitions/__schema0"
          }
        }
      ]
    }
  }
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "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",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟡workspace_record_events(workspaceId, capabilityToken, 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",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "capabilityToken": {
      "type": "string"
    },
    "events": {
      "minItems": 1,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "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)))$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "revenue",
              "expense",
              "refund",
              "fee",
              "transfer",
              "capital",
              "withdrawal",
              "asset_purchase",
              "asset_sale",
              "adjustment"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "inflow",
              "outflow"
            ]
          },
          "amount": {
            "type": "string",
            "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]{1,11}$"
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "verification": {
                "type": "string",
                "enum": [
                  "self_reported",
                  "receipt_supplied",
                  "receipt_verified",
                  "onchain_verified",
                  "system_observed"
                ]
              },
              "reference": {
                "type": "string",
                "maxLength": 500
              }
            },
            "required": [
              "name",
              "type",
              "verification"
            ]
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "ventureId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "experimentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "customerId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "relatedEventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[\\w.:/-]+$"
          },
          "transactionHash": {
            "type": "string",
            "maxLength": 160
          },
          "x402PaymentId": {
            "type": "string",
            "maxLength": 160
          },
          "metadata": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "$ref": "#/definitions/__schema0"
            }
          },
          "adjustment": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 3,
                "maxLength": 500
              },
              "profitTreatment": {
                "type": "string",
                "enum": [
                  "revenue",
                  "cost",
                  "exclude"
                ]
              }
            },
            "required": [
              "reason",
              "profitTreatment"
            ]
          },
          "assetPolicy": {
            "type": "string",
            "enum": [
              "expense",
              "exclude"
            ]
          }
        },
        "required": [
          "schemaVersion",
          "externalId",
          "occurredAt",
          "kind",
          "direction",
          "amount",
          "currency",
          "source",
          "category"
        ]
      }
    }
  },
  "required": [
    "workspaceId",
    "capabilityToken",
    "events"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "maxItems": 20,
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "maxLength": 80
          },
          "additionalProperties": {
            "$ref": "#/definitions/__schema0"
          }
        }
      ]
    }
  }
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢workspace_get_profit(workspaceId, capabilityToken)

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",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "capabilityToken": {
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "capabilityToken"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢workspace_get_data_quality(workspaceId, capabilityToken)

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",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "capabilityToken": {
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "capabilityToken"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢report_verify(report)

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",
  "properties": {
    "report": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "report"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "result"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 8개
검증됨버전이 기록되지 않음도구 8개
검증됨버전이 기록되지 않음도구 8개