Skip to main content
Glama

DaedalMap Disaster and Geospatial Data

Compare Geographic Identities

compare_geographies
Read-only

Smart relationship tool for two geographic identities. It answers canonical Admin Spine containment and common ancestry directly from loc_id paths, then checks maintained crosswalk evidence between different families, and loads polygons only when those cheaper sources cannot answer the spatial question. Exact geometry fallback returns topology, geodesic intersection area, and directional overlap shares. Temporal validity and N-way successor context remain independent of the spatial evidence source. Use convert_reference first for names or outside identifiers. No payment required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofNoISO date or year applied to both identities.
itemsNoBounded geography pairs to compare in one call.
batch_idNoOptional caller-supplied batch id for tracing.
left_as_ofNoOptional ISO date or year for the left identity; overrides as_of.
request_idNoOptional caller-supplied request id for tracing.
left_loc_idNoFirst DaedalMap loc_id.
right_as_ofNoOptional ISO date or year for the right identity; overrides as_of.
right_loc_idNoSecond DaedalMap loc_id.
include_successorsNoInclude direct successors and present-day descendants for maintained historical identities. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes this is a safe read operation, and the description goes beyond it by exposing the internal decision flow: cheap loc_id path answers first, crosswalk evidence second, polygon geometry only as fallback. It also discloses the return categories (topology, geodesic intersection area, directional overlap shares) and notes that temporal validity and successor context are independent of the evidence source — useful behavioral context not present in the schema or 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?

Five sentences, each carrying a distinct piece of information: core purpose, fast-path sources, geometry fallback, return content, and a routing hint. It is dense and front-loaded. The only minor waste is the vague opener 'Smart relationship tool' and the somewhat redundant 'No payment required' note, but they do not meaningfully hurt readability.

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 complex comparison tool with 9 parameters, no output schema, and many siblings, the description covers the processing pipeline, fallback behavior, and key return values. It does not describe the outbound shape of the result structure, but the mention of topology, area, and overlap shares gives the agent enough grounding to invoke it and interpret the response. The annotation already covers the read-only safety profile.

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 description coverage is 100%, so the parameters are already fully documented. The description adds domain framing around loc_id paths and temporal validity, but it does not explain individual parameter formats, defaults, or the anyOf batching structure beyond what the schema already provides. The baseline of 3 is appropriate.

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 names a specific operation — comparing two geographic identities — and details exactly what kinds of relationships it answers (Admin Spine containment, common ancestry, crosswalk evidence, polygon overlap). This makes it clearly distinguishable from sibling tools like resolve_point, get_geometry, and identify_reference_system, all of which solve different problems.

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 provides a direct routing instruction: 'Use convert_reference first for names or outside identifiers.' This tells the agent when a sibling tool is the right antecedent. It implies this tool should be used for loc_id-based comparisons, though it does not exhaustively enumerate when not to use other geometry or resolution tools.

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.