Skip to main content
Glama

route_get

Retrieve specific route details for an Edge Routine (ER) by providing site and configuration IDs, enabling efficient management and access to routing information.

Instructions

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

Input Schema

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

Implementation Reference

  • The main handler function implementing the logic for the 'route_get' tool. It calls the API to get routine route details based on siteId and configId, then returns the JSON-stringified result.
    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 schema definition for the 'route_get' tool, including input schema requiring 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'], }, };
  • Registration of the route_get handler in the esaHandlers object, which maps tool handlers.
    route_get,
  • Registration of the ROUTE_GET_TOOL schema in the ESA_OPENAPI_ER_LIST array of tools.
    ROUTE_GET_TOOL,
  • Import of route_get handler and ROUTE_GET_TOOL schema from er/route.ts for registration.
    route_create, ROUTE_CREATE_TOOL, route_delete, ROUTE_DELETE_TOOL, route_get, ROUTE_GET_TOOL, route_update, ROUTE_UPDATE_TOOL, routine_route_list, ROUTINE_ROUTE_LIST_TOOL, site_route_list, SITE_ROUTE_LIST_TOOL, } from './er/route';

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