Skip to main content
Glama

Lilambd Data for Agents

city-dossier

What is this city like, in one page of measured facts?. One-city dossier for any of 6,902 cities with 100k+ people (176 countries): reported population and its rank in country and world, built-up agglomeration population 2000 and 2025 with growth and density percentiles (EU GHSL), central-3 km roads, rail and park share (OpenStreetMap via Overture), elevation, nearest large airport and seaport, and 1991-2020 monthly temperature and rainfall measured at the nearest NOAA station. Includes 5 computed insights and a ready-to-paste Markdown page. Facts only; sources and data date in the attribution. Rebuilt monthly. Routes: /answer (city*, country); /search (q*); /countries (limit). Paid $0.1 USDC per call via x402 (_meta["x402/payment"]); set sample=true for a free 3-row preview.

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": {
      "route": "<route>"
    },
    "name": "city-dossier"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeYesOne of: /answer, /search, /countries. Replace {placeholders} with a value, e.g. /search or /HND.
paramsNoQuery parameters, e.g. {"q":"tokyo","limit":"50"}
sampleNoFree preview, max 3 rows

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does so: it discloses the paid model ($0.1 USDC per call via x402 with _meta["x402/payment"]), the free sample=true 3-row preview escape hatch, the monthly rebuild cadence, and that facts are sourced with attribution. Those are exactly the cost and freshness facts an agent needs before spending money on a call.

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?

It is front-loaded with the core question and then dense but almost entirely factual: coverage, data sources, price, preview, refresh rate, routes. Every clause carries information, though the single paragraph-packing of routes and pricing makes it slightly harder to scan than a split structure would be.

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 nested-object, multi-route, paywalled tool, the description covers scope, data provenance, freshness, cost, free preview, and the return artifact (a ready-to-paste Markdown page). With no output schema present, it still tells the agent what comes back, leaving nothing essential unstated.

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 the baseline is 3, but the description adds route-to-parameter mapping (city + country for /answer, q for /search, limit for /countries) that the schema's generic route and params descriptions do not spell out. The example "/HND" in the schema does not match any listed route, which muddies the picture slightly but is a schema artifact rather than a description gap.

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 opening question plus "One-city dossier" states the verb/resource concretely, and the body enumerates the exact payload (population and rank, GHSL built-up population 2000/2025, OSM road/rail/park shares, elevation, airport/seaport, NOAA climate normals, 5 insights, a Markdown page). That is far more specific than sibling names like world-cities or place-brief, so an agent can separate them without opening schemas.

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?

It gives clear context on when this fits: any of 6,902 cities over 100k people, and it names the three routes with their required parameters (/answer city*, /search q*, /countries limit), which directs invocation. It never names an alternative tool or an explicit "use X instead" exclusion, so it stops short of full when-not guidance.

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