delete_provider
Remove a provider from the UseGrant MCP Server by specifying its unique ID. This tool ensures accurate management of provider records within the platform.
Instructions
Delete a provider
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the provider |
Implementation Reference
- src/index.ts:61-66 (handler)Handler function for 'delete_provider' tool that calls usegrant.deleteProvider(id) and returns a success message.async ({ id }) => { await usegrant.deleteProvider(id); return { content: [{ type: 'text', text: `Provider ${id} deleted` }], }; },
- src/index.ts:60-60 (schema)Input schema for the delete_provider tool, requiring an 'id' field validated by UgSchema.ProviderIdSchema.{ id: UgSchema.ProviderIdSchema },
- src/index.ts:57-67 (registration)Registration of the 'delete_provider' MCP tool using server.tool(), including name, description, input schema, and handler.server.tool( 'delete_provider', 'Delete a provider', { id: UgSchema.ProviderIdSchema }, async ({ id }) => { await usegrant.deleteProvider(id); return { content: [{ type: 'text', text: `Provider ${id} deleted` }], }; }, );