Skip to main content
Glama
code-bridge

code-bridge

by ITSWProj

Attendi risultato

claude_wait

Waits for a Claude Code job started with claude_start to finish; if it exceeds hold_ms, returns in-progress so you can call again with the same job_id.

Instructions

Attende il completamento di un lavoro avviato con claude_start. Se il lavoro non è ancora finito entro hold_ms, restituisce lo stato 'in corso' e va richiamato di nuovo con lo stesso job_id. Se un lavoro sembra non finire mai, usare claude_status per capire se è piantato invece di avviarne un altro.

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": {
      "job_id": "<job_id>"
    },
    "name": "claude_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesID restituito da claude_start
hold_msNoQuanto attendere prima di rispondere comunque (default 30000, massimo 60000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses blocking semantics bounded by hold_ms, that the return can be an 'in progress' state requiring re-invocation, and the anti-pattern of starting a duplicate job. It stops short of saying what a completed result payload contains, but the timeout behavior is fully covered.

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?

Three sentences, front-loaded with the core action, followed by timeout handling and the escalation path. No filler and no repeated information.

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?

For a blocking two-parameter tool with no output schema, the description covers invocation, timeout handling, and recovery. The only gap is the shape of a successful return, which an agent must discover at runtime.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented; the description still adds meaning by explaining the consequence of hold_ms expiring (returns an in-progress state) and by framing job_id as the identifier returned by claude_start, which the schema states only tersely.

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?

States a specific verb and resource (waiting for completion of a job) and explicitly ties it to the job created by claude_start, which separates it from claude_status and claude_kill without needing the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when/when-not guidance: re-call with the same job_id after a timeout, and switch to claude_status when a job appears stuck rather than launching a new one. Both the alternative tool and the condition that selects it are named.

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