Qué hace
Close a run you opened with start_run, reporting what it spent and the evidence for what it claims. If tool_calls or the elapsed minutes exceed the task's budget, the run is recorded as over_budget (you can still finish — the overage is just on the record). Pass receipts so a human approving this work can check it instead of taking the summary's word for it: a commit SHA, a CI run URL, a test tally, a published doc. Posts a trace line to the task's activity.
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
id | string | Obligatorio | Task id |
run_id | string | Obligatorio | The run id returned by start_run |
tool_calls | number | Opcional | How many tool calls this run made |
tokens | number | null | Opcional | Tokens spent, if you track them |
summary | string | null | Opcional | Short note on what the run did |
outcome | string | Opcional | Defaults to completed Valores permitidos completedfailed |
receipts | object[] | Opcional | Evidence for what this run claims — what a reviewer would check instead of trusting the summary. Each needs a url or a detail (or both); a receipt with neither is just an assertion. |
receipts[].kind | string | Obligatorio | Valores permitidos commitcitestdocurl |
receipts[].label | string | Obligatorio | What this is, e.g. 'unit tests' or 'deploy' |
receipts[].url | string | null | Opcional | Where to go and check it |
receipts[].detail | string | null | Opcional | The checkable value itself — a SHA, '142 passed' |
Anotaciones
Las pistas que el servidor envía con esta herramienta. Un cliente las lee para decidir si te pregunta antes de llamarla.
- Solo lectura
readOnlyHint: false - Cambia datos de tu cuenta de Done.
- Destructiva
destructiveHint: false - Solo agrega o lee; no quita ni sobrescribe nada de lo que ya existe.
- Idempotente
idempotentHint: false - Cada llamada puede agregar algo nuevo, como un comentario, una ejecución o una tarea.
- Mundo abierto
openWorldHint: false - Solo toca tu propia cuenta de Done.
Qué tokens pueden llamarla
Una conexión hecha con OAuth tiene acceso completo. Un token de Ajustes → Acceso de agentes → Tokens de MCP adicionales se puede acotar, y un token acotado nunca ve más allá de su proyecto o espacio de trabajo.
- Acceso completoPermitido
- Token de solo lecturaRechazado
- Token de un proyectoRechazado
- Token de un espacio de trabajoPermitido
Pruébala
Con Done conectado, pídele a tu asistente algo como:
“Cuando termines, cierra la ejecución con el commit y los resultados de las pruebas como comprobantes.”
Conecta Done a tu asistente
Un endpoint MCP por cuenta, con OAuth o con un token. Configuración paso a paso para cada cliente: