route_delete
Remove a specified route for an Edge Routine by providing the site and config IDs, ensuring streamlined management of ESA services.
Instructions
Delete a specified 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:256-264 (handler)The handler function implementing the 'route_delete' tool logic. It calls api.deleteRoutineRoute with the provided arguments and returns the JSON-stringified result.export const route_delete = async (request: CallToolRequest) => { const res = await api.deleteRoutineRoute( request.params.arguments as DeleteRoutineRouteRequest, ); return { content: [{ type: 'text', text: JSON.stringify(res) }], success: true, }; };
- src/tools/er/route.ts:129-146 (schema)The Tool object definition for 'route_delete', including name, description, and input schema specifying required siteId and configId.export const ROUTE_DELETE_TOOL: Tool = { name: 'route_delete', description: 'Delete a specified 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:116-116 (registration)Registration of the 'route_delete' tool in the ESA_OPENAPI_ER_LIST array, which aggregates tools for the MCP server.ROUTE_DELETE_TOOL,
- src/tools/list-esa-function.ts:178-178 (registration)Registration of the 'route_delete' handler function in the esaHandlers object mapping tool names to their implementations.route_delete,