Create field definition
create_field_defCreate ONE custom field definition for items, on a category (categoryId) or org-wide (no categoryId: applies to ALL items). Types: text, number, currency (money amount, numeric value; per-field currencyCode, default = the organization's default currency), date, select (with options), multiselect (several options at once, value = array of option strings), boolean, url (http(s) link). required makes items incomplete until filled; unique (text/number) enforces distinct values across the organization, e.g. serial or inventory numbers. scaffold_categories creates several fields at once. Not idempotent: a repeated call creates a second field. Requires the manager role.
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": {
"label": "<label>",
"type": "<type>"
},
"name": "create_field_def"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| label | Yes | Field label shown in the app | |
| unique | No | Enforce distinct values (text/number only) | |
| options | No | Allowed values — required for select and multiselect, forbidden otherwise | |
| required | No | ||
| categoryId | No | Category id — omit for an org-wide field | |
| currencyCode | No | ISO 4217 code for currency fields only (e.g. EUR) — absent = the organization's default currency (defaultCurrency in get_setup_status), which is written into the new field. All of the field's values are amounts in THIS one currency; values render code-first (EUR 1'234.50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Field type (immutable once created) | |
| label | No | Field label as stored (trimmed) | |
| required | No | Whether a value is mandatory | |
| fieldDefId | No | The new field definition's id |