Skip to main content
Glama

Create price alert

create_price_alert

Watch a cached price and POST a signed webhook at or below threshold. Needs an API key. signingSecret is shown once. Max 20 alerts, 60 days each. Example: {"origin":"ABJ","destination":"CDG","month":"2027-02","threshold":400,"webhookUrl":"https://example.com/hooks/fares"}.

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": {
      "threshold": "<threshold>",
      "webhookUrl": "<webhookUrl>"
    },
    "name": "create_price_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoWatch the cheapest day of a month, YYYY-MM. Send this or departureDate.
routeNoAlias for origin and destination together, e.g. "ABJ-CDG".
adultsNoAdults, 1 to 9. Default 1. Threshold is the total for all of them.
originNo3-letter IATA airport or city code, e.g. ABJ. Or send route.
currencyNoCurrency of threshold and of webhook prices, e.g. EUR, USD, XOF. Default EUR.
expiresAtNoOptional ISO date or time, at most 60 days away. Default: 60 days.
thresholdYesFire when the cached total price is at or below this amount. Must be above 0.
cabinClassNoeconomy (the only cabin cached fares cover). Default economy.
returnDateNoOptional return day, YYYY-MM-DD, with departureDate only.
webhookUrlYesPublic https URL we POST the signed alert to. No private, loopback or link-local hosts.
destinationNo3-letter IATA airport or city code, e.g. CDG.
departureDateNoWatch one day, YYYY-MM-DD. Send this or month.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / adults / description
      Previous value: -"Adults, 1 to 9. Default 1. The threshold is the total for all of them."New value: +"Adults, 1 to 9. Default 1. Threshold is the total for all of them."
    • changedInput schema / properties / expiresAt / description
      Previous value: -"Optional ISO date or time, at most 60 days away. Default and maximum: 60 days (and never after the trip)."New value: +"Optional ISO date or time, at most 60 days away. Default: 60 days."
    • changedInput schema / properties / returnDate / description
      Previous value: -"Optional return day, YYYY-MM-DD (with departureDate only); priced as two one-way fares."New value: +"Optional return day, YYYY-MM-DD, with departureDate only."
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, open-world, non-idempotent, non-destructive write. The description adds real behavioral context beyond that: authentication is required, the signingSecret is returned only once, there is a hard cap of 20 alerts and a 60-day maximum lifetime, and the payload is signed and POSTed to a public URL.

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?

Four short sentences that front-load the action and firing condition, then auth, then quota, then a concrete example. No filler, and each clause carries information an agent needs.

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 12-parameter write tool with an output schema, the description covers purpose, auth, quota, lifetime and payload delivery. Minor gaps remain around duplicate-alert behavior and webhook delivery failure handling, but nothing essential 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 description coverage is 100%, so every one of the 12 parameters is already documented with format and defaults. The description's example JSON illustrates a working parameter combination, but adds no semantics the schema does not already carry; 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 chain (watch a cached price, POST a signed webhook) plus the firing condition (at or below threshold). This is clearly distinguishable from delete_price_alert and list_price_alerts, which manage rather than create alerts.

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

Usage Guidelines3/5

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

Prerequisites are stated (API key required, max 20 alerts, 60-day lifetime, cached fares only), which implies this is a long-running monitor rather than a one-off search. However, no sibling tool is named and there is no explicit when-to-use/when-not-to-use contrast with the search or find_cheapest_dates tools.

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.