Skip to main content
Glama

code_status

Read-onlyIdempotent

Poll a background job to retrieve bounded output and helper events, pass afterSequence for new events, and check pendingApprovals for human approval URLs in interactive modes.

Instructions

Poll a background job for output and helper events. Pass afterSequence for new events. Output is bounded and may be withheld by hooks. Default autoApprove has no pending approvals. In explicitly configured interactive modes, pendingApprovals contains URLs for the human.

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": {
      "jobId": "<jobId>"
    },
    "name": "code_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYes
afterSequenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered; the description goes further by disclosing that output is bounded, that hooks may withhold output entirely, and how approval state surfaces in default versus interactive modes. It stops short of explaining how truncation manifests or how a terminal job state is detected.

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?

Four short sentences, front-loaded with the action and cursor semantics; nothing is redundant. The telegraphic phrasing of 'Default autoApprove has no pending approvals' is slightly elliptical but still parses.

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?

For an asynchronous polling tool with no output schema and no parameter descriptions, the description does cover the important response concepts (bounded output, withheld output, pendingApprovals). It omits how an agent knows the job has finished and what states exist, which is essential for a correct polling loop.

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 description coverage is 0%, so the description carries the burden; it explains afterSequence as a cursor for new events, which meaningfully supplements a bare integer with a default of 0. jobId is left entirely implicit, though the uuid format makes its meaning self-evident.

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?

States a specific verb and resource: 'Poll a background job for output and helper events.' That is unambiguous and implies it is the follow-up to a job-starting call, but it never names a sibling (code_start, code_execute, code_cancel) so the boundary with alternatives must be inferred.

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?

'Pass afterSequence for new events' gives real incremental-polling guidance, which is more than a bare purpose statement. However, there is no explicit statement of when to poll versus when to cancel/resume, no guidance on when to stop polling, and no stated prerequisites beyond the implied job-started context.

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