Skip to main content
Glama

Check coverage

get_search_coverage
Read-onlyIdempotent

What PlanningLedger can answer for a council: where search across documents is open, council by council and year by year (the search gate). A council's application year opens when at least 90% of its decision documents (decision notices and officer reports) are searchable, and closes again only below 85%. The share counts against the documents the council's portal lists for that year; a decided application we have not captured counts as missing. Give a council (slug, GSS code or name) for its last ten years, newest first, each with documents listed and searchable, uncaptured applications, share, open or closed and when it opened, plus a one-line summary; add year for one year. Omit the council for the national count of open council-years (add by_council: true for every council's open years). Check this before saying a search found nothing: a closed year is not yet searchable here, which is not the same as no results. Only search across documents is gated: also_answered lists what the other tools answer for the council whatever the year (its applications, one application's documents and quotes, decision counts, appeals, Local Plan policies). Measured nightly over every document; a reading older than 48 hours is refused (503). An unknown council is 400 unknown_council with suggestions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_search_coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoOne application year (by valid or received date). Omit for all ten measured years.
councilNoThe council: a council slug (e.g. 'camden', 'leeds-city-council'), its name (e.g. 'Leeds', 'London Borough of Camden') or its GSS code (e.g. 'E08000035'); an unknown or misspelt council is a 400 unknown_council error listing suggestions, and a region such as 'London' is a 400 region_not_council error listing its councils. Omit for the national count of open council-years.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say read-only, closed-world and idempotent; the description goes well beyond them with the measurement method ('measured nightly over every document'), the staleness contract (readings older than 48 hours refused with 503), the error contract (400 unknown_council with suggestions, 400 region_not_council for a region name), and the counting rule that an uncaptured decided application counts as missing. The 90%/85% hysteresis and the 'share counts against portal-listed documents' basis are behavioral detail the annotations cannot supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense block of semicolon-chained clauses, roughly 150 words, mixing the core purpose, threshold rules, output shape, error codes and a parenthetical about sibling tools. The core purpose is front-loaded, but the middle is hard to scan and a reader must parse multiple embedded conditions to extract the call contract.

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?

With no output schema, the description carries the return-shape burden and does so concretely: documents listed, searchable count, uncaptured applications, share, open/closed, when it opened, plus a one-line summary. It also documents both error paths and the staleness refusal. The only completeness defect is the `by_council` flag, which is described but absent from the input schema, and `also_answered` is referenced without being defined as an output field.

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 coverage is 100%, so the baseline is 3; the description does reinforce that `council` accepts a slug, GSS code or name and that `year` restricts to a single application year. However, it introduces `by_council: true` as an option even though the schema declares only `year` and `council` with additionalProperties false, so an agent following the prose would send a parameter that gets rejected. That phantom parameter offsets the genuine added meaning.

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 resource — the per-council, per-year 'search gate' showing where document search is open — and defines the exact business rule (opens at 90% of decision documents searchable, closes below 85%). It also separates this tool from siblings in the same breath, saying `also_answered` covers applications, application documents/quotes, decision counts, appeals and Local Plan policies. An agent can tell this apart from search_applications or list_application_documents without opening any schema.

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?

It gives an explicit precondition for use: 'Check this before saying a search found nothing: a closed year is not yet searchable here, which is not the same as no results.' It also states the two operating modes — pass a council for its last ten years (or `year` for one), or omit the council for the national count. That is when-to-use, when-not-to-conclude, and the branching condition, all stated outright.

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.