Skip to main content
Glama
canopy-labs

Featureflip

Official

Get targeting rules

get_targeting
Read-only

Retrieve a feature flag's current targeting configuration for any environment—showing enabled status and ordered rules—to understand who gets the flag.

Instructions

Get a flag's current targeting configuration (enabled flag + ordered rules) in one environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagYes
projectYes
environmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The readOnlyHint annotation already establishes that this is a safe read operation, lowering the bar. The description adds that the result is current and includes the enabled flag plus ordered rules, but does not disclose error behavior, permissions, or how order is determined. That is adequate but leaves some behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence conveys the object, scope, and return contents without filler. Every phrase adds value, and the parenthetical clarifies what 'targeting configuration' means.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only getter with three self-named parameters and no output schema, the description is mostly complete: it states what the tool returns and the environment scope. The main shortfall is not explaining project/flag identifier semantics, but sibling list tools and property names make this recoverable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for the three string parameters. It only contextualizes 'environment' via 'in one environment'; 'project' and 'flag' receive no additional meaning beyond their property names, leaving the agent to infer identifiers and required formats.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Get'), a specific resource ('a flag's current targeting configuration'), and the result content ('enabled flag + ordered rules') in one environment. This clearly differentiates it from siblings like get_flag and update_targeting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear context: use this when you need the current targeting configuration for a specific flag in a specific environment. It does not explicitly name alternatives or exclusions, but the purpose is narrow and unambiguous enough for an agent to select it appropriately.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.