Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

list_clients

Retrieve a list of all clients associated with a specific provider using the provider ID on the UseGrant MCP Server for efficient client management.

Instructions

List all clients

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerIdYesThe ID of the provider

Implementation Reference

  • The handler function for the list_clients tool. It takes a providerId, calls usegrant.listClients(providerId), and returns the clients as a JSON-formatted text content.
    async ({ providerId }) => { const clients = await usegrant.listClients(providerId); return { content: [{ type: 'text', text: JSON.stringify(clients, null, 2) }], }; },
  • Input schema definition for the list_clients tool, specifying that providerId must conform to UgSchema.ProviderIdSchema.
    { providerId: UgSchema.ProviderIdSchema },
  • src/index.ts:69-79 (registration)
    Registration of the list_clients tool using McpServer.tool(), including the tool name, description, input schema, and handler function.
    server.tool( 'list_clients', 'List all clients', { providerId: UgSchema.ProviderIdSchema }, async ({ providerId }) => { const clients = await usegrant.listClients(providerId); return { content: [{ type: 'text', text: JSON.stringify(clients, 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