Skip to main content
Glama

mt_travel_verify

Read-only

Verifies travel bookings against a TravelAgentCredential, checking agent identity, segment authorization, spend limits, currency, trust score, and traveler binding to approve or reject the booking.

Instructions

Verify a travel booking against a TravelAgentCredential.

Runs a 10-step verification pipeline: VC signature, expiry, agent DID match, segment authorization, spend limit, currency, daily cap, trust score, delegation chain, and traveler binding.

Args: agent_did: DID of the booking agent (e.g. "did:base:0x...") vc_json: The TravelAgentCredential as a JSON string merchant: Merchant domain (e.g. "hilton.com") segment: Booking segment: hotel, flight, car_rental, or rail amount: Booking amount currency: Currency code (e.g. "USDC")

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": {
      "agent_did": "<agent_did>",
      "vc_json": "<vc_json>",
      "merchant": "<merchant>",
      "segment": "<segment>",
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "mt_travel_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesBooking amount
segmentYesBooking segment: hotel, flight, car_rental, or rail
vc_jsonYesThe TravelAgentCredential as a JSON string
currencyYesCurrency code (e.g. "USDC")
merchantYesMerchant domain (e.g. "hilton.com")
agent_didYesDID of the booking agent (e.g. "did:base:0x...")

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.1
    • addedInput schema / properties / agent_did / description
      Added value: +"DID of the booking agent (e.g. \"did:base:0x...\")"
    • addedInput schema / properties / amount / description
      Added value: +"Booking amount"
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (e.g. \"USDC\")"
    • addedInput schema / properties / merchant / description
      Added value: +"Merchant domain (e.g. \"hilton.com\")"
    • addedInput schema / properties / segment / description
      Added value: +"Booking segment: hotel, flight, car_rental, or rail"
    • addedInput schema / properties / vc_json / description
      Added value: +"The TravelAgentCredential as a JSON string"
  2. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds substantive behavioral detail by listing the 10 checks performed in the verification pipeline. It does not describe failure behavior, error modes, or rate limits, but the pipeline itself is a meaningful disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence and pipeline summary are front-loaded and efficient. However, the Args block duplicates the input schema almost verbatim, so a substantial portion of the description does not earn its 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 read-only verification tool with six required parameters and an output schema, the description covers the purpose, the full verification pipeline, and every input. Return values are appropriately left to the output schema.

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 the schema already documents every parameter. The description's Args block largely repeats the same parameter descriptions and examples, adding no meaning beyond the structured schema.

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?

The description states a specific verb and resource: verifying a travel booking against a TravelAgentCredential. It distinguishes itself from the many sibling verify tools by naming the travel-specific credential and enumerating the verification pipeline.

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 usage context is clear from the first sentence: this tool is for verifying a travel booking with a TravelAgentCredential. It does not explicitly mention alternatives or when not to use it, so it falls short of full routing guidance.

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