Skip to main content
Glama

routine_get

Retrieve detailed information about a specific Edge Routine from ESA services to manage configurations and deployments.

Instructions

Get a the details of a Edge Routine (ER).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the routine to get details for

Implementation Reference

  • The handler function that implements the core logic of the 'routine_get' tool. It retrieves the details of an Edge Routine (ER) by calling the API with the provided routine name and returns the response.
    export const routine_get = async (request: CallToolRequest) => { const res = await api.getRoutine( request.params.arguments as GetRoutineRequest, ); return { content: [ { type: 'text', text: JSON.stringify(res), }, ], success: true, }; };
  • The Tool schema defining the input schema, name, description for the 'routine_get' tool.
    export const ROUTINE_GET_TOOL: Tool = { name: 'routine_get', description: 'Get a the details of a Edge Routine (ER).', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'The name of the routine to get details for', }, }, required: ['name'], }, };
  • Registration of the 'routine_get' handler function in the esaHandlers object, which maps tool names to their handler implementations.
    routine_get,
  • Registration of the ROUTINE_GET_TOOL schema in the ESA_OPENAPI_ER_LIST array, which collects tool definitions for the ESA OpenAPI ER tools.
    ROUTINE_GET_TOOL,

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