Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

delete_tenant_provider_policy

Remove a tenant provider policy by specifying tenant ID, provider ID, and policy ID to manage access and permissions effectively.

Instructions

Delete a policy for a tenant provider

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyIdYesThe ID of the tenant provider policy
providerIdYesThe ID of the tenant provider
tenantIdYesThe ID of the tenant

Implementation Reference

  • Handler function that executes the tool logic by calling the UseGrant SDK's deleteTenantProviderPolicy method and returning a success response.
    async ({ tenantId, providerId, policyId }) => { await usegrant.deleteTenantProviderPolicy(tenantId, providerId, policyId); return { content: [{ type: 'text', text: `Policy ${policyId} deleted` }], }; },
  • Input schema definition for the tool parameters using Zod schemas from the UseGrant SDK.
    { tenantId: UgSchema.TenantIdSchema, providerId: UgSchema.TenantProviderIdSchema, policyId: UgSchema.TenantProviderPolicyIdSchema, },
  • src/index.ts:366-380 (registration)
    Registration of the 'delete_tenant_provider_policy' tool on the MCP server using server.tool, including description, input schema, and handler function.
    server.tool( 'delete_tenant_provider_policy', 'Delete a policy for a tenant provider', { tenantId: UgSchema.TenantIdSchema, providerId: UgSchema.TenantProviderIdSchema, policyId: UgSchema.TenantProviderPolicyIdSchema, }, async ({ tenantId, providerId, policyId }) => { await usegrant.deleteTenantProviderPolicy(tenantId, providerId, policyId); return { content: [{ type: 'text', text: `Policy ${policyId} 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