Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

delete_tenant

Remove a tenant from the UseGrant MCP Server by specifying the tenant ID. This tool ensures efficient tenant management within the platform.

Instructions

Delete a tenant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the tenant

Implementation Reference

  • Handler function for the 'delete_tenant' MCP tool. It calls usegrant.deleteTenant(id) to perform the deletion and returns a success message.
    async ({ id }) => { await usegrant.deleteTenant(id); return { content: [{ type: 'text', text: `Tenant ${id} deleted` }], }; },
  • Input schema for the 'delete_tenant' tool, specifying the 'id' parameter using UgSchema.TenantIdSchema.
    { id: UgSchema.TenantIdSchema, },
  • src/index.ts:246-258 (registration)
    Registration of the 'delete_tenant' tool with the MCP server, including name, description, input schema, and handler function.
    server.tool( 'delete_tenant', 'Delete a tenant', { id: UgSchema.TenantIdSchema, }, async ({ id }) => { await usegrant.deleteTenant(id); return { content: [{ type: 'text', text: `Tenant ${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