Skip to main content
Glama

Last trip details

toyota_get_last_trip
Read-onlyIdempotent

Retrieve your last trip's distance, duration, consumption, hybrid mode split, and places. Find out how your last drive went and what it consumed.

Instructions

Most recent trip: distance, duration, consumption, hybrid mode split, places.

Use for: how was the last trip? what did the last drive consume? Start/end addresses need the server started with --addresses osm or fr.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tripYes
freshnessYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the tool read-only and idempotent, so the description does not need to restate safety. It adds useful operational context by noting that start/end addresses require the server to be started with --addresses osm or fr. This is consistent with the annotations and goes beyond them.

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 three short sentences: result summary first, then usage examples, then a prerequisite. There is no filler, no repetition of schema or annotations, and all sentences earn their place.

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?

For a zero-parameter, read-only tool with an output schema, the description covers what data is returned, when to use it, and the only known precondition. Nothing important is missing for correct selection and invocation.

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 tool has zero parameters, so there are no parameter semantics for the description to add. With no input schema properties and 100% schema coverage, a baseline of 4 is appropriate.

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 clearly identifies the resource as the most recent trip and enumerates the returned dimensions: distance, duration, consumption, hybrid mode split, and places. The singular 'Most recent trip' differentiates it from the generic toyota_get_trips sibling, though it does not explicitly name that sibling as an alternative.

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 'Use for' lines explicitly map natural-language queries to this tool: 'how was the last trip?' and 'what did the last drive consume?'. It provides clear context but does not state when-not-to-use or mention alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.