get_flag_state
Retrieve the current state of a feature flag, including its metadata and environment strategies.
Instructions
Fetch the current feature flag metadata and environment strategies from the Unleash Admin API.
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": {
"featureName": "<featureName>"
},
"name": "get_flag_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID where the feature flag resides (optional if UNLEASH_DEFAULT_PROJECT is set) | |
| environment | No | Optional environment filter (case-insensitive) | |
| featureName | Yes | Feature flag name |