Create Feature
feature_createAdds a feature to an app's Plan Builder catalog. Requires name, key
and type. key is what @the-meridian/sdk isEnabled("<key>")
checks: lowercase letters, digits and underscores, unique per app, and
it cannot be changed afterwards. type is boolean (on or off per
plan) or number (a limit per plan, such as 100 wishlists), and cannot
be changed either. Optional description. The feature is in no plan
yet: add it with plan_create or plan_update. Call features_list
first to avoid duplicating a key. Takes the app_id returned by
apps_list. Returns the same shape as one features_list entry.
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": "<name>",
"key": "<key>",
"type": "<type>"
},
"name": "feature_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | App-local key the SDK checks: lowercase letters, digits, underscores. Unique per app. Immutable. | |
| name | Yes | Display name of the feature. | |
| type | Yes | `boolean` (on or off per plan) or `number` (a limit per plan). Immutable. | |
| app_id | Yes | The app uuid returned by `apps_list`. | |
| description | No | Optional free-text description. | |
| 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. |