Skip to main content
Glama

er_record_list

Retrieve and manage records linked to a specific Edge Routine by specifying its name, page number, page size, and optional search keyword for precise filtering and pagination.

Instructions

List all records associated with a specific Edge Routine (ER).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
NameYesThe name of the routine
PageNumberNoThe page number of the records
PageSizeNoThe page size of the records
SearchKeyWordNoThe search key word of the records

Implementation Reference

  • Handler function that implements the core logic of the er_record_list tool by calling the API to list routine-related records and returning the JSON response.
    export const er_record_list = async (request: CallToolRequest) => { const res = await api.listRoutineRelatedRecords( request.params.arguments as unknown as ListRoutineRelatedRecordsRequest, ); return { content: [{ type: 'text', text: JSON.stringify(res) }], success: true, }; };
  • Tool definition including name, description, and input schema for the er_record_list tool.
    export const ER_RECORD_LIST_TOOL: Tool = { name: 'er_record_list', description: 'List all records associated with a specific Edge Routine (ER).', inputSchema: { type: 'object', properties: { Name: { type: 'string', description: 'The name of the routine', }, PageNumber: { type: 'number', description: 'The page number of the records', }, PageSize: { type: 'number', description: 'The page size of the records', }, SearchKeyWord: { type: 'string', description: 'The search key word of the records', }, }, required: ['Name'], }, };
  • The ER_RECORD_LIST_TOOL is registered in the ESA_OPENAPI_ER_LIST array, which is combined into ESA_OPENAPI_LIST provided to the MCP server for tool listing.
    export const ESA_OPENAPI_ER_LIST = [ HTML_DEPLOY_TOOL, ROUTINE_CREATE_TOOL, ROUTINE_DELETE_TOOL, ROUTINE_LIST_TOOL, ROUTINE_GET_TOOL, ROUTINE_CODE_COMMIT_TOOL, ROUTINE_CODE_DEPLOY_TOOL, ROUTINE_ROUTE_LIST_TOOL, DEPLOYMENT_DELETE_TOOL, SITE_ACTIVE_LIST_TOOL, SITE_ROUTE_LIST_TOOL, ROUTE_CREATE_TOOL, ROUTE_DELETE_TOOL, ROUTE_UPDATE_TOOL, ROUTE_GET_TOOL, SITE_MATCH_TOOL, ER_RECORD_CREATE_TOOL, ER_RECORD_DELETE_TOOL, ER_RECORD_LIST_TOOL, ];
  • The er_record_list handler is mapped in the esaHandlers object used by the MCP server to dispatch tool calls.
    er_record_list,
  • src/index.ts:24-39 (registration)
    Top-level MCP server registration: sets handlers for listing tools via ESA_OPENAPI_LIST and executing tools via esaHandlers.
    // Define available tools server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: ESA_OPENAPI_LIST }; }); // Handle tool execution server.setRequestHandler(CallToolRequestSchema, async (request) => { const toolName = request.params.name; log( 'Received tool call:', toolName, 'Params:', JSON.stringify(request.params), ); return await esaHandlers[toolName](request); });

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