update_document
Update a stored document's type, title, reference number, issuing authority, fee, notes or linked pet, vehicle or appliance, returning the updated document. Only the fields you send change. renewalCronExpression is the one exception: it is accepted but not yet stored or acted on, so sending it changes nothing.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "01928e4a7d3f7b9ac1e3f6d8b2a4c710",
"notes": "Renewed for another 10 years.",
"issuingAuthority": "HM Passport Office"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id from create_document or list_documents. | |
| fee | No | Cost. Replaces the stored fee outright. | |
| notes | No | Free-text notes. | |
| title | No | Custom title. | |
| documentType | No | Kind of document. | |
| documentNumber | No | Reference or serial number, e.g. a passport or policy number. | |
| linkedEntityId | No | Id of that pet, vehicle or appliance from list_pets, list_vehicles or list_appliances. Send with linkedEntityType; "" for both removes the link. | |
| issuingAuthority | No | Who issued it. | |
| linkedEntityType | No | Kind of record the document is filed against. Send with linkedEntityId; send "" for both to remove the link, omit both to keep it. | |
| renewalCronExpression | No | Accepted but not yet stored or acted on; has no effect. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| title | No | ||
| message | No | ||
| variant | No |