Skip to main content
Glama

Empty Leg Index

Get one empty leg

get_leg
Read-onlyIdempotent

Return one published empty leg by id, including the route, date, aircraft, indicative price or price band, each source name and source URL, and fetchedAt (when this index collected the row, not a live quote). An unknown id returns an error and no leg. This does not hold or book the seat.

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": {
      "id": "<id>"
    },
    "name": "get_leg"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of a published leg, as returned by search_empty_legs. Example: leg-ltn-nce.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value beyond them: fetchedAt is collection time and not a live quote (a freshness caveat an agent would otherwise misread), and an unknown id yields an error rather than a null row.

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?

One front-loaded sentence covers the return payload, followed by two short clauses on error behavior and the no-booking boundary. Nothing is redundant and no sentence is filler.

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 getter with no output schema, the description compensates by enumerating the returned fields and flagging the fetchedAt staleness caveat. An agent has everything needed to call it and interpret the result correctly.

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?

With schema description coverage at 100% and a single required id parameter carrying an example, the schema does the heavy lifting. The description adds only the 'published' qualifier already present in the schema, so the 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 and resource ('Return one published empty leg by id') and enumerates what the row contains (route, date, aircraft, price or band, sources, fetchedAt). This is a single-record fetch, cleanly distinct from the sibling search_empty_legs, which returns sets of legs.

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?

Implicitly routes id discovery to search_empty_legs via the schema and clarifies the boundary with booking tools through 'This does not hold or book the seat', which tells an agent not to treat this as a reservation step. It stops short of explicitly naming submit_enquiry as the follow-up for booking, so the alternative is implied rather than stated.

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