Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

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
NameRequiredDescriptionDefault
idYesThe ID of the provider

Implementation Reference

  • 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` }], }; },
  • 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` }], }; }, );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/usegranthq/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server