API ドキュメント
事実を出典と履歴つきで読む
montaye の計算が読む事実を1件:ある日に効力をもつ版(または計算結果の行が revision_id で示した版)、その値(金額、税率区分表、早見表)、読み取った公式文書のページと文言、公開済みの事実にある同じ事実の各有効期間(古い順)。値は10進数の文字列、比率は小数(0.062)で、百分率ではありません。コードの一覧は GET /v1/status にあります。フィールドは追加されるだけです。
REST: GET /v1/facts MCP ツール: fact_read API キーが必要
拒否コード
- input_invalid (400) The request does not match the action’s input schema.
- parameter_missing (400) A parameter the computation needs was not given.
- not_found (404) No such action or document.
- table_not_effective (422) No reviewed fact is in force for this pay date.
- key_missing (401) This action needs an API key (Authorization: Bearer <key>).
- key_invalid (401) The API key is unknown, revoked or expired.
- rate_limited (429) Too many requests from this client; slow down.
- plan_excludes_action (403) The account’s plan does not include this action.
入力(JSON Schema)
{
"type": "object",
"properties": {
"code": {
"type": "string",
"pattern": "^[a-z0-9_.-]+$"
},
"on": {
"type": "string",
"format": "date"
},
"revision_id": {
"type": "string",
"format": "uuid"
}
},
"required": [],
"$schema": "http://json-schema.org/draft-07/schema#"
}