Skip to main content
Glama

Railflag

Plan migration

plan_migration
Idempotent

Builds a dry-run plan from the latest scan. envMap maps source environment ids (from get_connection or the scan) to Railflag environment keys, e.g. {"production": "staging"} to try production data in staging first. Nothing is written.

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": {
      "connectionId": "<connectionId>",
      "envMap": "<envMap>"
    },
    "name": "plan_migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
envMapYes
connectionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower; the description still adds real value by asserting the plan is a dry run and that the mapping lets you rehearse against a non-production key. However, "Nothing is written" sits in tension with readOnlyHint=false, since a plan artifact is apparently persisted (hence get_plan/apply_plan). That ambiguity about what state actually changes is exactly the gap this dimension should close.

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 front-loaded sentences: purpose, then the parameter explanation with a compact example, then the safety guarantee. The example is load-bearing because it disambiguates mapping direction, 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 tool with a nested object parameter and no output schema, the definition covers the semantics of the risky input and the dry-run nature but omits what a caller does with the resulting plan and which tool applies it. The "from the latest scan" prerequisite is only implied, as is the significance of connectionId.

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

Parameters4/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 meaning, and it does for the hard one: envMap is defined as source environment ids to Railflag environment keys, with direction disambiguated by a concrete example and a stated data source. connectionId is left entirely unexplained, which is the one remaining hole.

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?

"Builds a dry-run plan from the latest scan" gives a specific verb (builds), a specific artifact (plan), and its input source (latest scan). It is distinguishable from apply_plan/get_plan through "dry-run" and "Nothing is written," though neither sibling is named explicitly.

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 definition establishes clear usage context: preview before acting, and use envMap to try production data in staging first. It even points at get_connection as the source of environment ids. It stops short of naming apply_plan as the follow-up or stating any exclusion, so it sits just below the top tier.

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