Skip to main content
Glama

Get prompt run status

get_prompt_status
Read-onlyIdempotent

Retrieves the run status of a queued, running, or finished prompt, so clients can determine completion without inferring it from sandbox state or events.

Instructions

Get prompt run status. Returns first-class status for a queued/running/finished prompt so clients do not infer completion from sandbox state and events.

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": {
      "sandboxId": "<sandboxId>",
      "promptId": "<promptId>"
    },
    "name": "get_prompt_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptIdYes
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds meaningful semantic context — that status is authoritative rather than derived from sandbox state or events, and that states are queued/running/finished — but says nothing about behavior for unknown promptIds, eventual consistency, or error cases.

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 short sentences with the purpose front-loaded and zero filler. The second sentence is dense but earns its place by explaining why the tool exists rather than restating the name.

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?

With no output schema, the description carries the burden of describing the return value, and it only gestures at it ('first-class status') while listing possible states. For a two-required-parameter polling tool it is adequate but leaves the agent guessing at the response shape and the meaning of promptId.

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

Parameters2/5

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

Schema description coverage is only 50%: sandboxId is documented with its pattern and provenance, but promptId has no description anywhere. The description adds no meaning about what promptId identifies (e.g., returned by prompt_agent) or how the two parameters relate, so the coverage gap is left unfilled.

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 names a specific verb and resource ('Get prompt run status') and clarifies the payload is a first-class status covering the queued/running/finished lifecycle. It distinguishes itself implicitly from status inference via sandbox state, but never names a sibling such as get_command_status, so an agent must infer the prompt-vs-command distinction from the name alone.

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

Usage Guidelines3/5

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

The phrase 'so clients do not infer completion from sandbox state and events' steers the agent away from an alternative approach, which is useful indirect guidance. However, it never states when to call (e.g., after prompt_agent, while polling), how often to poll, or whether this replaces or complements event streams, leaving usage largely implied.

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