pub(crate) const WORK_COMPLETE_TOOL: &str = r#"{
"name": "WorkComplete",
"description": "Mark a claimed Muxqueue item finished. Requires the 'attempt' number from your WorkClaim response; a completion from a superseded claim is rejected (HTTP 409) so a slow agent cannot close out work another agent has since taken over. Record what you actually did in 'result' — it is the only trace of the work once the item is done.",
"inputSchema": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "The item id from WorkClaim" },
"attempt": { "type": "integer", "description": "The 'attempt' number returned by the WorkClaim that gave you this item" },
"result": { "type": "string", "description": "REQUIRED. What was done, or what the outcome was. Include links (PR, issue) where relevant. Once an item is done this is the only record that it happened — a completion with no result silently destroys the trace." }
},
"required": ["id", "attempt", "result"]
}
}"#;