list_flag_definitions
Retrieve feature flag definitions (targeting rules) in a specific environment, with an option to return only names and IDs for faster browsing.
Instructions
List all feature flag definitions (targeting rules) in a specific environment. Full definitions are large; pass summary: true to get name/id only when you just need to locate a flag.
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": {
"workspace_id": "<workspace_id>",
"environment_id": "<environment_id>"
},
"name": "list_flag_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results to return (max 50) | |
| offset | No | Pagination offset | |
| summary | No | Return only name and id per flag instead of full treatment/rule bodies — avoids oversized responses in environments with many flags | |
| workspace_id | Yes | The workspace ID | |
| environment_id | Yes | The environment ID or name |