Skip to main content
Glama

er_record_list

Retrieve and list all records for a specific Edge Routine, enabling pagination and keyword search for efficient management.

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

  • The main execution logic for the 'er_record_list' tool: calls api.listRoutineRelatedRecords with request arguments and returns the JSON-stringified 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, }; };
  • Input schema and metadata definition 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'], }, };
  • src/index.ts:24-27 (registration)
    MCP server registration for listing tools; returns ESA_OPENAPI_LIST which includes the 'er_record_list' tool definition.
    // Define available tools server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: ESA_OPENAPI_LIST }; });
  • src/index.ts:30-39 (registration)
    MCP server registration for calling tools; dispatches to esaHandlers[toolName], which maps 'er_record_list' to its handler.
    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); });
  • Mapping of 'er_record_list' to its handler function in the esaHandlers object used by the MCP server.
    er_record_list,

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