Skip to main content
Glama

Trace a workflow run

get_workflow_run
Read-onlyIdempotent

Use this when someone asks why a durable workflow run failed or where it is stuck. Returns the run's status, timings and error code plus its steps with status, attempt, timings and error code, 50 steps by default and 200 at most. Not for listing runs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runIdYesWorkflow run id
projectIdYesProject id that owns the run
stepLimitNoHow many steps to return, from 1 to 200; defaults to 50

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
runYes
stepsYesStep status, attempt, timings and machine error code. Workflow inputs, outputs, error messages, deployment details and ownership fields are excluded.
statusYes
stepsTruncatedYesTrue when the run has more steps than were returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / projectId / description
      Previous value: -"Project id owning the run (required)"New value: +"Project id that owns the run"
    • changedInput schema / properties / stepLimit / description
      Previous value: -"Maximum number of steps to return (default 50, max 200)"New value: +"How many steps to return, from 1 to 200; defaults to 50"
    • addedOutput schema / properties / steps / description
      Added value: +"Step status, attempt, timings and machine error code. Workflow inputs, outputs, error messages, deployment details and ownership fields are excluded."
    • addedOutput schema / properties / stepsTruncated / description
      Added value: +"True when the run has more steps than were returned"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: what the response contains and the pagination behavior ('50 steps by default and 200 at most'), which is useful for interpreting truncated traces.

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?

Three tight sentences. The use-case trigger is front-loaded, the return payload follows, and the exclusion closes it. No filler.

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

Completeness5/5

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

An output schema exists, so return values need not be fully enumerated, yet the description still summarizes them and notes the step cap. For a read-only trace tool with two required ids, nothing an agent needs to invoke it correctly is missing.

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 runId, projectId and stepLimit are all already documented in the schema, including the same 1-200/default-50 range repeated in the description. Baseline 3 applies; the description adds no new parameter meaning.

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

Purpose5/5

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

Specific verb and resource: it traces a workflow run and states exactly what comes back — run status, timings, error code, plus steps with status, attempt, timings and error code. It also distinguishes itself from the listing sibling with 'Not for listing runs.'

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

Usage Guidelines5/5

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

Gives an explicit trigger ('when someone asks why a durable workflow run failed or where it is stuck') and an explicit exclusion ('Not for listing runs'), which routes the agent away from list_workflow_runs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources