Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

get_tenant_provider

Retrieve provider details for a specific tenant on the UseGrant MCP Server by submitting tenantId and providerId to ensure accurate tenant-provider association and access management.

Instructions

Get a provider for a tenant

Input Schema

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

Implementation Reference

  • The handler function that executes the tool logic: fetches the tenant provider via UseGrant SDK and returns JSON response.
    async ({ tenantId, providerId }) => { const provider = await usegrant.getTenantProvider(tenantId, providerId); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; },
  • Input parameters schema using Zod schemas from UseGrant SDK for tenantId and providerId.
    { tenantId: UgSchema.TenantIdSchema, providerId: UgSchema.TenantProviderIdSchema, },
  • src/index.ts:289-302 (registration)
    MCP server tool registration including name, description, schema, and inline handler.
    server.tool( 'get_tenant_provider', 'Get a provider for a tenant', { tenantId: UgSchema.TenantIdSchema, providerId: UgSchema.TenantProviderIdSchema, }, async ({ tenantId, providerId }) => { const provider = await usegrant.getTenantProvider(tenantId, providerId); return { content: [{ type: 'text', text: JSON.stringify(provider, 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