Skip to main content
Glama

Book a trip leg

wever_sports-book-leg
DestructiveIdempotent

Submit one approved Duffel test booking or record an approved provider quote selection. Validates the approval delegated to the named agent. Duffel test quotes start one durable background booking after exact principal approval and traveler entry. Returns an attempt key while trip-status reads provider confirmation. Other quotes return signed quote-selection receipts. POST /api/sports-book-leg. Paid URL: 0.10 USDC per call on Base mainnet using x402 exact, under the shared 10 signed-wallet free calls over rolling 30 days. X-Wever-Wallet-Proof binds the exact JSON arguments to this API path. API access fees are separate from travel spending. Per-leg principal approval and delegated authority govern spending. Conditional escrow has a 300 USDC per-leg cap. Duffel test mode uses a test token and simulated travel. Booking approval is separate from quote selection. Uncertain attempts are reconciled through trip-status. Read /api/sports-trips-contract for schemas, provider availability, receipt verification and approval terms.

Input Schema

NameRequiredDescriptionDefault
leg_idYes
trip_idYes
option_idYes
content_sha256Yes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Even though the annotations already declare destructive, idempotent and open-world behavior, the description adds substantial context beyond them: the Duffel path starts a durable background booking, the call returns an attempt key that trip-status later resolves, other paths return signed receipts, and uncertain attempts are reconciled through trip-status. It also discloses the paid-URL mechanics (x402 exact, 0.10 USDC per call on Base mainnet, 10 free signed-wallet calls per rolling 30 days), the X-Wever-Wallet-Proof argument binding, the 300 USDC per-leg escrow cap, and that test mode uses a test token. This is unusually rich behavioral 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 content is dense and every sentence carries information, but the style is telegraphic: several fragments ('Paid URL: ...', 'Booking approval is separate from quote selection.') and abrupt topic shifts between booking semantics, payment rails, escrow caps and documentation pointers. The primary purpose is stated first, which helps, but a caller must reassemble the operational picture from scattered clauses.

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 destructive, paid, five-required-parameter mutation with no output schema and no schema descriptions, the description does most of the necessary work: it explains the two outcomes, what is returned (attempt key or signed receipt), how to reconcile uncertain state, the cost model, and where to read full schemas and approval terms. The remaining gap is that none of the parameters, especially content_sha256 and option_id, are given meaning.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, but it explains none of the five parameters. trip_id, option_id, content_sha256 and idempotency_key have only regex patterns and no meaning given anywhere. content_sha256 in particular is opaque, and the closest hint ('X-Wever-Wallet-Proof binds the exact JSON arguments') does not tell the caller what to hash or where idempotency_key comes from. Only leg_id is self-explanatory because of its enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a concrete verb and resource and splits the tool into two distinct modes: submitting an approved Duffel test booking, or recording an approved provider quote selection. That is more specific than the title 'Book a trip leg'. The only blur is the reference to 'the named agent', who is not identifiable from the schema, which makes the scope slightly harder to pin down than it could be.

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 description states the preconditions for use clearly: a quote must be approved, exact principal approval and traveler entry are required for the Duffel path, and other quotes produce signed quote-selection receipts. It also routes uncertain outcomes to trip-status and points to /api/sports-trips-contract for approval terms. It never explicitly contrasts this tool with siblings such as wever_sports-cancel-leg or wever_sports-plan-trip, so it falls short of a full routing statement.

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.