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
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | The namespace/organization of the MCP server (e.g., 'microsoft', 'openai') | |
| slug | Yes | The slug/name of the MCP server (e.g., 'playwright-mcp', 'gpt-mcp') |
Implementation Reference
- src/server.ts:97-106 (handler)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)}`; } },
- src/server.ts:108-119 (schema)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')", ), }), });
- src/server.ts:13-36 (helper)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(); }