Skip to main content
Glama
kongyo2

Glama MCP Server Search

get_mcp_server_details

Retrieve detailed information about a specific MCP server by providing its namespace and slug, enabling efficient server exploration and selection using the Glama MCP API.

Instructions

Get detailed information about a specific MCP server by namespace and slug

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceYesThe namespace/organization of the MCP server (e.g., 'microsoft', 'openai')
slugYesThe slug/name of the MCP server (e.g., 'playwright-mcp', 'gpt-mcp')

Implementation Reference

  • The execute handler function that fetches detailed information about the MCP server from the Glama API using namespace and slug.
    execute: async (args) => { try { const result = await makeGlamaRequest( `/v1/servers/${args.namespace}/${args.slug}`, ); return JSON.stringify(result, null, 2); } catch (error) { return `Error getting MCP server details: ${error instanceof Error ? error.message : String(error)}`; } },
  • Zod schema defining the required input parameters: namespace and slug.
    parameters: z.object({ namespace: z .string() .describe( "The namespace/organization of the MCP server (e.g., 'microsoft', 'openai')", ), slug: z .string() .describe( "The slug/name of the MCP server (e.g., 'playwright-mcp', 'gpt-mcp')", ), }),
  • src/server.ts:89-120 (registration)
    The server.addTool call that registers the 'get_mcp_server_details' tool, including annotations, description, handler, name, and parameters schema.
    server.addTool({ annotations: { openWorldHint: true, readOnlyHint: true, title: "Get MCP Server Details", }, description: "Get detailed information about a specific MCP server by namespace and slug", execute: async (args) => { try { const result = await makeGlamaRequest( `/v1/servers/${args.namespace}/${args.slug}`, ); return JSON.stringify(result, null, 2); } catch (error) { return `Error getting MCP server details: ${error instanceof Error ? error.message : String(error)}`; } }, name: "get_mcp_server_details", parameters: z.object({ namespace: z .string() .describe( "The namespace/organization of the MCP server (e.g., 'microsoft', 'openai')", ), slug: z .string() .describe( "The slug/name of the MCP server (e.g., 'playwright-mcp', 'gpt-mcp')", ), }), });
  • Shared helper function used by the tool to make HTTP requests to the Glama MCP API.
    async function makeGlamaRequest( endpoint: string, params?: Record<string, string>, ) { const url = new URL(`${GLAMA_API_BASE}${endpoint}`); if (params) { Object.entries(params).forEach(([key, value]) => { if (value) { url.searchParams.append(key, value); } }); } const response = await fetch(url.toString()); if (!response.ok) { throw new Error( `API request failed: ${response.status} ${response.statusText}`, ); } return response.json(); }

Other Tools

Related Tools

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/kongyo2/Glama-MCP-Server-Search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server