Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

create_provider

Create a new provider by defining its name and description using the UseGrant MCP Server, ensuring proper setup for provider management in the platform.

Instructions

Create a new provider

Input Schema

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

Implementation Reference

  • The handler function for the 'create_provider' MCP tool. It takes input arguments, calls the UseGrant SDK's createProvider method, and returns the result as a JSON-formatted text content response.
    async (args) => { const provider = await usegrant.createProvider(args); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; },
  • The input schema for the 'create_provider' tool, referencing the CreateProviderSchema from the UseGrant SDK.
    UgSchema.CreateProviderSchema.shape,
  • src/index.ts:33-43 (registration)
    The registration of the 'create_provider' tool on the MCP server, including name, description, schema, and handler function.
    server.tool( 'create_provider', 'Create a new provider', UgSchema.CreateProviderSchema.shape, async (args) => { const provider = await usegrant.createProvider(args); 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