{"ok":true,"service":"capusta-mcp","protocol":"json-rpc-2.0","endpoint":"/mcp","tools":[{"name":"add_receipt","description":"Add a Capusta receipt or capital allocation operation to the shared store.","inputSchema":{"type":"object","required":["merchant","items"],"properties":{"merchant":{"type":"string","minLength":1},"date":{"type":"string"},"flow":{"type":"string","enum":["consumption","assets","emergency","debt","other"],"default":"consumption"},"source":{"type":"string","enum":["mcp"],"default":"mcp"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["name","amount","category"],"properties":{"name":{"type":"string","minLength":1},"amount":{"type":"number","exclusiveMinimum":0},"category":{"type":"string","minLength":1},"quantity":{"type":"string"}}}}}}},{"name":"update_receipt","description":"Update an existing receipt by id and recalculate its item-level total.","inputSchema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","minLength":1},"merchant":{"type":"string","minLength":1},"date":{"type":"string"},"flow":{"type":"string","enum":["consumption","assets","emergency","debt","other"]},"source":{"type":"string","enum":["mcp"],"default":"mcp"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["name","amount","category"],"properties":{"name":{"type":"string","minLength":1},"amount":{"type":"number","exclusiveMinimum":0},"category":{"type":"string","minLength":1},"quantity":{"type":"string"}}}}}}},{"name":"archive_receipt","description":"Archive a receipt by id so active receipt lists, summaries, and analytics ignore it.","inputSchema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","minLength":1}}}},{"name":"get_receipts","description":"List active receipts from the shared Capusta store, newest first.","inputSchema":{"type":"object","properties":{}}},{"name":"get_summary","description":"Return active totals by capital allocation flow: consumption, assets, emergency, debt, other.","inputSchema":{"type":"object","properties":{}}},{"name":"get_analytics","description":"Return active-receipt analytics: flow summary, category totals, and top item totals.","inputSchema":{"type":"object","properties":{}}},{"name":"get_categories","description":"Return known item categories grouped by capital allocation flow.","inputSchema":{"type":"object","properties":{}}},{"name":"list_categories","description":"Return known item categories grouped by capital allocation flow.","inputSchema":{"type":"object","properties":{}}},{"name":"create_rule","description":"Create a simple category rule for future receipt classification.","inputSchema":{"type":"object","required":["match","flow","category"],"properties":{"match":{"type":"string","minLength":1},"flow":{"type":"string","enum":["consumption","assets","emergency","debt","other"]},"category":{"type":"string","minLength":1}}}}]}