Skip to main content
Glama

get_server

Retrieve detailed information about a specific server by providing its ID. Access configuration, status, and other key data for effective server management.

Instructions

Get details of a specific server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_idYesThe ID of the server

Implementation Reference

  • The tool handler that calls client.getServer(server_id) and returns the server details as JSON.
    async ({ server_id }) => {
      const serverInfo = await client.getServer(server_id);
      return {
        content: [
          {
            type: "text" as const,
            text: JSON.stringify(serverInfo, null, 2),
          },
        ],
      };
    }
  • Registration of the 'get_server' tool with MCP server, including name, description, and Zod schema for server_id.
    server.tool(
      "get_server",
      "Get details of a specific server",
      {
        server_id: z.coerce.number().describe("The ID of the server"),
      },
      async ({ server_id }) => {
        const serverInfo = await client.getServer(server_id);
        return {
          content: [
            {
              type: "text" as const,
              text: JSON.stringify(serverInfo, null, 2),
            },
          ],
        };
      }
    );
  • Zod schema for the tool's input parameter: server_id (coerced number).
    {
      server_id: z.coerce.number().describe("The ID of the server"),
    },
  • The client helper method that makes the actual API call to GET /servers/{id}.
    async getServer(id: number): Promise<Server> {
      const response = await this.request<ApiResponse<Server>>(
        "GET",
        `/servers/${id}`
      );
      return response.data;
    }
  • Registration aggregator that calls registerServerTools, which registers the 'get_server' tool.
    export function registerAllTools(server: McpServer, client: PloiClient) {
      registerServerTools(server, client);
      registerSiteTools(server, client);
      registerDatabaseTools(server, client);
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description only says 'Get details', which implies a read operation. However, with no annotations provided, it fails to disclose any behavioral traits such as authentication requirements, rate limits, or the scope of 'details'. Minimal disclosure beyond the obvious.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no unnecessary words. It is front-loaded and efficiently conveys the tool's purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple input (one parameter) and no output schema, the description is adequate but lacks specifics about the returned 'details'. Without an output schema, the agent is left guessing the structure of the response. For a simple tool, it is minimally complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with the server_id parameter described in the schema. The description adds no extra meaning beyond what the schema already provides. Baseline 3 is appropriate as there is no added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (Get) and resource (server details). It effectively distinguishes itself from siblings like list_servers (listing all servers) and restart_server (action-oriented) by specifying a single server's details.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when needing details of a specific server but lacks explicit guidance on when to avoid it (e.g., when managing servers) or alternatives (e.g., list_servers for overview). No prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/sudanese/ploi-mcp'

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