Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

get_tenant_provider_policy

Retrieve access policies for tenant providers by specifying tenant ID, provider ID, and policy ID. Facilitates managed access control in the UseGrant MCP Server platform.

Instructions

Get 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 retrieves the tenant provider policy using the UseGrant SDK and returns it as JSON.
    async ({ tenantId, providerId, policyId }) => { const policy = await usegrant.getTenantProviderPolicy(tenantId, providerId, policyId); return { content: [{ type: 'text', text: JSON.stringify(policy, null, 2) }], }; },
  • Input schema for the tool, defining tenantId, providerId, and policyId using schemas from @usegrant/sdk/schema.
    { tenantId: UgSchema.TenantIdSchema, providerId: UgSchema.TenantProviderIdSchema, policyId: UgSchema.TenantProviderPolicyIdSchema, },
  • src/index.ts:350-364 (registration)
    Registration of the 'get_tenant_provider_policy' tool with the MCP server, including description, input schema, and handler.
    server.tool( 'get_tenant_provider_policy', 'Get a policy for a tenant provider', { tenantId: UgSchema.TenantIdSchema, providerId: UgSchema.TenantProviderIdSchema, policyId: UgSchema.TenantProviderPolicyIdSchema, }, async ({ tenantId, providerId, policyId }) => { const policy = await usegrant.getTenantProviderPolicy(tenantId, providerId, policyId); return { content: [{ type: 'text', text: JSON.stringify(policy, null, 2) }], }; }, );

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