Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

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
NameRequiredDescriptionDefault
clientIdYesThe ID of the client
providerIdYesThe ID of the provider

Implementation Reference

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

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