Skip to main content
Glama

Flagbearer

Get a user's flags

get_user_flags
Read-only

What a user should have got for every flag in one environment, by email or user key, with the reason (off, tester or rollout and their bucket), what their SDK reported that UTC day (seen), and any changes that day that flipped their result. Use it when a bug report says a feature stopped working, or works for some users and not others. times is a list of ISO timestamps to show side by side, like before and after a report; leave it out for now. An email the SDK saw with several user keys gives one entry per key.

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": {
      "applicationId": "<applicationId>",
      "environment": "<environment>",
      "user": "<user>"
    },
    "name": "get_user_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYes
timesNo
environmentYes
applicationIdYes

Output Schema

NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

readOnlyHint=true already tells the agent this is a safe read, so the bar is lower, and the description still adds real substance: it enumerates the returned facets (reason with off/tester/rollout and bucket, SDK-seen status for the UTC day, flag flips that day) and explains the multi-key behavior — 'An email the SDK saw with several user keys gives one entry per key.' It does not cover rate limits or pagination, but for a read tool that is a minor omission.

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

Conciseness4/5

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

The definition is front-loaded with the core 'what this returns' statement, then usage, then parameter guidance, so no sentence is filler. The opening sentence is long and carries several clauses, which costs a little readability, but the information density is high and nothing is redundant.

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?

An output schema exists, so return values needn't be spelled out, yet the description still characterizes the payload's facets helpfully. For a four-parameter read tool the only real gap is applicationId's meaning and how environment scopes the result; everything else an agent needs to call it correctly is present.

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 0%, so the description must carry the parameter load. It explains 'user' (email or user key) and 'times' thoroughly ('a list of ISO timestamps to show side by side, like before and after a report; leave it out for now'), and implies environment as the single-environment scope. However, applicationId is never addressed and environment's format/relationship to the org is left implicit, leaving two of four parameters partly unstated.

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

Purpose4/5

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

The description states a specific retrieval in concrete terms: 'what a user should have got for every flag in one environment, by email or user key, with the reason ... what their SDK reported that UTC day ... and any changes that day.' That is enough for an agent to distinguish this evaluation-explanation tool from siblings like list_flags or set_flag. It stops short of 5 only because it never names an alternative directly.

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 concrete triggering conditions: 'Use it when a bug report says a feature stopped working, or works for some users and not others.' That is a clear situational cue rather than an implied one. There are no explicit exclusions or named alternatives, so it lands at 4 rather than 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.