Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

get_tenant

Retrieve tenant details by ID using the UseGrant MCP Server to manage and access tenant-specific information within the platform.

Instructions

Get a tenant by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the tenant

Implementation Reference

  • Handler function that retrieves a tenant by ID using the UseGrant SDK and returns it as a JSON string in the MCP response format.
    async ({ id }) => { const tenant = await usegrant.getTenant(id); return { content: [{ type: 'text', text: JSON.stringify(tenant, null, 2) }], }; },
  • Input schema for the get_tenant tool, specifying the required 'id' parameter validated by UgSchema.TenantIdSchema.
    { id: UgSchema.TenantIdSchema, },
  • src/index.ts:232-244 (registration)
    Registration of the 'get_tenant' tool on the MCP server, including name, description, input schema, and handler function.
    server.tool( 'get_tenant', 'Get a tenant by ID', { id: UgSchema.TenantIdSchema, }, async ({ id }) => { const tenant = await usegrant.getTenant(id); return { content: [{ type: 'text', text: JSON.stringify(tenant, 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