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
| Name | Required | Description | Default |
|---|---|---|---|
| configId | Yes | The ID of the config | |
| siteId | Yes | The ID of the site |
Implementation Reference
- src/tools/er/route.ts:288-296 (handler)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, }; };
- src/tools/er/route.ts:148-166 (schema)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'], }, };
- src/tools/list-esa-function.ts:180-180 (registration)Registration of the route_get handler in the esaHandlers object, which maps tool handlers.route_get,
- src/tools/list-esa-function.ts:118-118 (registration)Registration of the ROUTE_GET_TOOL schema in the ESA_OPENAPI_ER_LIST array of tools.ROUTE_GET_TOOL,
- src/tools/list-esa-function.ts:10-22 (registration)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';