Skip to main content
Glama

Get run

get_run
Read-onlyIdempotent

Retrieve workflow run details: use executionId for step status, durations, inputs, and outputs; use instanceId for durable run state, history, output, error, and awaiting events.

Instructions

Get one run's details. Pass executionId (from list_runs source history) for step-by-step status, durations and recorded inputs and outputs. Pass instanceId (from run_workflow or list_runs source instances) for a durable run's state, step history, output and error, plus awaitingEvents: the event types it is parked on, which control_run send_event must use. Pass exactly one of the two. Set simple with instanceId to get only the status, for cheap polling.

Input Schema

NameRequiredDescriptionDefault
simpleNoWith instanceId only: skip step detail and return status and stepCount.
instanceIdNoA durable run's id from run_workflow or list_runs (source instances).
workflowIdYesThe workflow's id, from list_workflows or create_workflow.
executionIdNoA run-log id from list_runs (source history).

Output Schema

NameRequiredDescriptionDefault
errorNo
stepsNo
outputNo
sourceYes
statusYes
startedAtNo
stepCountNo
instanceIdNo
executionIdNo
awaitingEventsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent, so the lower bar applies; the description still adds real behavioral context by disclosing what each mode returns (step status/durations/IO vs state/step history/output/error) and the awaitingEvents field feeding control_run. Lacks any note on size limits or latency for deep step histories, keeping it below a 5.

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?

Four dense sentences, each covering a distinct decision point (executionId mode, instanceId mode, mutual exclusion, simple flag), front-loaded with the core purpose. 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?

With an output schema present, the description needn't enumerate return shapes, and it still characterizes the content per mode plus the awaitingEvents linkage. Everything an agent needs to choose a mode and call correctly is present.

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

Parameters5/5

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

Schema coverage is 100%, yet the description adds the crucial non-schema constraint that executionId and instanceId are mutually exclusive one-of, and that simple is only meaningful with instanceId. That is semantics the schema alone does not enforce or convey.

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?

States a specific verb+resource ('Get one run's details') and immediately splits into the two distinct run flavors (executionId execution logs vs instanceId durable runs), making it distinguishable from list_runs and get_deployment_status. An agent knows exactly what it retrieves.

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?

Explicitly states 'Pass exactly one of the two' and names where each id comes from (list_runs history / run_workflow or list_runs instances). It also names the downstream consumer (control_run send_event must use awaitingEvents) and when to set simple for cheap polling.

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