Skip to main content
Glama
code-bridge

code-bridge

by ITSWProj

Avvia Claude Code

claude_start

Starts a background Claude Code job and returns a job_id immediately, so long tasks run without blocking. Use claude_wait with that ID to retrieve the result.

Instructions

Avvia un lavoro in background su Claude Code e restituisce subito un job_id. Non attende il completamento: usare claude_wait con quel job_id per ottenere il risultato. Adatto a compiti lunghi; per richieste brevi usare claude_run. PRIMA di chiamarlo, chiamare claude_status: ogni istanza di Claude Code occupa centinaia di MB e il numero di istanze contemporanee è limitato. Se esiste già un lavoro sullo stesso progetto, usare claude_wait su quel job_id invece di avviarne un altro. Se la risposta contiene DECISIONE RICHIESTA, non avviare nulla: riportare le opzioni all'utente e richiamare questo strumento con il parametro mode scelto da lui. Se la risposta contiene RIFIUTATO, non ritentare in nessun caso.

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": {
      "prompt": "<prompt>",
      "cwd": "<cwd>"
    },
    "name": "claude_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesDirectory del progetto
modeNoScelta dell'utente in caso di conflitto. wait = attendi il lavoro già in corso; restart = termina quello in corso su questo progetto e riparti; resume = riprendi la sessione precedente del progetto; fresh = parti da una sessione nuova. Omettere alla prima chiamata: se serve una scelta, lo strumento la chiede.
promptYesIl prompt da eseguire
session_idNoID sessione da riprendere, se si continua un lavoro precedente

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does well: it discloses asynchronous non-blocking semantics, resource cost per instance, a concurrency ceiling, and a hard no-retry rule on rejection. It stops short of describing failure modes other than rejection or what the start response looks like beyond containing a job_id, so not quite maximal.

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?

Front-loaded with the core action and return value, then alternative routing, then the prerequisite, then the edge-case handling. Dense but every sentence carries operational information; there is no restatement or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no annotations and no output schema, the description covers the async contract, the follow-up tool needed to retrieve results, resource and concurrency constraints, and both declared error paths. Nothing an agent needs in order to call it correctly is missing.

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 the schema already documents cwd, prompt, session_id and the mode enum, establishing a baseline of 3. The description adds genuine policy beyond the schema: mode should be omitted on the first call, and should only be supplied after surfacing options to the user, which is usage meaning not captured in the field descriptions alone.

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 ("Avvia un lavoro in background su Claude Code") plus the immediate outcome ("restituisce subito un job_id"). The very next clause distinguishes it from siblings claude_wait and claude_run, so an agent can pick it without opening any 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-to-use (long-running tasks), when-not (short requests -> claude_run), a mandatory prerequisite (call claude_status first because each instance consumes hundreds of MB and concurrency is capped), and an alternative action when a job already exists on the same project (claude_wait on that job_id). It also prescribes behavior for the DECISIONE RICHIESTA and RIFIUTATO outcomes, leaving nothing to inference.

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