Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

create_tenant_provider

Generate a provider for a tenant by defining audience, URL, fingerprints, and issuance time constraints on the UseGrant MCP Server.

Instructions

Create a new provider for a tenant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audienceYesThe audience of the provider
earliestIssuanceTimeAllowedYesThe earliest issuance time allowed in hours
fingerprintsYes
tenantIdYesThe ID of the tenant
urlYesThe URL of the provider

Implementation Reference

  • The handler function for the 'create_tenant_provider' tool. It takes tenantId and payload, calls usegrant.createTenantProvider, and returns the result as JSON text content.
    async ({ tenantId, ...payload }) => { const provider = await usegrant.createTenantProvider(tenantId, payload); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; },
  • Input schema for the 'create_tenant_provider' tool, combining tenantId schema with CreateTenantProviderSchema from the UseGrant SDK.
    { tenantId: UgSchema.TenantIdSchema, ...UgSchema.CreateTenantProviderSchema.shape, },
  • src/index.ts:274-287 (registration)
    Registration of the 'create_tenant_provider' MCP tool using server.tool, including name, description, input schema, and handler function.
    server.tool( 'create_tenant_provider', 'Create a new provider for a tenant', { tenantId: UgSchema.TenantIdSchema, ...UgSchema.CreateTenantProviderSchema.shape, }, async ({ tenantId, ...payload }) => { const provider = await usegrant.createTenantProvider(tenantId, payload); 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