Skip to main content
Glama

Get Ferry Fares

wsdot_get_ferry_fares
Read-only

Returns WSF's fares for one ferry trip between two terminals on a date: every fare line item — passenger, senior and youth, vehicle and driver by length, motorcycle, bicycle, and multi-ride cards — with its amount in dollars, plus WSF's statement of which terminal collects which fares. Requires numeric terminal IDs — use wsdot_get_ferry_terminals to resolve terminal names to IDs; terminalPairs on wsdot_get_ferry_routes lists the pairs with service on a date, the same pairs wsdot_get_ferry_schedule accepts. WSF collects most fares in one direction only, so a line reads 0 on a leg whose departing terminal does not collect it: read collectionDescription before quoting a 0 as free travel, and query the reverse direction for where that fare is charged.

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": {
      "departingTerminalId": "<departingTerminalId>",
      "arrivingTerminalId": "<arrivingTerminalId>"
    },
    "name": "wsdot_get_ferry_fares"
  }
}

Input Schema

NameRequiredDescriptionDefault
tripDateNoTravel date in ISO 8601 format (YYYY-MM-DD), the Pacific service day. Defaults to today if omitted.
roundTripNoWhen true, each amount is WSF's total for a round trip starting at the departing terminal: twice the one-way fare where both terminals collect it, the one-way fare where the return leg collects nothing, and the whole round-trip charge on a leg out of a terminal that collects nothing. Default: false (one way).
arrivingTerminalIdYesNumeric ID of the arriving terminal.
departingTerminalIdYesNumeric ID of the departing terminal. Use wsdot_get_ferry_terminals to look up terminal IDs.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
faresNoWSF's fare line items for this trip, in WSF's order, which groups them by category. Empty when WSF lists none, which the notice then reports.
noticeNoPresent when WSF lists no fare line items for the pair, or when WSF's collection statement and the terminal names could not be read; says which.
tripDateNoTrip date the fares apply to (YYYY-MM-DD, Pacific service day).
roundTripNoWhether the amounts are WSF's round-trip totals (true) or one-way fares (false).
totalCountNoNumber of fare line items returned.
arrivingTerminalNameNoArriving terminal name.
collectionDescriptionNoWSF's statement of which terminal collects which fares on this pair, e.g. "Passenger and vehicle/driver fares are collected at Anacortes, while no fares are collected at Friday Harbor." A fare the departing terminal does not collect reads 0 on this leg. Absent when WSF's statement could not be read, which the notice then reports.
departingTerminalNameNoDeparting terminal name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, so the description carries the interesting burden and does: it explains that WSF collects most fares in one direction only, so a zero amount on a leg means the departing terminal does not collect, and it warns to read collectionDescription before treating a 0 as free travel. That is exactly the kind of non-obvious behavior an agent would otherwise misreport, and it does not conflict with the read-only annotation.

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?

Structure is good — identity first, then prerequisites, then the directionality caveat — and no sentence is filler. The sentences are long and heavily clause-stacked, which costs a point on readability, but nothing could be cut without losing a real constraint.

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?

With an output schema handling return shape and annotations covering safety, the description supplies the remaining pieces an agent needs: terminal ID resolution, valid pair sourcing, and the one-directional collection rule. Nothing material for a correct call or correct interpretation of a zero fare is missing.

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 100%, so baseline is 3, but the description adds meaning the schema does not: the departing terminal determines whether a fare is charged at all, and the zero-value reading depends on which end of the trip is queried. The roundTrip semantics it mentions are already documented in the schema, so that portion is redundant rather than additive.

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 opens with a specific verb and resource ('Returns WSF's fares for one ferry trip between two terminals on a date') and enumerates the line-item scope (passenger, senior/youth, vehicle-by-length, motorcycle, bicycle, multi-ride cards). It is clearly distinguishable from siblings like wsdot_get_ferry_routes and wsdot_get_ferry_schedule, which are named only for cross-reference.

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

Usage Guidelines5/5

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

It states the precondition that terminal IDs must be numeric and routes the agent to wsdot_get_ferry_terminals to resolve them, and it identifies wsdot_get_ferry_routes' terminalPairs and wsdot_get_ferry_schedule as the sources of valid pairs. It also tells the agent to query the reverse direction when a fare reads 0, which is genuine when-to-use guidance rather than a restatement.

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.