Skip to main content
Glama

Sootcase freight emissions calculator

Route changes that lower emissions

recommend_routes
Read-onlyIdempotent

For each shipment, tries road legs on rail, inland waterway and short sea, air legs by sea or rail, other sea ports, (when a load is given) fuller loads, and on the same route larger, electric and bio-LNG trucks (GLEC v3.3 default values, only where GLEC gives them); each kind is in one of the GLEC Framework's five reduction areas; calculates each alternative with the same method as the shipment (GLEC v3.3, ISO 14083) and returns those lower than now, best first, with totals per kind and per lane, the sources of the rules and the limitations. Rules (defaults, settable): road legs over 300 km (EU Transport White Paper 2011); rail, waterway or sea part over 100 km in a straight line, road to a waterway or sea port within 150 km, nearest rail terminal (Directive 92/106/EEC). New rail, waterway and sea legs run between terminals with road to the nearest one; each terminal handling counts GLEC v3.3's intermodal terminal value per container (not at airports or Ro-Ro terminals). It knows nothing about transit times, costs or whether a service runs: tell the user, and that results are scenarios, not reported emissions. The website's Recommendations page (/recommend) lets the user filter and pick interactively.

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": {
      "shipments": "<shipments>"
    },
    "name": "recommend_routes"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsNo
