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,
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it's a list operation, implying read-only behavior, but doesn't mention pagination details, rate limits, authentication needs, or what the output looks like. This leaves significant gaps for a tool with 4 parameters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no wasted words. It's front-loaded with the core purpose and efficiently conveys the essential action and resource scope.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain behavioral aspects like pagination, search functionality, or output format, leaving the agent with insufficient context to use the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so the schema already documents all parameters. The description adds no additional meaning beyond implying filtering by Edge Routine, which is covered by the 'Name' parameter in the schema. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('records associated with a specific Edge Routine'), making the purpose understandable. However, it doesn't distinguish this tool from sibling tools like 'list_records' or 'er_record_create', which would require more specific differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'list_records' or 'er_record_create'. It mentions the resource scope but doesn't explain prerequisites, exclusions, or comparative contexts with sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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