Skip to main content
Glama

plan_trip

Read-only

Plan the charging stops of a road trip and price each one, for this car and these cards.

The stops are placed on the fastest route from what the battery allows;
at each one, the fast chargers nearby are compared on price, charging time
and detour, at the time the car gets there. Ask for the car and cards first,
as for search_chargers.

Takes 10 to 45 seconds. Returns the stops in order, the trip's total, a
link that opens the trip on MeilleureCharge.fr, and `guidance`: follow it.

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": {
      "origin": "<origin>",
      "destination": "<destination>"
    },
    "name": "plan_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
originYesWhere the trip starts: city, address or station.
card_idsNoFrom list_charging_cards: every id of every card the driver has.
vehicle_idNoFrom find_vehicle. Omitted: a default car (Renault 5).
destinationYesWhere it ends.
min_arrival_pctNoThe lowest battery the driver accepts on arrival at a stop or at the destination.
battery_start_pctNoBattery at departure. 80 if the driver did not say.
accepts_operator_appNoFalse if the driver refuses to install an operator's app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare read-only and open-world; the description adds real behavioral substance the annotations cannot: a 10–45 second runtime, the optimization rule (fastest route within battery limits, chargers compared on price, charging time and detour at arrival time), and what comes back. Volatility of a long-running call is disclosed up front, which materially changes how an agent should budget and message the call.

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?

Purpose is front-loaded and the four sentences each carry distinct information (purpose, algorithm, prerequisites, latency and returns). The mid-sentence line breaks fragment 'charging time / and detour' and 'guidance': follow it.' slightly reduce scannability, but there is no padding.

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 7-parameter, no-output-schema tool, the description covers inputs, runtime and the shape of the result (ordered stops, trip total, link, guidance). It stops short of saying what a stop entry actually contains and what `guidance` means beyond 'follow it', which is a minor but real gap given there is no output schema.

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 every parameter is already documented in the input schema; the description only implies their role through 'from what the battery allows' and 'for this car and these cards'. It adds almost no syntax, format or default detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and object — 'Plan the charging stops of a road trip and price each one' — scoped to 'this car and these cards'. That scope distinguishes it from the sibling search_chargers, which it names, so an agent can tell whole-trip planning apart from single-charger lookup.

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?

Gives a concrete ordering rule — 'Ask for the car and cards first, as for search_chargers' — which tells the agent to resolve vehicle_id and card_ids before calling. It does not state when to prefer this over a plain charger search, so there is no explicit exclusion, but the context is clear enough to act on.

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