update_tool
Update a tool draft by providing the fields to change and the expected version; if a conflict occurs, re-read the current draft and retry.
Instructions
Update a tool draft. Read it first to get expectedVersion; on a 409 conflict, read again and retry. Pass only the fields you are changing (camelCase) in fields.
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": {
"id": "<id>",
"expectedVersion": "<expectedVersion>",
"fields": "<fields>"
},
"name": "update_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The tool's id. | |
| fields | Yes | The fields to change, as a JSON object (camelCase keys). | |
| expectedVersion | Yes | The version you last read — rejected with 409 if stale. |