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);

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