Skip to main content
Glama

Railflag

Update targeting

update_targeting

Replaces a flag's targeting in one environment. Read it with get_flag first and pass its version as baseVersion so you never overwrite someone else's change. Rules are checked top to bottom; the first match wins.

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": {
      "key": "<key>",
      "environment": "<environment>",
      "targeting": "<targeting>",
      "baseVersion": "<baseVersion>"
    },
    "name": "update_targeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
reasonNo
targetingYes
baseVersionYes
environmentYes
watchPlanIdNoA Release Watch plan from suggest_watch_plan: it starts watching when this change is applied

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?

The annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), so the description's added value is real: it discloses that this is a wholesale replacement of the targeting document, that optimistic concurrency via baseVersion prevents clobbering concurrent edits, and that rule evaluation is ordered with first-match-wins. It does not say what happens to fields omitted from the replacement payload or how prerequisites interact, so it is not fully transparent.

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?

Three short sentences, each doing distinct work: what changes, how to do it safely, and how rules are evaluated. The concurrency warning is placed early and nothing is redundant.

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

Completeness3/5

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

For a mutation tool with six parameters, deep nested objects, and no output schema, the description covers the two highest-risk concepts (concurrency and rule ordering) but is silent on replacement semantics for omitted fields, what the response contains, and the meaning of the nested targeting sub-objects. It is adequate but has clear gaps an agent would want covered.

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 only 17%, so the description carries a lot of the burden. It does explain baseVersion's meaning and source (get_flag's version) and clarifies the ordering semantics of the rules array, but leaves the nested targeting structure (targets, fallthrough, prerequisites, offVariation), environment, reason, and watchPlanId entirely to the schema.

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 opens with a specific verb and resource ('Replaces a flag's targeting') plus scope ('in one environment'), which is far more precise than the bare title. It does not name a sibling to contrast with (e.g. set_rollout or toggle_flag), so the agent must infer differentiation, keeping it just short of a 5.

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 an explicit prerequisite workflow: read the flag with get_flag first and pass its version as baseVersion. That is clear context for correct use. It stops short of stating when-not-to-use (e.g. use set_rollout for a quick percentage change, or update_plan for staged changes).

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.

Resources