Skip to main content
Glama

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
NameRequiredDescriptionDefault
configIdYesThe ID of the config
siteIdYesThe ID of the site

Implementation Reference

  • 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, }; };
  • 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'], }, };
  • Registration of the 'route_delete' tool in the ESA_OPENAPI_ER_LIST array, which aggregates tools for the MCP server.
    ROUTE_DELETE_TOOL,
  • Registration of the 'route_delete' handler function in the esaHandlers object mapping tool names to their implementations.
    route_delete,

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