list_clients
Retrieve a list of all clients associated with a specific provider using the provider ID on the UseGrant MCP Server for efficient client management.
Instructions
List all clients
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| providerId | Yes | The ID of the provider |
Implementation Reference
- src/index.ts:73-78 (handler)The handler function for the list_clients tool. It takes a providerId, calls usegrant.listClients(providerId), and returns the clients as a JSON-formatted text content.async ({ providerId }) => { const clients = await usegrant.listClients(providerId); return { content: [{ type: 'text', text: JSON.stringify(clients, null, 2) }], }; },
- src/index.ts:72-72 (schema)Input schema definition for the list_clients tool, specifying that providerId must conform to UgSchema.ProviderIdSchema.{ providerId: UgSchema.ProviderIdSchema },
- src/index.ts:69-79 (registration)Registration of the list_clients tool using McpServer.tool(), including the tool name, description, input schema, and handler function.server.tool( 'list_clients', 'List all clients', { providerId: UgSchema.ProviderIdSchema }, async ({ providerId }) => { const clients = await usegrant.listClients(providerId); return { content: [{ type: 'text', text: JSON.stringify(clients, null, 2) }], }; }, );