Skip to main content
Glama

Plan charging stops

plan_charging_route
Read-only

Plan where to stop for fast charging on a drive between two places on a road Elton has a page for. Give the car as car and the temperature as temperatureC whenever the user says them, not a range of your own: Elton knows the car's range and cuts it for cold. When the drive ends at a cabin or anywhere the user can't charge, set noChargerAtDestination, and the plan makes sure the car gets back to a fast charger. Charges to 80% at each stop, as Elton advises, keeps a 20% reserve, and prefers stops with a place to eat or a food shop. A sketch: the Elton app shows which chargers are free. Its appUrl opens the whole drive, with the charging stops, in the Elton app's route planner.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "plan_charging_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWhere it ends: a road page's end or a town along it, as "Trysil" or "Seljord". In Norway also a street address, as a cabin's ("Røvskroken 13, Beitostølen").
carNoThe car, as "Hyundai Ioniq 5" or "Tesla Model Y Long Range": its range and the chargers it can fast-charge at come from Elton's list. Give it whenever the user names the car, rather than rangeKm.
foodNoStop to charge where this place to eat or food shop is nearby, where one is in reach, as "Burger King".
fromYesWhere the drive starts: a road page's end or a town along it, as "Oslo". In Norway also a street address or a place off the road, as the user said it ("Storgata 1, Hamar"): the plan starts at the town on a road nearest it, and its asked field says which.
countryNoThe country whose roads and stations to use: no (Norway), se (Sweden), dk (Denmark).
rangeKmNoHow far the car goes on a full battery in mild weather, in km: only for a car that isn't in Elton's list, as car is better. Not a winter figure: temperatureC cuts the range for cold, so a winter figure would be cut twice.
startPercentNoHow full the battery is at the start, in percent (default 100).
temperatureCNoThe temperature on the drive, in °C. Below +10 the range is cut by an estimate from NAF and Motor's El Prix winter test.
arrivePercentNoHow full the battery should be on arrival, in percent (the 20% reserve if not given). For a cabin with no charger, set noChargerAtDestination instead.
noChargerAtDestinationNoTrue when there's no charger where the drive ends, as a cabin, or the user says they can't charge there: the plan arrives with enough to drive back to the fastest charger near the end, with a plan B, within the 80% rule, or says it can't.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes well beyond that, disclosing the planning rules (charges to 80%, holds a 20% reserve, prefers food stops), the cold-weather range reduction, and the fallback behavior when noChargerAtDestination is set. It also reveals that a plan can come back with "says it can't," which is important failure-mode context. The garbled sentence "A sketch: the Elton app shows which chargers are free" adds little and slightly obscures what the response contains.

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?

The purpose is front-loaded, and most sentences carry real decision rules. However, the persona-heavy phrasing and digressions ("on a road Elton has a page for," "as Elton advises," "A sketch: ...") add words that do not help an agent act, and the closing sentences about appUrl and the app are loosely structured.

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 ten-parameter tool with no output schema, the description covers the main behavioral decisions: how to handle car versus rangeKm, the 80%/20% charging policy, cold-weather range loss, and the no-charger-at-destination case. It also gives partial return-value context via appUrl. The country parameter and any ordering constraint between from and to are left entirely to the schema, but nothing essential to calling it correctly is missing.

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 schema already documents all ten parameters, including the car-vs-rangeKm and arrivePercent-vs-noChargerAtDestination trade-offs. The description restates those rules rather than adding new semantics, aside from noting that rangeKm must not be a winter figure because temperatureC already cuts range. Baseline 3 is appropriate when the schema carries the detailed documentation.

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 opening states a concrete verb and resource: "Plan where to stop for fast charging on a drive between two places." That is enough to separate it from find_charging_stations (which returns stations) without opening either schema. The qualifier "on a road Elton has a page for" muddies the scope rather than sharpening it, and no sibling is named explicitly.

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?

It gives conditional rules for individual inputs ("Give the car as car and the temperature as temperatureC whenever the user says them, not a range of your own" and "When the drive ends at a cabin ... set noChargerAtDestination"), which tells the agent how to invoke it. But there is no when-to-use-this-vs-another-tool guidance and no mention of find_charging_stations or find_stations_near as alternatives for simpler lookups.

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