Skip to main content
Glama

coord_transform_crs

Read-onlyIdempotent

Convert coordinates between any two coordinate reference systems, from national grids to Web Mercator. Get the PROJ transformation used, its accuracy, and any missing grid files.

Instructions

Transform coordinates between any two coordinate reference systems.

For national grids (EPSG:27700 British National Grid, EPSG:2154 Lambert-93, State Plane), Web Mercator (EPSG:3857) and any other EPSG-registered CRS.

Reports the transformation PROJ used for this point and its published accuracy. ballpark=true means no published transformation links the two datums, so the shift was ignored: expect tens to hundreds of metres of error. When a more accurate transformation needs a grid file that is not installed, missing_grids names it.

Inputs and outputs are always x/easting first, y/northing second, regardless of the axis order the CRS authority declares.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesEasting or longitude, in the source CRS units.
yYesNorthing or latitude, in the source CRS units.
source_crsNoSource CRS, e.g. 'EPSG:4326'.EPSG:4326
target_crsNoTarget CRS, e.g. 'EPSG:27700'.EPSG:3857

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
metaYes
sourceYes
targetYes
ballparkYes
pipelineYes
accuracy_mYes
source_infoYes
target_infoYes
missing_gridsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it discloses that the tool reports the exact PROJ transformation and accuracy, explains what ballpark=true means in practical error terms, and reveals that missing_grids identifies unavailable grid files. It also documents the always-x/y axis-order convention, which is valuable operational information.

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?

The description is dense but every sentence earns its place: purpose, supported systems, accuracy caveats, and axis-order rule. It is front-loaded with the primary action and avoids filler or redundant restatement of the schema.

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

Completeness5/5

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

For a read-only, idempotent transform tool with an output schema, the description covers all important operational concerns: supported CRS scope, transformation accuracy, missing-grid behavior, and axis order. Nothing critical appears missing for an agent to select and invoke the tool correctly.

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 100%, so the baseline is 3. The description adds meaning beyond the schema by clarifying that inputs and outputs are always x/easting first and y/northing second regardless of CRS axis order, which directly informs how x and y parameters must be supplied. This lifts it above the baseline.

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?

The description clearly states the core action with a specific verb and resource: 'Transform coordinates between any two coordinate reference systems.' It names supported CRS families and 'any other EPSG-registered CRS,' but it does not explicitly distinguish this tool from the sibling coord_convert, so it stops short of full sibling differentiation.

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 description gives clear context for when to use this tool: whenever coordinates need transforming between CRSs, with national grids, Web Mercator, and any EPSG-registered system named as examples. It does not provide explicit exclusions or name alternatives for when not to use it, so it earns a 4 rather than a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.