Skip to main content
Glama

get_boundary_geojson_simplified

Fetch simplified GeoJSON for a boundary by its ONS census code.

Safe to embed directly in generated HTML map files. At the default tolerance (0.0001°) a constituency polygon shrinks from ~4,000 vertices to ~200–400 with no visible difference at normal map zoom levels.

Prefer this over get_boundary_geojson_by_code() when writing Leaflet map pages — the full geometry is large enough to exhaust your context window before you can finish writing the HTML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesONS census / GSS / LAU code, e.g. "E14001592" for Woking. Case-insensitive.
toleranceNoSimplification tolerance in degrees (WGS-84). Default 0.0001. Increase to 0.001 for county-scale boundaries.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.7/5.0
Behavior4/5

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

No annotations provided, so description carries full burden. Describes simplification effect quantitatively (vertices reduction, no visible difference). States 'safe to embed'. Lacks detail on error handling or permissions, but overall transparent about output characteristics.

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?

Four sentences, each adds critical information: purpose, safety, performance with concrete numbers, and usage advice. No redundant or filler content. Front-loaded with the core action.

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?

Given the complexity (2 params, output schema exists, tool is simple retrieval), the description covers all necessary aspects: what it does, when to use it, parameter effects, and behavioral impact. No gaps identified.

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 coverage is 100%, so baseline is 3. Description adds value by explaining the impact of the tolerance parameter (constituency polygon shrinks from ~4k to 200-400 vertices). This provides practical guidance beyond the schema's technical description.

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?

Clearly states 'Fetch simplified GeoJSON for a boundary by its ONS census code.' The verb 'fetch' and resource 'simplified GeoJSON' are specific. Distinguishes from sibling 'get_boundary_geojson_by_code' by mentioning 'simplified'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises to prefer this tool over get_boundary_geojson_by_code() for Leaflet map pages due to context window limits. Provides concrete scenario and alternative. Also notes it's safe for embedding in HTML.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool targets a distinct operation: point lookup, bounding box, metadata by code, full geometry, simplified geometry, type codes listing, and name search. Even the two geometry tools are clearly differentiated by simplification level.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (e.g., find_boundaries_at_point, get_boundary_bbox, list_boundary_type_codes). The naming is predictable and clear.

Tool Count5/5

Seven tools is well-scoped for a UK boundary lookup service. It covers all core operations without being excessive or insufficient.

Completeness5/5

The toolset provides complete coverage for readonly boundary access: name search, point lookup, metadata retrieval, bounding box, and geometry (full and simplified). No obvious gaps for the intended domain.

Resources