Skip to main content
Glama

attach_agent

Records the subagent assigned to a goal run so Quarterdeck can track execution; reserved for the quarterdeck-goals plugin, not agents or the model.

Instructions

Records which subagent is doing a goal run. For the quarterdeck-goals plugin only: agents and the model must not call this.

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": {
      "run_id": "<run_id>",
      "agent_id": "<agent_id>"
    },
    "name": "attach_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
agent_idYes
run_scopeNoA goal run passes its run id here; anyone else leaves it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that this is a write operation and that agents must not call it, which is valuable. However, it says nothing about whether a prior attachment is overwritten, whether calls are idempotent, or what happens with an unknown run_id or agent_id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the purpose and immediately followed by the critical restriction. Nothing is wasted or buried.

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 three-parameter mutation with no annotations and no output schema, the description covers the most consequential fact (agents must not call it) but leaves parameter meaning and write behavior unaddressed. It is adequate for an agent deciding not to call it, and thin for anything else.

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 33%, so run_id and agent_id have no documented meaning anywhere. The description does not explain either parameter and does not clarify the confusing distinction between run_id and run_scope, which the schema hints at but leaves ambiguous.

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 gives a specific verb and object: it 'records which subagent is doing a goal run.' That is far more than a restatement of the name. It does not explicitly contrast with siblings such as run_goal or run_progress, so it stops short of a 5.

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 states a hard scoping rule ('For the quarterdeck-goals plugin only') and an explicit prohibition ('agents and the model must not call this'), which is the strongest possible when-not guidance. It does not describe the positive conditions under which the plugin itself should invoke it, so it is not quite a 5.

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