Skip to main content
Glama

Get a run

get_run
Read-onlyIdempotent

Read a run: status, output, error, model (the model id it used; omitted for a zero-data-retention run), cost and billing_pending. COST: while billing_pending is true (or the run is still going), cost_micros is PROVISIONAL and usually higher than the final cost; the result then has cost_final:false and a cost_note. Quote a cost only when cost_final is true (the run is finished and billing_pending is false); otherwise call get_run again in a few seconds. For a zero-data-retention run the first read of a finished run returns the output and then deletes it. On the hosted service a run costs a run fee once its worker starts, compute per second, model calls at the provider's price plus a percentage, and web requests and searches at flat prices; get_account (REST: GET /v1/me) reports the rates.

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": {
      "id": "<id>"
    },
    "name": "get_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe run's id, as returned by create_run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Substantially exceeds the annotations: it explains that cost_micros is PROVISIONAL while billing_pending is true or the run is live, that the response carries cost_final:false and a cost_note, and that web-request/list-style pricing components exist with rates from get_account. It also discloses the non-obvious side effect that a first read of a finished zero-data-retention run returns the output and then deletes it, which is exactly the kind of behavior an agent cannot infer from readOnlyHint/destructiveHint.

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?

Front-loaded with the read summary, then a clearly labeled 'COST:' block, so the highest-risk caveat is easy to locate. The cost-and-pricing sentences are dense and partly informational rather than action-guiding, which keeps it from a 5 but nothing is genuinely redundant.

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 no output schema, the description carries the return-value burden and does so by enumerating the returned fields and the provisional-cost flags. Combined with the annotations covering read-only safety, an agent has everything needed to call it and interpret the result correctly.

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 a single required parameter 'id' and the schema already documents it fully at 100% coverage ('The run's id, as returned by create_run'). The description adds no further meaning about the id's format or source, so the baseline 3 applies rather than anything higher.

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 opens with a specific verb+resource ('Read a run') and enumerates the fields returned (status, output, error, model, cost, billing_pending), so an agent immediately knows this fetches a single run's full state rather than a list. It never names a sibling, notably wait_for_run and list_runs, so differentiation within the family is left implicit.

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

Usage Guidelines4/5

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

Clear conditional guidance for the most error-prone case: only quote a cost when cost_final is true, otherwise 'call get_run again in a few seconds'. That tells the agent both when to use and how to re-use the tool. The gap is that it does not point at wait_for_run for polling, which the sibling list suggests exists.

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