Skip to main content
Glama
theagoralabs

Theagora MCP Server

by theagoralabs

view_invites

Read-only

View all trade invitations sent and received, including status, terms, and expiry details.

Instructions

View all trade invitations you have sent and received. Shows invite status, terms, and expiry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler and registration of the 'view_invites' tool. It uses server.tool() to register the tool with no input parameters (empty schema), and calls client.listInvites() to fetch the data.
    // view_invites — List sent and received trade invitations
    server.tool(
      'view_invites',
      'View all trade invitations you have sent and received. Shows invite status, terms, and expiry.',
      {},
      { readOnlyHint: true, openWorldHint: true },
      async () => {
        const result = await client.listInvites();
        return {
          content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • Schema definition for view_invites - an empty object since the tool takes no input parameters
    {},
  • The listInvites() method in AgoraApiClient that makes the actual HTTP GET request to /invites endpoint
    async listInvites(): Promise<any> {
      return this.request('/invites');
    }
  • src/index.ts:26-26 (registration)
    Registration call that registers all social tools (including view_invites) with the MCP server
    registerSocialTools(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