Skip to main content
Glama

Cheapest month from home

price_calendar
Read-onlyIdempotent

Shows the cheapest month to travel from someone's home town to a place, for each airport within reach: the cheapest fare found for each month (or, where none is found, what that route usually costs) plus the train or bus to the airport and the transfer into the city. Takes a few seconds. Airports further than 8.5 hours from home are left out and named. Use it when the user's dates are flexible or they ask when it's cheapest to go; then call find_trips for the month they choose to get bookable trips. Needs the home town; months as "2027-03", at most 12; for a season or a year pass its months ("next spring" = March to May), and the answer says which months have fares (state only those). Prices per person, in the home currency unless currency is given. The widget shows the months: reply in 3-4 sentences, with the best month and what it costs ("cheapest found" or "usual price", as the answer says), and don't quote prices from other sources.

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": {
      "home": "<home>",
      "destinations": "<destinations>"
    },
    "name": "price_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
homeYesThe traveller's home town or village, e.g. "New Haven" or "Hamden, US". Not an airport. Add the country when the name is common.
one_wayNoTrue for one-way fares.
currencyNoISO code (USD, GBP, EUR). Default: the home's.
month_toNoLast month. Default: 6 months in all.
month_fromNoFirst month, "2027-03". Default: this month.
destinationsYesWhere to: airport codes (LIS), city codes (NYC) or country codes (PT).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / month_from / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 7,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / month_to / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 7,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / title
      Previous value: -"price_calendarArguments"New value: +"price_calendar_toolArguments"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnly/idempotent/open-world annotations, it discloses latency ('takes a few seconds'), an exclusion rule with naming of skipped airports, and a fallback behavior ('what that route usually costs' when no fare is found). It also notes that the answer says which months have fares, which is behavioral context the annotations cannot express.

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-loaded with the core purpose, then requirements and usage routing. It is dense rather than padded, though the reply-format instructions ('reply in 3-4 sentences', don't quote other sources) sit awkwardly in a tool description and lengthen it.

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?

With no output schema, the description explains what the answer contains (cheapest fare per month or usual price, ground transport and city transfer, months with fares) and how to use it. It is complete for a read-only search tool whose annotations already cover the safety profile.

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?

Schema coverage is 100%, but the description still adds useful meaning: months as '2027-03', at most 12, seasonal phrasing mapped to concrete months ('next spring' = March to May), and per-person pricing in home currency unless currency is given. Some of this duplicates the schema, keeping it short of a 5.

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?

Opens with a specific verb+resource: shows the cheapest month to travel from a home town to destinations, per reachable airport. It also states the scope (monthly cheapest fare, fallback usual price, ground transport) so an agent can tell it apart from find_trips and trip_details.

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 when to use it (flexible dates or when the user asks when it's cheapest) and names the follow-up alternative (call find_trips for the chosen month to get bookable trips). The 8.5-hour airport exclusion and the fare-availability caveat further delimit expected output.

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