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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the tenant |
Implementation Reference
- src/index.ts:252-257 (handler)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` }], }; },
- src/index.ts:249-251 (schema)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` }], }; }, );