Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

create_tenant

Add a new tenant to the UseGrant MCP Server by specifying a name and description, enabling efficient management of tenant-specific configurations and resources.

Instructions

Create a new tenant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYesThe description of the tenant
nameYesThe name of the tenant

Implementation Reference

  • The handler function for the 'create_tenant' tool. It takes the payload, calls usegrant.createTenant(payload) from the UseGrant SDK, and returns the tenant object as a JSON-formatted text content response.
    async (payload) => { const tenant = await usegrant.createTenant(payload); return { content: [{ type: 'text', text: JSON.stringify(tenant, null, 2) }], }; },
  • src/index.ts:220-230 (registration)
    Registration of the 'create_tenant' MCP tool using server.tool(), including the tool name, description, input schema, and inline handler function.
    server.tool( 'create_tenant', 'Create a new tenant', UgSchema.CreateTenantSchema.shape, async (payload) => { const tenant = await usegrant.createTenant(payload); return { content: [{ type: 'text', text: JSON.stringify(tenant, null, 2) }], }; }, );
  • The input schema for the 'create_tenant' tool, referencing UgSchema.CreateTenantSchema.shape from the imported UseGrant SDK schema module.
    UgSchema.CreateTenantSchema.shape,

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