Skip to main content
Glama

route_get

Retrieve details for a specific route in Edge Security Acceleration services by providing site and configuration IDs.

Instructions

Get details of a specific route associated with an Edge Routine (ER).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteIdYesThe ID of the site
configIdYesThe ID of the config

Implementation Reference

  • The core handler function for the 'route_get' tool. It calls the API to get routine route details based on siteId and configId, then returns the JSON-stringified response.
    export const route_get = async (request: CallToolRequest) => {
      const res = await api.getRoutineRoute(
        request.params.arguments as GetRoutineRouteRequest,
      );
      return {
        content: [{ type: 'text', text: JSON.stringify(res) }],
        success: true,
      };
    };
  • The MCP Tool object definition for 'route_get', including name, description, and input schema specifying required numeric parameters siteId and configId.
    export const ROUTE_GET_TOOL: Tool = {
      name: 'route_get',
      description:
        'Get details of a specific route associated with an Edge Routine (ER).',
      inputSchema: {
        type: 'object',
        properties: {
          siteId: {
            type: 'number',
            description: 'The ID of the site',
          },
          configId: {
            type: 'number',
            description: 'The ID of the config',
          },
        },
        required: ['siteId', 'configId'],
      },
    };
  • Includes the ROUTE_GET_TOOL in ESA_OPENAPI_ER_LIST, which provides the list of available tools to the MCP server.
    ROUTE_GET_TOOL,
  • Maps the 'route_get' tool name to its handler function in the esaHandlers object used by the MCP server dispatcher.
    route_get,
  • src/index.ts:38-38 (registration)
    The MCP server request handler that dispatches tool calls by invoking the corresponding handler from esaHandlers.
    return await esaHandlers[toolName](request);
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states this is a 'Get' operation, implying read-only behavior, but doesn't specify whether it requires authentication, rate limits, error conditions, or what details are returned (e.g., route configuration, status). For a tool with no annotation coverage, this leaves significant gaps in understanding its behavior.

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, efficient sentence that front-loads the core purpose ('Get details of a specific route') without unnecessary words. Every part of the sentence earns its place by specifying the resource and context, making it appropriately sized for the tool's complexity.

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 tool's moderate complexity (2 required parameters, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on usage context, behavioral traits, or output format. Without annotations or output schema, more completeness would be beneficial, but it meets a bare minimum for a read operation.

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?

The input schema has 100% description coverage, with clear documentation for siteId and configId parameters. The description adds no additional parameter semantics beyond implying these IDs identify 'a specific route,' but this is minimal value. With high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.

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

Purpose4/5

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

The description clearly states the action ('Get details') and target ('a specific route associated with an Edge Routine'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'routine_route_list' or 'site_route_list', which might also retrieve route information but with different scopes or parameters.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a route ID, though parameters suggest siteId and configId), exclusions, or compare to siblings like 'route_list' tools that might retrieve multiple routes. Usage is implied only by the action 'Get details of a specific route'.

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/aliyun/mcp-server-esa'

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