Skip to main content
Glama

config-migration

Migrate a v1 config to a v2 schema with an explicit mapping, and list what was dropped or defaulted — Applies a declared mapping (from pointer, to pointer, optional transform such as string-to-number or a value map) to a v1 JSON config, carries over unmapped keys the v2 schema declares, fills schema defaults, validates the result against the v2 JSON Schema 2020-12 and returns the migrated config plus three exact lists: dropped (v1 values that landed nowhere, with their JSON pointers), defaulted (v

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": {
      "v1": "<v1>",
      "v2Schema": "<v2Schema>",
      "mapping": "<mapping>"
    },
    "name": "config-migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
v1YesThe old config (any JSON value).
mappingYes
v2SchemaYesThe new config's schema. Full JSON Schema 2020-12 (local $ref only).
applyDefaultsNoFill missing v2 properties from schema defaults (default true).
carryDeclaredNoCopy unmapped v1 values to the same pointer when v2 declares that property (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the mapping semantics, the carry-over rule for unmapped declared keys, default filling, validation against JSON Schema 2020-12, and the shape of the return (config plus enumerated dropped/defaulted lists). The text is truncated mid-sentence, so the third return list and any error/validation-failure behavior are never disclosed.

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?

The core verb+resource is front-loaded and every clause adds information, but the whole description is one run-on sentence dense with parentheticals, which makes it harder to scan than a short lead sentence followed by bulleted behavior. The trailing truncation also leaves the text unresolved.

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 5-parameter mutation tool with no annotations and no output schema, the description must explain both behavior and return shape, and it starts to do so. However, it cuts off before the third return list is named, says nothing about what happens when validation against the v2 schema fails, and gives no guidance on the interaction between 'drop' and 'to' at the mapping level.

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 80%, so the baseline is 3; the description earns above that by explaining what 'carryDeclared' and 'applyDefaults' actually do procedurally ('carries over unmapped keys the v2 schema declares, fills schema defaults'). It also clarifies that transforms include string-to-number and value maps, connecting the mapping array to real semantics rather than just pointer names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource pair ('Migrate a v1 config to a v2 schema with an explicit mapping') and immediately states the secondary output ('list what was dropped or defaulted'). No sibling tool in the catalog performs config schema migration, and the description makes the distinction clear without the agent needing to open the schema.

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 by the framing: this is the tool for translating a v1 JSON config into a v2 schema. There is no explicit statement of when not to use it, no mention of prerequisites (e.g. that the v2 schema must be self-contained 2020-12 with local $refs, which does appear but only buried in the parameter schema), and no pointer to the related 'migration-reversibility' sibling for the reverse direction.

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