Skip to main content
Glama

Traffic area statistics

area_stats
Read-onlyIdempotent

Statistics for one of the eight GB traffic areas: licences, operators, vehicles and trailers authorised, the mix by licence type and status, the largest operators by vehicles authorised, and towns with at least five company licences (with links).

Input Schema

NameRequiredDescriptionDefault
areaYesTraffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name

Output Schema

NameRequiredDescriptionDefault
dataYes
sourceYesData source(s) the result is built from
licenceYesLicence of the source data
file_dateYesDate of the DVSA operator licence file the data describes (null before the first import)
source_urlYesWhere the primary source dataset is published
attributionYesAttribution text to show with the data
markdown_urlYesMarkdown version of the canonical page
retrieved_atYesWhen this response was generated (ISO timestamp)
canonical_urlYesThe human-readable HaulierScope page for this result

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds domain context (the 'at least five licences' threshold, that towns come with links), but says nothing about pagination, size of result, or whether the 'largest operators' list is truncated.

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?

One dense sentence, front-loaded with the resource and then the content inventory. Every clause carries information; the only minor cost is the length of the enumeration, which is justified by the breadth of returned sections.

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 an output schema present, return values need no explanation, and a one-parameter read-only stats tool is well described by a content inventory. The missing piece is any indication of scope relative to sibling aggregate tools.

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% and the single `area` param already documents the accepted slug/letter/name forms with examples, so the description is not obliged to repeat it. Baseline 3 applies; the description adds no extra parameter meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (statistics for one of the eight GB traffic areas) and enumerates the exact content blocks returned: licences, operators, vehicles/trailers authorised, licence-type mix, largest operators, and towns with 5+ licences. An agent can see this is a per-area aggregate view, though it does not explicitly contrast itself with the overlapping sibling biggest_operators.

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

Usage Guidelines3/5

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

Usage is implied — call it when you need aggregate figures for a single named traffic area — but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as biggest_operators or search_operators. Adequate but leaves routing to inference.

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