Skip to main content
Glama

attach_job

Follow a running managed job until completion, then save its output and stop the runtime by default.

Instructions

Follow a running managed job until it ends, then save and (by default) stop. Can be long-running.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "attach_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNodefault
stop_afterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description does carry real behavioral weight: it is blocking, it saves state, it stops the job by default, and it may run long. It omits what "save" actually produces, what happens on job failure or if the job is no longer running, and whether there is any timeout or cancellation path.

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 with the lifecycle behavior front-loaded and the long-running caveat appended where it is most useful. No wasted wording.

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 two-parameter, annotation-free, no-output-schema tool that mutates job state, the description covers lifecycle and duration but leaves the save artifact, failure handling, and the project scoping unexplained. It is adequate to know when to reach for it, less so to predict its effects.

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 coverage is 0%, so the description must compensate. The phrase "(by default) stop" does map onto stop_after and implies passing false keeps the job alive, but the project parameter is never explained, and the save/stop boolean semantics are only hinted rather than stated.

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 uses a specific verb ("Follow") on a specific resource ("running managed job") and states the terminal action ("until it ends, then save and stop"). It implicitly contrasts with a polling-style sibling but never names job_status, so an agent gets the purpose without explicit disambiguation.

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: it tells the agent this is the blocking path ("until it ends") and warns it "can be long-running." It gives no explicit when-not guidance, no mention of the non-blocking alternative (job_status), and no prerequisites for the target job's state.

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