Skip to main content
Glama

list_executions

Retrieve recent workflow executions with execution ID, status, and timestamps. Filter by status, limit results, and paginate through execution history.

Instructions

List recent executions for a workflow. Returns execution id, status, timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID
statusNoFilter: running, completed, failed
limitNoMax results (default 50, max 500)
directionNoSort order (default: desc)
nextTokenNoPagination cursor from a previous response. Pass this to fetch the next page of results.

Implementation Reference

  • The handler function for the "list_executions" tool, which calls the client's listExecutions method and formats the result as MCP text content.
        async ({ workflowId, status, limit, direction, nextToken }, extra) => {
            const client = clientFactory(extra);
            const result = await client.listExecutions(workflowId, { status, limit, direction, nextToken });
            return {
                content: [{
                    type: 'text' as const,
                    text: JSON.stringify(result, null, 2),
                }],
            };
        }
    );
  • Registration and schema definition for the "list_executions" tool, defining the required parameters and description.
    'list_executions',
    'List recent executions for a workflow. Returns execution id, status, timestamps.',
    {
        workflowId: z.string().describe('The workflow ID'),
        status: z.string().optional().describe('Filter: running, completed, failed'),
        limit: z.number().optional().describe('Max results (default 50, max 500)'),
        direction: z.enum(['asc', 'desc']).optional().describe('Sort order (default: desc)'),
        nextToken: z.string().optional().describe('Pagination cursor from a previous response. Pass this to fetch the next page of results.'),
    },
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the return fields (execution id, status, timestamps) but lacks critical details: it doesn't specify if this is a read-only operation, whether it requires authentication, any rate limits, pagination behavior beyond the 'nextToken' parameter, or error conditions. For a list tool with 5 parameters, this leaves significant gaps in understanding its behavior.

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, efficient sentence with zero waste. It's front-loaded with the core purpose and includes essential return information. Every word earns its place, making it easy to parse quickly.

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

Completeness3/5

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

Given the tool's moderate complexity (5 parameters, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and return fields but lacks behavioral context (e.g., pagination, auth needs) and usage guidelines. With no output schema, it should ideally describe the response format more thoroughly, but it does state what's returned in a high-level way.

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?

Schema description coverage is 100%, so the schema fully documents all 5 parameters with descriptions, defaults, and enums. The description adds no additional parameter semantics beyond what's in the schema (e.g., it doesn't explain relationships between parameters like 'status' filtering with 'limit'). Baseline 3 is appropriate as the schema does the heavy lifting, but the description doesn't compensate with extra context.

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 tool's purpose with a specific verb ('List') and resource ('recent executions for a workflow'), and specifies what information is returned. It distinguishes this tool from siblings like 'get_execution' (which retrieves a single execution) and 'retry_execution' (which performs an action). However, it doesn't explicitly differentiate from other list tools like 'list_workflows' or 'list_snapshots' beyond the resource type.

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. It doesn't mention prerequisites (e.g., needing a workflow ID), exclusions, or comparisons to sibling tools like 'get_execution' for detailed views or 'list_workflows' for broader listings. Usage is implied by the name and parameters but not explicitly stated.

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/Agentled/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server