Skip to main content
Glama

Railflag

Code migration guide

get_code_guide
Read-only

How to rewrite the source vendor's SDK calls to OpenFeature with Railflag: setup, regex patterns, before/after examples, notes. Apply it in the user's repo yourself and show them the diff.

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": {
      "vendor": "<vendor>"
    },
    "name": "get_code_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
vendorYes
languageNoLanguage of the code to migrate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real value on top by disclosing the shape of the returned content (setup steps, regex patterns, before/after pairs, notes). It goes further to instruct that the material be applied in the user's repo and a diff shown, which clarifies the intended downstream action for a read-only tool. No auth, size, or pagination details are given.

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?

Dense but front-loaded: the content inventory comes first and the action instruction last, with no filler sentences. The parenthetical list is long but each item is informative rather than padding.

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?

For a two-parameter, read-only lookup with no output schema, the description covers what is returned and what to do with it, which is most of what an agent needs. The only ambiguity is whether the guide is filtered by language as well as vendor, or returned whole regardless of the language argument.

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 coverage is 50% and the description never discusses the parameters directly; 'source vendor's SDK calls' only faintly signals the vendor argument. The two enum-constrained parameters are largely self-documenting and language carries a schema description, so the semantic risk is low and the baseline 3 is appropriate.

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?

Names a specific verb and resource and enumerates the guide's contents (setup, regex patterns, before/after examples, notes), so an agent knows exactly what it is fetching. It stops short of explicitly distinguishing itself from siblings such as plan_migration or scan_source, which also relate to migration work.

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 is implied rather than stated: the reader infers this is for the rewrite step of a migration. The line 'Apply it in the user's repo yourself and show them the diff' gives useful post-retrieval workflow direction, but there is no explicit when-not guidance or pointer to which sibling to call first (e.g. plan_migration) or instead.

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