Skip to main content
Glama

Railflag

Apply plan

apply_plan
Idempotent

Writes the plan into one Railflag environment. Running it again changes nothing. Environments that need approval return an approvalUrl for a person. Never writes to the source vendor.

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": {
      "planId": "<planId>",
      "environment": "<environment>"
    },
    "name": "apply_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYes
environmentYes
planVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description's 'running it again changes nothing' largely restates idempotency. It does add genuinely new behavior, however: approval-required environments return an approvalUrl for a human, and the write is confined to the target environment rather than the source vendor. That approval-gate detail is the kind of thing an agent cannot get from annotations.

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?

Four short sentences, front-loaded with the core action, then idempotency, then the approval path, then the safety boundary. Nearly every sentence earns its place; the idempotency sentence is the only one partly redundant with the annotations.

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?

The behavioral picture is reasonably complete for a mutation tool: idempotency, approval handling, and blast radius are all covered, and no output schema exists that would need explaining. The gap is on the input side, where three undocumented parameters leave an agent guessing about planVersion semantics.

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% across three parameters, and the description explains none of them. 'One Railflag environment' weakly signals that environment is a single target, but planId and planVersion are entirely undefined, as is whether planVersion is required for approval flows. The description does not compensate for the coverage gap.

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 and resource: 'Writes the plan into one Railflag environment.' The scope constraint 'Never writes to the source vendor' further bounds what the write affects, which helps separate it from update_plan and plan_migration. It stops short of naming a sibling to route against, so it lands at 4 rather than 5.

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?

Usage context is implied rather than stated: re-running is safe, and approval-gated environments return an approvalUrl. There is no explicit 'use this after get_plan' or 'use update_plan instead when X' guidance, and no statement of when not to apply a 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