create_record
Creates farmOS records such as assets, logs, plans, quantities, taxonomy terms, or organizations from supplied attributes and relationships. Search first because names are not unique; writes must be enabled.
Instructions
Create any record. Prefer create_log for logs with quantities. Requires writes to be enabled. Names are not unique in farmOS, so search first to avoid duplicates.
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": {
"entity_type": "<entity_type>",
"bundle": "<bundle>"
},
"name": "create_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | Bundle, e.g. 'land', 'plant', 'activity', 'plant_type' | |
| attributes | No | Field values, e.g. {'name': 'North Field', 'land_type': 'field'} | |
| entity_type | Yes | One of: asset, log, plan, quantity, taxonomy_term, organization | |
| relationships | No | Relationship name -> {'type': 'asset--land', 'id': '<uuid>'} or a list of those. E.g. {'parent': [{'type': 'asset--land', 'id': '...'}]} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||