delete_client
Remove a client from a provider on the UseGrant MCP Server by specifying the client and provider IDs to manage access and relationships efficiently.
Instructions
Delete a client from a provider
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:115-120 (handler)The handler function that performs the tool logic: calls usegrant.deleteClient(providerId, clientId) and returns a success response with MCP content format.async ({ providerId, clientId }) => { await usegrant.deleteClient(providerId, clientId); return { content: [{ type: 'text', text: `Client ${clientId} deleted` }], }; },
- src/index.ts:111-114 (schema)Input parameters schema using Zod schemas for providerId and clientId.{ providerId: UgSchema.ProviderIdSchema, clientId: UgSchema.ClientIdSchema, },
- src/index.ts:108-121 (registration)The server.tool call that registers the 'delete_client' tool with name, description, input schema, and handler function.server.tool( 'delete_client', 'Delete a client from a provider', { providerId: UgSchema.ProviderIdSchema, clientId: UgSchema.ClientIdSchema, }, async ({ providerId, clientId }) => { await usegrant.deleteClient(providerId, clientId); return { content: [{ type: 'text', text: `Client ${clientId} deleted` }], }; }, );