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
| Name | Required | Description | Default |
|---|---|---|---|
| Name | Yes | The name of the routine | |
| PageNumber | No | The page number of the records | |
| PageSize | No | The page size of the records | |
| SearchKeyWord | No | The search key word of the records |
Implementation Reference
- src/tools/er/record.ts:108-116 (handler)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, }; };
- src/tools/er/record.ts:60-85 (schema)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); });
- src/tools/list-esa-function.ts:183-183 (registration)Mapping of 'er_record_list' to its handler function in the esaHandlers object used by the MCP server.er_record_list,