Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

get_client

Retrieve client details by specifying provider and client IDs using the UseGrant MCP Server. Simplify client management and access information with this tool.

Instructions

Get client details by provider and client ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientIdYesThe ID of the client
providerIdYesThe ID of the provider

Implementation Reference

  • The handler function for the 'get_client' tool. It takes providerId and clientId, calls usegrant.getClient from the SDK, and returns the client details as a JSON-formatted text content response.
    async ({ providerId, clientId }) => { const client = await usegrant.getClient(providerId, clientId); return { content: [{ type: 'text', text: JSON.stringify(client, null, 2) }], }; },
  • Input schema definition for the 'get_client' tool, specifying providerId and clientId using Zod schemas from the UseGrant SDK.
    { providerId: UgSchema.ProviderIdSchema, clientId: UgSchema.ClientIdSchema, },
  • src/index.ts:93-106 (registration)
    Registration of the 'get_client' tool on the MCP server using server.tool(), including name, description, input schema, and handler function.
    server.tool( 'get_client', 'Get client details by provider and client ID', { providerId: UgSchema.ProviderIdSchema, clientId: UgSchema.ClientIdSchema, }, async ({ providerId, clientId }) => { const client = await usegrant.getClient(providerId, clientId); return { content: [{ type: 'text', text: JSON.stringify(client, 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