Skip to main content
Glama
canopy-labs

Featureflip

Official

Get user segment

get_segment
Read-only

Fetch a user segment's conditions, ID, and metadata by key or ID. Use this to review targeting rules for feature flags.

Instructions

Get one user segment (its conditions, id, and metadata) by key or id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesProject key
segmentYesSegment key or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds the response contents (conditions, id, metadata), which is behavior beyond the schema and annotations, providing useful context for what the agent will receive.

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 sentence with no filler. The main action and resource appear first, followed by the return fields and lookup method. Every word earns its place.

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

Completeness5/5

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

For a simple getter with two well-described parameters, read-only annotation, and no output schema, the description is sufficient. It names the response fields, so an agent knows what to expect without needing additional information.

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

Parameters3/5

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

Schema description coverage is 100%, with both 'project' and 'segment' already described in the schema. The description's 'by key or id' merely restates the segment param description, adding no new parameter semantics. Baseline 3 applies.

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 verb ('Get'), a specific resource ('one user segment'), and the return contents ('conditions, id, and metadata'). It clearly distinguishes from list_segments (plural vs singular) and get_flag (different resource).

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?

The description implies usage when a single segment is needed by key or id, and the sibling list makes the alternative (list_segments) obvious. However, it does not explicitly state when not to use it or name the alternative, so it stops short of full routing guidance.

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