Skip to main content
Glama

Current price vs. history

current_vs_history
Read-only

Stats for one destination (min, median, and what share of the TRACKED DAYS were dearer than the last measurement) without the sample points. Percentages are over observed days, not over the calendar span. Descriptive only: it does not say whether to buy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
destinationYesdestination slug, as returned by list_destinations. A RESORT key read off a rail (e.g. 'hurghada') also resolves, to its parent destination, and the answer then carries `resolved_from`; underscores and hyphens are interchangeable.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "currency": {
      +          "type": "string"
      +        },
      +        "destination": {
      +          "properties": {
      +            "key": {
      +              "type": "string"
      +            },
      +            "slug": {
      +              "type": "string"
      +            },
      +            "title": {
      +              "properties": {
      +                "cs": {
      +                  "type": "string"
      +                },
      +                "en": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "cs",
      +                "en"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "slug",
      +            "title"
      +          ],
      +          "type": "object"
      +        },
      +        "disclaimer": {
      +          "type": "string"
      +        },
      +        "generated": {
      +          "type": "string"
      +        },
      +        "license": {
      +          "properties": {
      +            "attribution": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "url",
      +            "attribution"
      +          ],
      +          "type": "object"
      +        },
      +        "rails": {
      +          "items": {
      +            "properties": {
      +              "arrivals": {
      +                "description": "arrival airports RECORDED; covers_all_published_prices is false",
      +                "type": "object"
      +              },
      +              "latest_stale_after_days": {
      +                "description": "this rail's own freshness boundary, in days after measured.to",
      +                "type": "number"
      +              },
      +              "measured": {
      +                "properties": {
      +                  "days": {
      +                    "type": "integer"
      +                  },
      +                  "from": {
      +                    "type": "string"
      +                  },
      +                  "to": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "days",
      +                  "from",
      +                  "to"
      +                ],
      +                "type": "object"
      +              },
      +              "origins": {
      +                "description": "departure-airport CLUSTER; covers_all_published_prices is false",
      +                "type": "object"
      +              },
      +              "party": {
      +                "properties": {
      +                  "adults": {
      +                    "type": "integer"
      +                  },
      +                  "children": {
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "adults",
      +                  "children"
      +                ],
      +                "type": "object"
      +              },
      +              "price_covers": {
      +                "description": "what the money buys - airfare only, or a package as offered",
      +                "type": "object"
      +              },
      +              "rail": {
      +                "enum": [
      +                  "flight",
      +                  "package"
      +                ],
      +                "type": "string"
      +              },
      +              "regime_breaks": {
      +                "description": "[from, to] date spans where the series was not comparable",
      +                "type": "array"
      +              },
      +              "resort": {
      +                "type": "string"
      +              },
      +              "resort_key": {
      +                "type": "string"
      +              },
      +              "searched": {
      +                "description": "the search mode (and fixed dates, where there are any) the series was collected under",
      +                "type": "object"
      +              },
      +              "stats": {
      +                "properties": {
      +                  "basis": {
      +                    "type": "string"
      +                  },
      +                  "cheaper_than_pct": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "is_series_max": {
      +                    "type": "boolean"
      +                  },
      +                  "is_series_min": {
      +                    "type": "boolean"
      +                  },
      +                  "latest": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "median": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "min": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "basis"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "rail",
      +              "party",
      +              "price_covers",
      +              "measured",
      +              "stats"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "resolved_from": {
      +          "description": "Present when the caller named a RESORT key; the answer is its parent destination.",
      +          "properties": {
      +            "asked": {
      +              "type": "string"
      +            },
      +            "resort": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "resort_key": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "asked",
      +            "resort_key",
      +            "resort"
      +          ],
      +          "type": "object"
      +        },
      +        "schema": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "schema",
      +        "generated",
      +        "destination",
      +        "url",
      +        "currency",
      +        "license",
      +        "rails",
      +        "disclaimer"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "description": "tool-level failure, returned with isError: true",
      +      "properties": {
      +        "error": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / destination / description
      Previous value: -"destination slug"New value: +"destination slug, as returned by list_destinations. A RESORT key read off a rail (e.g. 'hurghada') also resolves, to its parent destination, and the answer then carries `resolved_from`; underscores and hyphens are interchangeable."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark readOnly/openWorld/destructive, and the description adds meaningful behavioral context: percentages are over observed days rather than the calendar span, and the result is descriptive only with no buy guidance. It also clarifies the response excludes sample points, which helps set expectations beyond what annotations convey.

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?

Two brief sentences, front-loaded with the operation ('Stats for one destination'), followed by the key denominator caveat and then a boundary note. Every sentence earns its place, with no redundancy against the schema or annotations.

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 one-parameter, read-only tool with an output schema and fully documented parameters, the description covers the important semantic caveats that would otherwise be invisible: observed days vs calendar span, no sample points, and no buy advice. Nothing needed for correct invocation 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% and the destination parameter is fully documented in the schema itself (slug from list_destinations, RESORT resolution, resolved_from behavior, delimiter interchangeability). The description adds no parameter-specific details, which is acceptable because the schema carries that burden; 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 purpose: it returns summary stats (min, median, and share of tracked days dearer than the last measurement) for one destination while explicitly excluding sample points. The 'for one destination' and 'without the sample points' clauses differentiate it from siblings like compare_destinations and price_history, and 'does not say whether to buy' separates it from find_opportunities.

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?

Describes clear use context: one destination, summary stats, no sample points, no buy recommendation. It tells the agent what the tool will not do, but stops short of explicitly naming the alternative tool to use when those behaviors are needed.

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