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
| Name | Required | Description | Default |
|---|---|---|---|
| domainId | Yes | The ID of the domain | |
| providerId | Yes | The ID of the provider |
Implementation Reference
- src/index.ts:174-179 (handler)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` }], }; },
- src/index.ts:170-173 (schema)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` }], }; }, );