Skip to main content
Glama

skraft_attendre

Waits for a run to change—phase, step, rejection, question, answer, message, or completion—then returns the changes and progress line as JSON so you can relay updates and answer questions.

Instructions

Attend qu'il se passe quelque chose dans un run (phase, étape, rejet, question à poser, réponse, message, fin), au plus delai secondes (30 par défaut, 50 au plus), puis rend ce qui a changé depuis le dernier appel et la ligne de progression, en JSON. Rapporte chaque changement à l'utilisateur, en reprenant la ligne de progression ; montre-lui toute question et réponds avec skraft_repondre selon son choix ; rappelle cet outil tant que termine est faux.

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": "skraft_attendre"
  }
}

Input Schema

NameRequiredDescriptionDefault
delaiNoAttente maximale, en secondes (30 par défaut, 50 au plus : un client abandonne souvent un appel au-delà de 60 s).
tacheNoLe run à suivre ; par défaut, tous les runs du projet.
projetNoDossier du projet ; par défaut le premier root du client, sinon le dossier courant du serveur.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does well: it discloses that this is a blocking long poll bounded by `delai` (default 30s, max 50s with a rationale about client timeouts), that it returns only what changed since the previous call, and that `termine` in the result governs whether to call again. Gaps remain around timeout behaviour (what comes back if nothing happens) and error cases such as an unknown run or project.

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-loads the action and return value in the first clause, then gives the agent workflow instructions in a compact sequence. Despite being dense, every clause (event list, delay bounds, delta semantics, `termine` loop, `skraft_repondre` handoff) carries operational value.

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?

With no annotations and no output schema, the description supplies the missing output semantics (`termine`, changed events, progress line) and the polling contract, which is what an agent needs to drive the loop. It stops short of describing the empty-timeout response and failure modes for a 3-parameter blocking 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 100%, so the schema already explains `delai` (including default and max), `tache` and `projet` defaults. The description only restates the delay bounds and adds no new parameter meaning, making the baseline 3 appropriate.

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?

States a specific verb and resource (watch a run and wait for an event) and enumerates the event types it wakes on, plus what it returns (changes since last call plus the progress line, in JSON). It does not explicitly contrast itself with the sibling `skraft_etat`, so an agent must infer that this one blocks whereas that one presumably snapshots.

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?

Gives concrete usage context: report each change to the user, show any question and answer it via `skraft_repondre` according to the user's choice, and call this tool again while `termine` is false. That is a clear operating loop with a named alternative for one branch, but it never says when not to use this tool (e.g., versus `skraft_etat` or `skraft_rapport`).

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