Skip to main content
Glama

Get Operation Status

get_operation_status
Read-only

The state of one operation: queued, running, succeeded, or failed.

Includes each substep's outcome (a scan has generate_context and
discover_behaviors; generate_probes has generate_probes and score_behaviors),
the latest progress message and log, warnings, and
the error when it failed. Scans take minutes: wait 30-60 seconds between
calls.

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": {
      "operation_id": "<operation_id>"
    },
    "name": "get_operation_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
operation_idYesThe operation_id from scan_agent or generate_probes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish the safe read-only, closed-world profile, and the description goes further by disclosing what payload comes back: per-substep outcomes, latest progress message and log, warnings, and the failure error. The polling-latency warning ('scans take minutes') is real behavioral context an agent could not infer. It stops short of noting whether results expire or what happens for an unknown operation_id.

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?

The core purpose is front-loaded in the first line, followed by return contents and then the polling advice, which is a sensible ordering. The parenthetical substep examples are a bit wordy but convey concrete operation shapes rather than filler.

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 no output schema, the description carries the burden of explaining return values and does so adequately through its enumeration of substeps, logs, warnings, and errors. Combined with the trivial single-parameter schema and read-only annotations, an agent has enough to call this correctly, though nothing is said about result retention or failure modes such as an invalid id.

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 parameter at 100% schema coverage, so the schema already explains that operation_id comes from scan_agent or generate_probes. The description body adds no further meaning about the identifier, so the baseline 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 names a specific resource ('one operation') and enumerates the states it can report (queued, running, succeeded, failed), so the agent knows exactly what it gets back. It does not explicitly distinguish itself from siblings like get_agent_status or get_experiment_job, leaving the boundary implicit rather than stated.

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 only implied: the caller learns it should poll this after scan_agent or generate_probes, but that link lives in the schema's parameter description, not the tool description. The polling cadence ('wait 30-60 seconds between calls') is a genuinely useful operational guideline, but there is no explicit statement of when to choose this tool over the other status tools.

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.