Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

delete_domain

Remove a domain from a provider by specifying the domain and provider IDs using this tool on the UseGrant MCP Server.

Instructions

Delete a domain from a provider

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainIdYesThe ID of the domain
providerIdYesThe ID of the provider

Implementation Reference

  • The handler function for the 'delete_domain' tool. Destructures providerId and domainId from args, calls usegrant.deleteDomain(providerId, domainId), and returns a text content confirming deletion.
    async ({ providerId, domainId }) => { await usegrant.deleteDomain(providerId, domainId); return { content: [{ type: 'text', text: `Domain ${domainId} deleted` }], }; },
  • Input schema for the 'delete_domain' tool, specifying providerId (UgSchema.ProviderIdSchema) and domainId (UgSchema.DomainIdSchema) for validation.
    { providerId: UgSchema.ProviderIdSchema, domainId: UgSchema.DomainIdSchema, },
  • src/index.ts:167-180 (registration)
    Registration of the 'delete_domain' tool using server.tool(), including name, description, input schema, and handler function.
    server.tool( 'delete_domain', 'Delete a domain from a provider', { providerId: UgSchema.ProviderIdSchema, domainId: UgSchema.DomainIdSchema, }, async ({ providerId, domainId }) => { await usegrant.deleteDomain(providerId, domainId); return { content: [{ type: 'text', text: `Domain ${domainId} 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