Skip to main content
Glama
theagoralabs

Theagora MCP Server

by theagoralabs

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) }],
        };
      }
    );
  • 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) }],
      };
    }
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/theagoralabs/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server