List CRM Custom Fields
custom_fields_listLists an app's CRM custom field definitions: custom_field_id,
handle (the key a value write is addressed to), name, type
(text, number, boolean, select, date, or json), options
(the allowed values of a select field), segment_operators (the operators
a segment condition on this field may use; empty for json, which is
not filterable), readable_by_app (whether GET /public/me returns
the value to the app, where the merchant's browser can see it; set in
the dashboard, off by default for a new field), and values_count (how
many stores currently have a value). Takes the app_id returned by
apps_list.
Pass shop_domain to additionally resolve that store's value for every
definition, returned under values as a handle => value map. Fields
the store has no value for are omitted from that map. Definitions
require crm.custom_fields.view; resolving a store's values also
requires crm.merchants.view.
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": {
"app_id": "<app_id>"
},
"name": "custom_fields_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app uuid returned by `apps_list`. | |
| shop_domain | No | Optional myshopify domain (e.g. "acme.myshopify.com"). When supplied, that store's current value for each definition is returned as well. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |