create_document
Store a document (passport, insurance, certificate, warranty, license, other) with its reference number, issuing authority, fee and notes. Optionally file it against a pet, vehicle or appliance with linkedEntityType and linkedEntityId. Returns the new id, which an appliance, vehicle or pet can link to.
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": {
"fee": {
"value": 8250,
"currencyCode": "GBP"
},
"notes": "Renew before the next family trip.",
"title": "UK Passport",
"documentType": "Passport",
"documentNumber": "512345678",
"issuingAuthority": "HM Passport Office"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Cost, e.g. a renewal or issuance fee. | |
| notes | No | Free-text notes. | |
| title | No | Custom title. Defaults to type plus number, e.g. 'Passport - 512345678'. | |
| documentType | Yes | 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. | |
| issuingAuthority | No | Who issued it. | |
| linkedEntityType | No | Kind of record the document is filed against. Send with linkedEntityId. | |
| 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 |