shipmentsYesThe shipments. Without an API key the public service takes up to 100 per call; with one, up to 1,000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / shipments / items / properties / legs / items / properties / vehicle_type / description
      Previous value: -"A short alias or a full id from list_vehicle_types. Common: road hgv (average truck), hgv_artic_33t (articulated truck over 33 t, a 40 t semitrailer), hgv_rigid, van; rail freight_train; sea container_ship (short-sea factor under 2,000 km, deep-sea from 2,000 km), bulk_carrier, general_cargo, roro, ropax; air air_freight; inland_waterway barge, container_barge."New value: +"A short alias or a full id from list_vehicle_types. Common: road hgv (average truck), hgv_artic_33t (articulated truck over 33 t, a 40 t semitrailer), hgv_rigid, van; rail freight_train; sea container_ship (GLEC's container value for the ports' trade lane), bulk_carrier, general_cargo, roro, ropax; air air_freight; inland_waterway barge, container_barge."
  2. Changed6 schema fields changed
    • changedInput schema / properties / settings / properties / max_ports / description
      Previous value: -"other ports to try per port (default 4)"New value: +"other ports to try per port (default 4, at most 10)"
    • addedInput schema / properties / settings / properties / max_ports / maximum
      Added value: +10
    • changedInput schema / properties / settings / properties / port_radius_km / description
      Previous value: -"other ports within this of the port used now (default 800)"New value: +"other ports within this of the port used now, km (default 800, at most 3000)"
    • addedInput schema / properties / settings / properties / port_radius_km / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / settings / properties / port_radius_km / maximum
      Added value: +3000
    • changedInput schema / properties / shipments / items / properties / hubs / description
      Previous value: -"Hub stops: hub_type transshipment, storage_transshipment, warehouse or liquid_bulk_terminal (add _mixed for ambient and temperature-controlled sites), per tonne; intermodal_terminal or intermodal_terminal_temperature_controlled, per container (give containers). GLEC v3.3 Table 3."New value: +"Hub stops: hub_type transshipment, storage_transshipment, warehouse or liquid_bulk_terminal, per tonne (add _mixed, except to warehouse, for sites with ambient and temperature-controlled goods); intermodal_terminal or intermodal_terminal_temperature_controlled, per container (give containers). GLEC v3.3 Table 3."
  3. Changed1 schema field changed
    • addedInput schema / properties / shipments / items / properties / legs / items / properties / vehicle
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Road legs: the truck, so the route keeps to roads it may use (hgv bans, height, width, length and weight limits, and tunnels barred to its dangerous goods, from OpenStreetMap). Routing is built for one profile: 4.0 m, 2.60 m, 18.75 m, 40 t, 11.5 t per axle; a bigger truck is refused. Only with figures the user gave.",
      +  "properties": {
      +    "axle_load_kg": {
      +      "description": "Heaviest axle load",
      +      "maximum": 15000,
      +      "minimum": 1000,
      +      "type": "number"
      +    },
      +    "axles": {
      +      "maximum": 12,
      +      "minimum": 2,
      +      "type": "integer"
      +    },
      +    "gross_weight_kg": {
      +      "description": "Truck, trailer and cargo",
      +      "maximum": 60000,
      +      "minimum": 3500,
      +      "type": "number"
      +    },
      +    "hazmat": {
      +      "description": "Carries dangerous goods (ADR)",
      +      "type": "boolean"
      +    },
      +    "height_m": {
      +      "description": "Height with load",
      +      "maximum": 5,
      +      "minimum": 1.5,
      +      "type": "number"
      +    },
      +    "length_m": {
      +      "description": "Length of the whole combination",
      +      "maximum": 30,
      +      "minimum": 4,
      +      "type": "number"
      +    },
      +    "trailer": {
      +      "enum": [
      +        "none",
      +        "semi",
      +        "drawbar"
      +      ],
      +      "type": "string"
      +    },
      +    "tunnel_code": {
      +      "description": "The load's ADR tunnel restriction code",
      +      "enum": [
      +        "B",
      +        "C",
      +        "D",
      +        "E"
      +      ],
      +      "type": "string"
      +    },
      +    "width_m": {
      +      "description": "Width without mirrors",
      +      "maximum": 3.5,
      +      "minimum": 1.5,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed4 schema fields changed
    • addedInput schema / properties / settings / properties / max_ports / minimum
      Added value: +1
    • changedInput schema / properties / settings / properties / max_ports / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / shipments / description
      Previous value: -"The shipments. Without an API key the public service takes up to 100 per call; with one, up to 10,000."New value: +"The shipments. Without an API key the public service takes up to 100 per call; with one, up to 1,000."
    • addedInput schema / properties / shipments / items / properties / legs / items / properties / cargo_type
      Added value: +{
      +  "description": "Optional: this leg's GLEC cargo category, instead of the shipment's (same values as the shipment's cargo_type)",
      +  "type": "string"
      +}
  5. Changed4 schema fields changed
    • changedInput schema / properties / shipments / items / properties / legs / items / properties / fuel / properties / factor / properties / ttw_kg_per_unit / description
      Previous value: -"Tank-to-wheel kg CO2e per unit (part of WTW)"New value: +"Tank-to-wheel kg CO2e per unit (part of WTW; 0 only for electricity). Required: ask the user if missing"
    • changedInput schema / properties / shipments / items / properties / legs / items / properties / fuel / properties / factor / required
      Previous value: -[
      -  "unit",
      -  "wtw_kg_per_unit",
      -  "source"
      -]New value: +[
      +  "unit",
      +  "wtw_kg_per_unit",
      +  "ttw_kg_per_unit",
      +  "source"
      +]
    • changedInput schema / properties / shipments / items / properties / legs / items / properties / own_factor / properties / ttw_g_per_tkm / description
      Previous value: -"Tank-to-wheel g CO2e per tonne-km (part of WTW)"New value: +"Tank-to-wheel g CO2e per tonne-km (part of WTW; 0 only when no fuel is burnt in the vehicle, e.g. electric). Required: ask the user if missing"
    • changedInput schema / properties / shipments / items / properties / legs / items / properties / own_factor / required
      Previous value: -[
      -  "wtw_g_per_tkm",
      -  "source"
      -]New value: +[
      +  "wtw_g_per_tkm",
      +  "ttw_g_per_tkm",
      +  "source"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / settings / properties / kinds / items / enum
      Previous value: -[
      -  "road_to_rail",
      -  "road_to_waterway",
      -  "road_to_short_sea",
      -  "air_to_sea",
      -  "air_to_rail",
      -  "other_port",
      -  "fuller_loads"
      -]New value: +[
      +  "road_to_rail",
      +  "road_to_waterway",
      +  "road_to_short_sea",
      +  "air_to_sea",
      +  "air_to_rail",
      +  "other_port",
      +  "fuller_loads",
      +  "larger_truck",
      +  "electric_truck",
      +  "bio_lng_truck"
      +]
  7. Changed3 schema fields changed
    • addedInput schema / properties / shipments / items / properties / legs / items / properties / fuel / properties / factor
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The fuel supplier's own emission factor, instead of the dataset's (fuel is then just its name).",
      +  "properties": {
      +    "biogenic_co2_kg_per_unit": {
      +      "description": "Biogenic CO2 per unit, reported apart (optional)",
      +      "type": "number"
      +    },
      +    "source": {
      +      "description": "Who gives the factor, and for what",
      +      "type": "string"
      +    },
      +    "ttw_kg_per_unit": {
      +      "description": "Tank-to-wheel kg CO2e per unit (part of WTW)",
      +      "type": "number"
      +    },
      +    "unit": {
      +      "description": "Unit of amount, e.g. l, kg, kWh",
      +      "type": "string"
      +    },
      +    "wtw_kg_per_unit": {
      +      "description": "Well-to-wheel kg CO2e per unit",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "unit",
      +    "wtw_kg_per_unit",
      +    "source"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / shipments / items / properties / legs / items / properties / own_factor
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The carrier's or the user's own intensity for this leg (primary data), instead of a default value. Only with a figure the user gave; never estimate one.",
      +  "properties": {
      +    "distance_basis": {
      +      "description": "Distance type the intensity is per tonne-km of; leave out if it matches the leg's",
      +      "enum": [
      +        "sfd",
      +        "gcd",
      +        "actual"
      +      ],
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Who measured it, and for what (e.g. the carrier's report and year)",
      +      "type": "string"
      +    },
      +    "ttw_g_per_tkm": {
      +      "description": "Tank-to-wheel g CO2e per tonne-km (part of WTW)",
      +      "type": "number"
      +    },
      +    "wtw_g_per_tkm": {
      +      "description": "Well-to-wheel g CO2e per tonne-km",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "wtw_g_per_tkm",
      +    "source"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / shipments / items / properties / legs / items / required
      Previous value: -[
      -  "mode",
      -  "vehicle_type"
      -]New value: +[
      +  "mode"
      +]
  8. Changed1 schema field changed
    • addedInput schema / properties / shipments / items / properties / cargo_type
      Added value: +{
      +  "description": "Optional, GLEC v3.3 cargo or load category: container, temperature_controlled, light, heavy, or for European rail cars, chemicals, coal_steel, building_materials, manufactured_products, cereals, truck_trailer_on_train, trailer_on_train. Picks GLEC's value for it where GLEC has one for the leg's vehicle; otherwise the vehicle's own value (the leg's note says which).",
      +  "type": "string"
      +}
  9. Changed2 schema fields changed
    • changedInput schema / properties / shipments / items / properties / hubs / description
      Previous value: -"Hub stops: hub_type transshipment, storage_transshipment, warehouse or liquid_bulk_terminal (add _mixed for ambient and temperature-controlled sites); GLEC v3.3 Table 3 values per tonne."New value: +"Hub stops: hub_type transshipment, storage_transshipment, warehouse or liquid_bulk_terminal (add _mixed for ambient and temperature-controlled sites), per tonne; intermodal_terminal or intermodal_terminal_temperature_controlled, per container (give containers). GLEC v3.3 Table 3."
    • addedInput schema / properties / shipments / items / properties / hubs / items / properties / containers
      Added value: +{
      +  "description": "Containers handled, for intermodal terminals",
      +  "type": "number"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / shipments / items / properties / hubs / description
      Previous value: -"Hub stops (transhipment, storage); needs a dataset with hub factors."New value: +"Hub stops: hub_type transshipment, storage_transshipment, warehouse or liquid_bulk_terminal (add _mixed for ambient and temperature-controlled sites); GLEC v3.3 Table 3 values per tonne."
  11. Changed1 schema field changed
    • addedInput schema / properties / shipments / items / properties / legs / items / properties / repositioning_km
      Added value: +{
      +  "description": "Trucks: km driven empty for this trip (to the pickup or back), shared over the truck's load like empty running. Without a load, the shipment is taken as the whole load.",
      +  "type": "number"
      +}
  12. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare read-only, idempotent, closed-world, so the description carries the real burden and does it well: it discloses the supplied defaults with their legal sources (300 km White Paper, 100 km/150 km Directive 92/106/EEC, nearest-terminal assumption), that terminal handling is charged at GLEC's intermodal value per container, that results are scenarios rather than reported emissions, and what the response contains (per-kind and per-lane totals, rule sources, limitations).

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?

Purpose is front-loaded, but the body is a dense, run-on block of parenthetical clauses and semicolon chains that is hard to scan, and some rule text duplicates the schema's own defaults (min_road_km, min_main_km, max_port_road_km). The website sentence at the end adds little for an agent.

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?

For a tool with a very large nested schema and no output schema, the description covers what is returned, in what order, at what aggregation, plus the assumptions and limitations. It stops short of describing the response structure or error behavior, but nothing essential for a correct call is missing.

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?

The schema is extremely detailed at the nested level, so the description's job is mainly to explain what the settings actually do; it does this by restating the key thresholds, the 'fuller_loads only with a load' precondition, and the five GLEC reduction areas that the kinds map onto. It does not cover several knobs (source, terminal=best_trip, max_ports, port_radius_km) that only the schema documents, leaving partial reliance on schema text.

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 states a specific behavior: for each shipment it tries modal shifts (road to rail/waterway/short sea, air to sea/rail, other ports, fuller loads, larger/electric/bio-LNG trucks), recalculates them with the shipment's own method, and returns only the improvements, best first. That is clearly distinct from a plain footprint calculation, though it never names a sibling tool to route the agent away from.

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 by 'For each shipment, tries...' and by the closing note that the /recommend page lets users filter interactively, but there is no explicit statement of when to choose this over calculate_shipment, calculate_shipments or compare_scenario. The only real guidance is negative: it knows nothing about transit times, costs or service existence, so the user must be told results are scenarios.

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