update_animal
Need to change an animal's details? Update only the specified fields in the record; existing information stays intact.
Instructions
Update an existing animal's details. Pass the fields to change as the named profile fields (name, kind, sex, breed, color, birth_date, notes); they merge into the existing metadata rather than replacing it, so changing one field keeps the rest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sex | No | Sex/gender, e.g. female, male, castrated male (steer/wether). | |
| kind | No | Classification word: cow, heifer, bull, steer, ram, ewe, ewe lamb, lamb, kid, etc. | |
| name | No | The animal's name or call name. | |
| breed | No | Breed or cross, e.g. "Suffolk X", "Angus". | |
| color | No | Color or markings, e.g. "white", "black white-face". | |
| notes | No | Any other standing detail (e.g. "bottle-fed", "polled"). Goes into metadata.notes. | |
| farm_id | No | The ID of the farm (optional if a default is set). | |
| metadata | No | Optional raw metadata keys to set; merges into the existing metadata over the named fields. | |
| animal_id | Yes | The UUID of the animal to update. | |
| birth_date | No | Date of birth as an ISO date (YYYY-MM-DD). Derive it from an age if the user gives one. | |
| inventory_status | No | Inventory status: CURRENT (default on create), UNKNOWN when current presence is unconfirmed, SOLD, or DECEASED. Historical profiles remain readable. |