Skip to main content
Glama

Ask a worker a side question

ask_worker

Ask a worker why it did something without touching its work by forking its thread into a read-only, network- and tool-isolated session; follow-ups continue that fork, and fresh starts a new one.

Instructions

Ask the worker why it did something without touching its work: its thread is forked into a read-only session with no network and no MCP tools, and the fork answers. Follow-up questions continue that fork; fresh starts a new one from the worker's current thread, end deletes it.

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": {
      "task_id": "<task_id>"
    },
    "name": "ask_worker"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
freshNo
task_idYes
questionNo
max_charsNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses that the thread is forked read-only, isolated from network and MCP tools, and that the worker's own work is untouched. It also documents the fork lifecycle (continue/fresh/end-deletes). It does not mention permission requirements, cost/latency of the fork, or what the answer looks like, which keeps it short of a 5.

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 sentences, no filler, with the read-only isolation guarantee front-loaded before the lifecycle details. The second sentence is dense but each clause maps to a distinct parameter behavior, so it earns its length.

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 a 6-parameter tool with no annotations and no output schema, the description covers the behavioral core well but omits the meaning of max_chars and timeout_ms and does not indicate what the returned answer looks like or how truncation behaves. Those gaps matter for correct invocation of a long-running query tool.

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% across 6 parameters, so the description must compensate. It explains the semantics of 'question' (follow-ups reuse the fork), 'fresh' and 'end' well, but leaves 'max_chars' and 'timeout_ms' entirely unaddressed and only implies 'task_id' as the worker selector, so half the parameters remain undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Ask the worker why it did something') and immediately adds the defining constraint 'without touching its work', which separates it from sibling worker tools that mutate or land work. The forked read-only session mechanism makes the operation unambiguous.

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?

It gives clear operational context: follow-up questions continue the existing fork, 'fresh' starts a new fork from the worker's current thread, and 'end' deletes it. What's missing is explicit when-not guidance or a named alternative sibling for cases where you want to inspect a worker's work rather than question it.

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