Skip to main content
Glama

Get Route Price History

get_price_history
Read-onlyIdempotent

Retrieve chronological price-check history and trend statistics for one of the authenticated user's tracked routes. Returns { route_id, name, currency, series[] } where each series includes route_key, checks_count, latest_price, average_price, min_price, max_price, trend_direction ('up' | 'down' | 'flat' | 'insufficient_data'), and chronological points[{ checked_at, price, typical_low }]. Usage guidelines: call list_routes first to look up the route UUID; use this when the user asks whether fares are rising or falling or whether to buy now vs wait. Returns an empty points array if the route has not been checked yet. Failure modes: returns an error if id is missing, malformed, or does not belong to the authenticated user.

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": {
      "id": "<id>"
    },
    "name": "get_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUUID of the tracked route, obtained from list_routes (e.g. '550e8400-e29b-41d4-a716-446655440000').
limitNoMaximum number of most recent price checks to return per route series (default 30, range 1-180).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive behavior, and the description adds real value on top: the authenticated-user ownership constraint, the error case for missing/malformed/foreign ids, and the empty-points result for unchecked routes. It does not discuss rate limits or how the limit parameter interacts with series length, which is the small remaining gap.

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?

Front-loads the purpose, then return shape, then the labeled 'Usage guidelines' and 'Failure modes' sections, so each part is locatable. The response-shape enumeration is long but justified because no output schema exists; only minor redundancy (restating the UUID-from-list_routes step) keeps it from a 5.

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?

There is no output schema, and the description fully compensates by specifying the return object keys, the trend_direction enum values, and the point structure. It also covers prerequisites, the empty-result case, and the failure modes, which is everything an agent needs to call this correctly.

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 both id (UUID format, source, example) and limit (default 30, range 1-180) are already fully documented in the schema. The description mentions looking up the route UUID via list_routes but that repeats the schema text and never mentions limit, so it adds essentially no meaning beyond the structured fields — baseline 3.

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 resource ('Retrieve chronological price-check history and trend statistics') plus a precise scope ('one of the authenticated user's tracked routes'). This is clearly distinguishable from siblings like list_routes or get_deals, which handle route listing and deals rather than per-route historical price series.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to call list_routes first to obtain the UUID, and gives the concrete user intents that select this tool ('whether fares are rising or falling or whether to buy now vs wait'). It also names the exclusion conditions — a route not yet checked returns empty points, and an id not belonging to the user is an error.

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.