get_client
Retrieve client details by specifying provider and client IDs using the UseGrant MCP Server. Simplify client management and access information with this tool.
Instructions
Get client details by provider and client ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientId | Yes | The ID of the client | |
| providerId | Yes | The ID of the provider |
Implementation Reference
- src/index.ts:100-105 (handler)The handler function for the 'get_client' tool. It takes providerId and clientId, calls usegrant.getClient from the SDK, and returns the client details as a JSON-formatted text content response.async ({ providerId, clientId }) => { const client = await usegrant.getClient(providerId, clientId); return { content: [{ type: 'text', text: JSON.stringify(client, null, 2) }], }; },
- src/index.ts:96-99 (schema)Input schema definition for the 'get_client' tool, specifying providerId and clientId using Zod schemas from the UseGrant SDK.{ providerId: UgSchema.ProviderIdSchema, clientId: UgSchema.ClientIdSchema, },
- src/index.ts:93-106 (registration)Registration of the 'get_client' tool on the MCP server using server.tool(), including name, description, input schema, and handler function.server.tool( 'get_client', 'Get client details by provider and client ID', { providerId: UgSchema.ProviderIdSchema, clientId: UgSchema.ClientIdSchema, }, async ({ providerId, clientId }) => { const client = await usegrant.getClient(providerId, clientId); return { content: [{ type: 'text', text: JSON.stringify(client, null, 2) }], }; }, );