Skip to main content
Glama

Get a run

get_run
Read-onlyIdempotent

One run's steps in the order it is walking them, each done, in hand or ahead — and its notes and values, if the person has let this assistant read them. A run that has finished or been stopped is read too, with ended set and the steps it never reached marked notReached.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "run": "<run>"
    },
    "name": "get_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYesThe run's id.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
stepNoThe step in hand.
endedNoFinished or stopped.
notesNoOnly where the person lets this assistant read notes and values.
stepsNo
statusNoThe run's status, by its id: running and paused are the app's own, and a status the person made has one of its own.
stepIDNoThe step in hand's id: what next_step and put_off_step take as expectsStep.
valuesNoBy key, and by "step › key" for a step's. Only where the person lets this assistant read notes and values.
plannedNoPlanned for later and not begun.
routineIDNo
startedAtNo
stepNumberNoWhich step it is on, counting from one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ended": {
      +      "description": "Finished or stopped.",
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "notes": {
      +      "description": "Only where the person lets this assistant read notes and values.",
      +      "items": {
      +        "properties": {
      +          "step": {
      +            "type": "string"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "writtenAt": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "planned": {
      +      "description": "Planned for later and not begun.",
      +      "type": "boolean"
      +    },
      +    "routineID": {
      +      "type": "string"
      +    },
      +    "startedAt": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "The run's status, by its id: running and paused are the app's own, and a status the person made has one of its own.",
      +      "type": "string"
      +    },
      +    "step": {
      +      "description": "The step in hand.",
      +      "type": "string"
      +    },
      +    "stepID": {
      +      "description": "The step in hand's id: what next_step and put_off_step take as expectsStep.",
      +      "type": "string"
      +    },
      +    "stepNumber": {
      +      "description": "Which step it is on, counting from one.",
      +      "type": "integer"
      +    },
      +    "steps": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "number": {
      +            "type": "integer"
      +          },
      +          "shown": {
      +            "description": "The title with the run's values filled in, where it differs.",
      +            "type": "string"
      +          },
      +          "state": {
      +            "description": "done, inHand or ahead; notReached on a run that has ended.",
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title"
      +        ],
      +        "type": "object"
      +      },
      +      "type": [
      +        "array",
      +        "integer"
      +      ]
      +    },
      +    "values": {
      +      "description": "By key, and by \"step › key\" for a step's. Only where the person lets this assistant read notes and values.",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, and the description adds real value on top: steps come back in execution order with per-step states (done, in hand, ahead), and finished or stopped runs are still readable with 'ended' set and unreached steps marked notReached. It does not cover pagination or size limits, but for a single-record read that is a minor omission.

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

Conciseness4/5

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

Two sentences, front-loaded with the core result (ordered steps) before the edge case (finished/stopped runs). The phrasing is a bit literary — 'each done, in hand or ahead' — which costs some crispness, but nothing is redundant.

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

Completeness4/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 is not obliged to enumerate return fields, and it still usefully signals the notable output semantics (ordering, step states, notReached, permission-gated notes/values). For a one-parameter read tool this is close to sufficient; only explicit guidance against sibling read tools 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?

There is exactly one parameter, the run UUID, and the schema already documents it at 100% coverage including its uuid format. The description adds no further meaning about the id, so the baseline of 3 applies.

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 makes clear this reads a single run along with its ordered steps, notes, and values, which distinguishes it in practice from list-oriented siblings like list_runs. However, it never names an alternative or states the verb plainly ('read' is only implied by 'is read too'), and the metaphor 'in the order it is walking them' takes a moment to decode.

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?

There is no explicit when-to-use guidance, no mention of how this differs from get_history or list_runs, and no prerequisites beyond an incidental note that notes/values appear only 'if the person has let this assistant read them.' A caller must infer the use case from the purpose statement alone.

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.