Skip to main content
Glama

get_fare_prices

Download a BODS fares dataset and extract published fare prices as structured JSON, optionally filtered by origin or destination tariff zone.

Instructions

Download a BODS fares dataset (NeTEx) and extract its published fare prices as structured JSON, optionally filtered by tariff zone. Find dataset ids with the fares catalogue passthrough tool (Data_set_api_v1_fares_dataset).

Parameters: dataset_id: Fares dataset id from the fares catalogue. origin_zone: Optional start tariff zone ref to filter by. destination_zone: Optional end tariff zone ref to filter by.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "get_fare_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_idYes
origin_zoneNo
destination_zoneNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the two-stage nature (network download of a NeTEx file, then extraction) and that filtering is optional, but it says nothing about dataset size, latency, retry behavior, or whether unpublished/absent fares are silently omitted rather than returned as nulls.

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

Conciseness4/5

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

The action statement is front-loaded, then the prerequisite, then a compact parameter list with no filler. The multiline parameter block is slightly verbose for three items but each line earns its place.

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 two-stage download-and-extract tool with an output schema taking care of return values, the description covers purpose, prerequisite, and all three inputs. The remaining gap is operational context about dataset size and how filtered versus unfiltered results differ.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does: dataset_id is sourced explicitly to the fares catalogue, and origin_zone/destination_zone are explained as start and end tariff zone refs rather than left as bare titles. It could go further on expected ref format and on whether zones are required to form a pair.

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 gives a specific compound verb and resource: download a BODS fares dataset (NeTEx) and extract published fare prices as structured JSON. It also explicitly names the sibling tool (Data_set_api_v1_fares_dataset) used to obtain the required id, so an agent can tell it apart from the catalogue passthrough without opening either schema.

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?

It states the prerequisite for the required parameter (dataset id must come from the fares catalogue tool) and frames the zone filters as optional refinements. It stops short of saying when this tool should be avoided, such as when a mile-fare or cached price lookup is more appropriate.

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