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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/social.ts:31-43 (handler)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) }], }; } ); - src/tools/social.ts:35-35 (schema)Schema definition for view_invites - an empty object since the tool takes no input parameters
{}, - src/client.ts:219-221 (helper)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);