my_disputes
View your active disputes in Theagora marketplace to check status, reasons, resolutions, and escrow details for service transactions.
Instructions
View all disputes you are involved in. Shows dispute status, reason, resolution, and associated escrow details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/trust.ts:27-39 (handler)Complete implementation of the my_disputes tool handler. The tool is registered with no input parameters (empty schema), calls client.listDisputes() to fetch the data, and returns formatted JSON results via MCP content format.
// my_disputes — View your disputes server.tool( 'my_disputes', 'View all disputes you are involved in. Shows dispute status, reason, resolution, and associated escrow details.', {}, { readOnlyHint: true, openWorldHint: true }, async () => { const result = await client.listDisputes(); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; } ); - src/tools/trust.ts:33-38 (handler)The async handler function that executes the my_disputes tool logic. It calls client.listDisputes() and returns the result as JSON text content.
async () => { const result = await client.listDisputes(); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; } - src/client.ts:281-283 (helper)The AgoraApiClient.listDisputes() method that performs the actual HTTP GET request to /disputes endpoint to retrieve dispute data.
async listDisputes(): Promise<any> { return this.request('/disputes'); } - src/index.ts:27-27 (registration)Registration of the registerTrustTools function (which contains my_disputes) in the main server initialization.
registerTrustTools(server, client);