Skip to main content
Glama

calculate_toll

Calculate European road toll costs for heavy trucks and commercial vehicles. Supports 40+ countries. Response fields (all detail levels): origin, destination (resolved place names), total_toll_eur (float), total_distance_km, toll_km, toll_free_km, countries (array with country, country_name, total_km, toll_km, toll_eur), info_url (link to view this route calculation in the TollCalc web app, including the planned route on an interactive map — share with colleagues or open in browser). With detail=detailed: countries also include segments (road, type, km, toll_eur). With detail=full: segments also include geometry, source_url, matched_geofence, formula_vars (all resolved formula variables: km, road_type, weight, axles, emission_class, co2_class, computed rate variables like tollRate, weightAxleClass, effective rate per km), and lookup_trace (all table lookups performed during calculation with their results); origin/destination include lat/lon coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viaNoOptional intermediate waypoints (max 15)
detailNoResponse detail level. compact (default): total + per-country summary. detailed: adds per-segment costs without geometry. full: adds routing debug info and geometry.compact
originYesStart point: city/address (e.g. 'Munich, Germany') or 'lat;lon' (e.g. '48.1374;11.5755')
vehicleYesVehicle parameters
destinationYesEnd point: city/address or 'lat;lon'

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains in detail what the tool returns, how detail levels affect the response, and even mentions the info_url for sharing. It does not explicitly state side effects or read-only status, but for a calculation tool this is less critical. The description adds significant behavioral insight beyond a simple summary.

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

Conciseness5/5

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

The description is long but every sentence contributes useful information, especially around response fields and detail levels. It is front-loaded with the core purpose, then structured logically from general to specific. The length is justified by the complexity of the tool, and there is no redundant filler.

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?

Given the tool's complexity (5 parameters, nested objects, 3 detail levels) and no output schema, the description is exceptionally complete. It fully describes the response structure, the meaning of each detail level, and even includes examples and URL behavior. This leaves the agent well-equipped to understand what the tool does and what to expect.

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 100%, with all parameters already well-described. The description adds some extra context for the 'detail' parameter by enumerating exact field differences at each level, and for origin/destination via examples. However, it does not add substantial new semantic meaning for most parameters beyond what the schema already provides, so a baseline score of 3 is appropriate.

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 clearly states a specific action: 'Calculate European road toll costs for heavy trucks and commercial vehicles.' It names the resource (European road tolls) and the target audience (heavy trucks/commercial vehicles). This distinguishes it from the sibling tool 'get_quota', which is evidently about quota checking.

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?

The description gives clear context for when to use the tool (toll calculation in Europe) and implicitly excludes other uses by specifying vehicle types. It does not explicitly mention the alternative 'get_quota', but the sibling is clearly unrelated, so the context is sufficient for an agent to select this tool for toll calculations.

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.

TDQS

A4.6/5.0
Disambiguation5/5

The two tools are completely distinct: calculate_toll performs toll calculations, while get_quota checks API quota usage. There is no overlap or possibility of confusion.

Naming Consistency5/5

Both tools follow a clear verb_noun pattern (calculate_toll, get_quota), providing a predictable and consistent naming convention.

Tool Count4/5

With only 2 tools, the server is on the thin side, but the narrow domain of toll calculation justifies this. The primary tool is comprehensive, and get_quota is a useful utility. Slightly over-scoped would be adding unnecessary tools.

Completeness5/5

The calculate_toll tool covers the full lifecycle of toll calculation with multiple detail levels (basic, detailed, full) and supports many countries. There are no obvious missing operations within the stated domain, and get_quota covers the API quota aspect.

Resources