Skip to main content
Glama

Railflag

Turn a flag on or off

toggle_flag

Turns a flag on or off in one environment. In environments that need approval this returns an approvalUrl for a person.

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>",
      "enabled": "<enabled>"
    },
    "name": "toggle_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
reasonNo
enabledYes
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

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuinely non-obvious behavior — an approval gate that returns an approvalUrl instead of applying the change — but omits whether the toggle is queued vs immediate in other environments, what the response looks like when no approval is needed, and whether `reason` is surfaced to approvers.

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?

Two sentences, zero filler, action and scope front-loaded before the approval caveat. It is efficient, though the brevity is partly what leaves the parameter and outcome gaps.

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

Completeness2/5

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

For a mutation tool with no output schema and 20% schema coverage, the description is thin: it does not explain what a successful non-approval response contains, whether the change is reversible, or how reason/watchPlanId affect the outcome. The approval behavior is the only substantive detail provided.

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 only 20% (only watchPlanId is documented), so the description must carry the parameter burden. It says nothing about `key`, `environment`, `enabled`, or the purpose of `reason`, leaving four of five parameters unexplained in both schema and prose.

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?

States a specific verb (turns on/off) and resource (a flag) with an explicit scope limit of 'one environment'. It is clearly distinct from create_flag or set_rollout, though it never names a sibling to route against.

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

Usage Guidelines3/5

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

The use case is implied by 'turns a flag on or off in one environment', but there is no explicit when-to-use guidance, no exclusion pointing to set_rollout for gradual changes, and no note on whether toggling requires a reason or an existing plan.

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