Skip to main content
Glama

Heritage lines along a route

heritage_narration
Read-onlyIdempotent

Three to five short spoken lines an hour about the ground a route is on: one sentence, at the point the driver reaches the thing it is about, and then silence. Not a tour and not a chatbot. NOTHING IS GENERATED HERE: every line is a sentence a person wrote from a public-domain plaque inscription and a person reviewed, compiled into the gateway binary, so no model runs in this path and the lines are identical for every driver. Give geometry_polyline6 from the route tool and, IMPORTANT, duration_s from the same answer: without it the silence budget falls back to a distance, and "four lines an hour" is a claim about time that a distance answers wrongly at both ends. Optional min_gap_s, min_gap_m, max_offset_m (default 60, hard ceiling 80), max_lines and voice_format ("opus" or "m4a", which adds each line's audio cache key and URL and NEVER synthesises). COVERAGE IS ONE CORRIDOR, deliberately: the Chelsea riverside, 18 reviewed lines over 5 km. EVERY OTHER ROUTE ANSWERS WITH NO LINES, and that is a correct answer rather than a failure. ALWAYS READ THE CENSUS, which is the record of WHAT WAS NOT SAID: no lines with every entry in beyond_reach means this feature does not cover the journey; no lines with entries in silenced_by_budget means the corridor is covered and the budget is holding them back. They are different answers and must never be relayed the same way. On the reference route the census reports 1 spoken and 17 silenced, which is the design working, not a thin corpus. Every line publishes offset_m, the measured distance from the plaque to the route, because it is the entire warrant for the word "here", and plaque_ids so any claim can be taken back to its source. TWO OMISSIONS ARE DELIBERATE: no line says anything is visible, still standing or unchanged (a plaque records that somebody was somewhere, and nothing more), and NO LINE SAYS WHICH SIDE OF THE ROAD anything is on, because nothing in the source records it and a look that finds nothing spends the driver's trust in everything else. Do not add either. COSTS 1 UNIT a call: it reads no tiles and opens no archive. Requires the MapMap gateway (GATEWAY_URL + GATEWAY_API_KEY).

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": {
      "geometry_polyline6": "<geometry_polyline6>"
    },
    "name": "heritage_narration"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_linesNoCeiling on how many lines come back, 1 to 50 (default 12).
min_gap_mNoLeast distance between two lines, metres (default 400). A floor under the time budget in every case.
min_gap_sNoLeast time between two lines, seconds (default 900, which is four an hour). Applied only with `duration_s`.
duration_sNoThat route's own duration, seconds: `duration_s` from the same answer. **Supply it.** Without it the silence budget falls back to a distance, and "three to five lines an hour" is a claim about time that a distance answers wrongly at both ends.
max_offset_mNoHow near a plaque must come to the route before its line may be spoken, metres (default 60, hard ceiling 80).
voice_formatNoContainer to address each line's audio clip in: `opus` or `m4a`. Given, every line gains a `clip` with its synthesis cache key and URL. It NEVER synthesises: the key is a pure function of the sentence, so asking here buys nothing.
geometry_polyline6YesThe route shape, precision-6 encoded: `geometry_polyline6` straight out of the `route` tool's answer.

Output Schema

NameRequiredDescriptionDefault
linesYesThe lines, in route order. Empty is the ordinary answer nearly everywhere: read `census` before saying anything about it.
caveatYesThe standing limits, for relaying to users.
censusYesThe census of what was NOT said: `corpus_entries`, `within_reach`, `beyond_reach`, `spoken`, `silenced_by_budget`, the gap that was applied and what it was derived from. An empty `lines` with every entry in `beyond_reach` means this feature does not cover the journey; an empty `lines` with entries in `silenced_by_budget` means the budget is working. They are different answers and must not be reported the same way.
corridorYesThe corridor that was consulted: its id, name, the road it runs on and the date its lines were reviewed.
attributionYesThe licence notice for this answer.
route_length_mYesThe route's own length, metres.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial context beyond them: determinism ('identical for every driver'), cost ('COSTS 1 UNIT a call: it reads no tiles and opens no archive'), auth prerequisites (GATEWAY_URL + GATEWAY_API_KEY), and deliberate content omissions that must not be 'fixed'.

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?

Front-loaded with what the tool produces before any schema or policy detail, and every block is substantive. It is dense and repeats some ground already covered by schema descriptions (the duration_s warning appears in both places), and the heavy capitalization adds bulk, but nothing is genuinely decorative.

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?

An output schema exists, yet the description still supplies the interpretive layer an agent needs — census fields (beyond_reach vs silenced_by_budget), offset_m as the warrant for 'here', and plaque_ids for provenance. Coverage limits, cost, and the two prohibited additions are all stated, leaving nothing material unaddressed for a tool of this complexity.

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% and the schema already documents defaults and types, so the description is not required to carry parameter meaning. It nonetheless adds real value by explaining *why* duration_s matters (the silence budget degrades to a distance) and by clarifying that voice_format only adds a cache key/URL and 'NEVER synthesises' — a behavioral detail the schema states only briefly.

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?

States a specific verb and resource — short spoken heritage lines anchored to the ground under a route — and explicitly distinguishes itself from a tour and a chatbot. It also makes the key architectural fact clear ('NOTHING IS GENERATED HERE ... compiled into the gateway binary'), so an agent knows this is a deterministic lookup, not a generation call.

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?

Explicit about inputs ('give geometry_polyline6 from the route tool and, IMPORTANT, duration_s from the same answer'), about coverage ('COVERAGE IS ONE CORRIDOR ... EVERY OTHER ROUTE ANSWERS WITH NO LINES, and that is a correct answer rather than a failure'), and about when to consult the census. It even tells the agent how to interpret the two distinct empty-result shapes.

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