Skip to main content
Glama

Kildeverk

Buses, trams, trains and ferries now

transit_vehicles
Read-onlyIdempotent

Public transport vehicles now from Entur's real-time positions: buses, trams, metro, trains, coaches and ferries near a point, on one line or nationwide, with line, destination, operator, delay and when each last reported.

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": "transit_vehicles"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lonNo
lineNoOne line by its Entur id, e.g. 'RUT:Line:31'; else every line.
limitNo
modesNo
radius_kmNo
max_age_minutesNoLeave out older reports.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuine context beyond that: the data are real-time positions with delay and a last-reported timestamp, which tells the agent results are freshness-sensitive. It omits pagination/truncation behavior for the default limit and says nothing about rate limits or data latency bounds.

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 a single dense sentence that front-loads the core subject ('public transport vehicles now') and then details scope, modes, and returned fields. It borders on run-on but no clause is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 all-optional parameters, no output schema, and rich annotations, the description covers what the tool returns and the freshness semantics reasonably well. It does not explain that all parameters are optional with defaults (3 km radius, 50 results, 5-minute max age) or what happens with no filters, which matters for correct invocation.

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 description coverage is only 29%, so the description must compensate, and it partially does by mapping to lat/lon ('near a point'), line, the modes enum, and freshness ('when each last reported'). It leaves limit, radius_km, and max_age_minutes' defaults and cutoff behavior unexplained, so an agent cannot tell what the effective search radius or result cap will be.

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 gives a concrete resource ('public transport vehicles now from Entur's real-time positions') and enumerates the covered modes plus the three query scopes (near a point, one line, nationwide), which clearly separates it from scheduled-departure or journey-planning siblings. It stops short of naming those siblings explicitly, so an agent must infer the boundary rather than being told.

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?

The 'near a point, on one line or nationwide' phrasing implicitly signals the three ways to call it, but there is no explicit when-to-use/when-not guidance and no pointer to transit_departures or transit_find_stops as alternatives for schedule-based questions. Usage is inferable, not stated.

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.