Skip to main content
Glama

op_get

Retrieve the current state of a queued or running operation by ID, including status, progress, failures, and errors; unknown or unauthorized IDs return NOT FOUND.

Instructions

One operation's state: {id, kind, status (pending, running, ok, partial, failed, cancelled), total, done, failed, error, …}. Someone else's operation answers NOT FOUND, as one that never existed.

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": "op_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe operation's id (op.id from the tool that queued it, or ops_list)

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it enumerates the status values (pending, running, ok, partial, failed, cancelled) and discloses that another user's operation returns NOT FOUND indistinguishable from a nonexistent one, which is important enumeration/security context. It stops short of stating read-only semantics explicitly or any polling/expiry behavior.

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 dense sentences, front-loaded with the resource and its shape. The brace-and-ellipsis notation is efficient but slightly cryptic, and the NOT FOUND note could be phrased more plainly.

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?

An output schema exists, so the field recap is redundant but the behavioral note about NOT FOUND is essential and present. For a single-param read tool, the remaining gap — polling cadence and whether the call is read-only — is minor.

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 coverage is 100% and the schema already explains the id (op.id from the queuing tool, or ops_list), so the baseline is 3. The description adds no syntax, format, or sourcing detail beyond what the schema provides.

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?

Names a specific verb+resource ("One operation's state") and enumerates the returned fields plus the status vocabulary, so an agent knows exactly what this retrieves. It doesn't explicitly contrast itself with ops_list or op_cancel, so sibling differentiation is only implied.

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?

Usage is implied — fetch the state of a single operation by id — and the param doc points at ops_list as the source of ids. There is no explicit when-to-use statement, no guidance on polling vs. one-shot checks, and no stated alternatives.

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