Skip to main content
Glama

Get Terminal Space

wsdot_get_terminal_space
Read-only

Returns real-time drive-up and reservable vehicle space available at WSF terminals for upcoming sailings. Use for "will I make the ferry?" or "how full is the next sailing?" questions. WSF publishes space for select terminals only, and at times for none: a terminal missing from the result has unconfirmed space, not a wrong ID — wsdot_get_ferry_schedule and wsdot_get_ferry_alerts still show its sailings. Optionally filter to a specific terminal by ID (use wsdot_get_ferry_terminals for the ID). driveUpSpaceCount is the key field — zero means the drive-up lane is full. Destinations are arrivingTerminalIds, not the itineraryLabel string: a sailing can serve several terminals, and those IDs are what wsdot_get_ferry_schedule accepts. Results are paged by terminal (default 5, at most 20 per page): offset/limit select whole terminals and totalCount counts matching terminals, not sailings — every sailing of a returned terminal is included, so page size varies with how many departures each terminal carries.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wsdot_get_terminal_space"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum terminals to return in this page. Defaults to 5; a larger value returns at most 20 and says so. Counts terminals, not sailings.
offsetNoZero-based index of the first terminal to return, for paging. Defaults to 0.
departingTerminalIdNoFilter to a specific terminal by numeric ID. Omit to return every terminal WSF reports space for — select terminals only.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoInformational note about the page window, or guidance when WSF's sailing-space feed is empty or does not report the requested terminal (naming the terminals it does report), or the offset ran past the end. Ends with the applied limit when a larger one was clamped.
hasMoreNoTrue when more terminals remain beyond the current page.
terminalsNoTerminal space availability by terminal.
nextOffsetNoOffset to pass to retrieve the next page, or null when this is the last page.
totalCountNoTotal terminals matching the filter across all pages (not just this page). Counts terminals, not sailings.
terminalFilterNoThe terminal ID filter applied, or absent if no filter was used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / departingTerminalId / description
      Previous value: -"Filter to a specific terminal by numeric ID. Omit to return all terminals."New value: +"Filter to a specific terminal by numeric ID. Omit to return every terminal WSF reports space for — select terminals only."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum terminals to return in this page (1–20). Defaults to 5. Counts terminals, not sailings."New value: +"Maximum terminals to return in this page. Defaults to 5; a larger value returns at most 20 and says so. Counts terminals, not sailings."
    • removedInput schema / properties / limit / maximum
      Removed value: -20
    • changedOutput schema / properties / notice / description
      Previous value: -"Informational note about the page window, or guidance when no terminal space data is available, the filter matched nothing, or the offset ran past the end."New value: +"Informational note about the page window, or guidance when WSF's sailing-space feed is empty or does not report the requested terminal (naming the terminals it does report), or the offset ran past the end. Ends with the applied limit when a larger one was clamped."
    • changedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / departure / description
      Previous value: -"Scheduled departure time for this sailing."New value: +"Scheduled departure time for this sailing (ISO 8601, UTC)."
    • addedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / departureLocal
      Added value: +{
      +  "description": "departure as Pacific time (America/Los_Angeles): ISO 8601 with its UTC offset, the same instant at the same precision — the form to quote as a clock time. Absent when departure is absent or not an ISO 8601 instant.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / departingTerminalId / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / departingTerminalId / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / departingTerminalId / type
      Previous value: -"number"New value: +"integer"
  3. Changed2 schema fields changed
    • removedOutput schema / properties / nextOffset / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / nextOffset / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  4. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "terminals",
      +      "totalCount",
      +      "nextOffset",
      +      "hasMore"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `api_unavailable`: WSF Ferry API is unreachable or returns a non-2xx response after retries. `invalid_access_code`: WSF rejected the request because WSDOT_ACCESS_CODE is missing, invalid, or not registered. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "api_unavailable",
      +            "invalid_access_code"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "terminals",
      -  "totalCount",
      -  "nextOffset",
      -  "hasMore"
      -]
  5. Changed7 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Maximum terminals to return in this page (1–20). Defaults to 5. Counts terminals, not sailings.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Zero-based index of the first terminal to return, for paging. Defaults to 0.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / hasMore
      Added value: +{
      +  "description": "True when more terminals remain beyond the current page.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / nextOffset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Offset to pass to retrieve the next page, or null when this is the last page."
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Optional guidance when no terminal space data is available or the filter matched nothing. Absent on normal results."New value: +"Informational note about the page window, or guidance when no terminal space data is available, the filter matched nothing, or the offset ran past the end."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Number of terminals returned."New value: +"Total terminals matching the filter across all pages (not just this page). Counts terminals, not sailings."
    • changedOutput schema / required
      Previous value: -[
      -  "terminals",
      -  "totalCount"
      -]New value: +[
      +  "terminals",
      +  "totalCount",
      +  "nextOffset",
      +  "hasMore"
      +]
  6. Changed7 schema fields changed
    • addedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / arrivingTerminalIds
      Added value: +{
      +  "description": "Numeric IDs of the terminals this sailing serves — the destinations. Pass one to wsdot_get_ferry_schedule as arrivingTerminalId, or resolve names with wsdot_get_ferry_terminals.",
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / arrivingTerminalName
      Removed value: -{
      -  "description": "Destination terminal name.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / displayDriveUpSpace
      Added value: +{
      +  "description": "Whether WSF publishes a drive-up count for this sailing. False means driveUpSpaceCount is not reported, not that the lane is empty.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / displayReservableSpace
      Added value: +{
      +  "description": "Whether this sailing takes vehicle reservations. False means reservableSpaceCount does not apply.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / driveUpSpaceCount / description
      Previous value: -"Available drive-up vehicle spaces. Zero means full."New value: +"Available drive-up vehicle spaces. Zero means full — oversubscribed sailings report a negative count upstream and are floored to zero here, so this value is never negative."
    • addedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / itineraryLabel
      Added value: +{
      +  "description": "Upstream itinerary string for the sailing, e.g. \"Anacortes -> Friday Harbor\". A display label only — it may name the departing terminal or several stops, so do not read it as the destination.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / terminals / items / properties / departingSpaces / items / properties / reservableSpaceCount / description
      Previous value: -"Available reservable vehicle spaces."New value: +"Available reservable vehicle spaces, floored at zero like driveUpSpaceCount. Zero means no reservable space remains."
  7. Changed2 schema fields changed
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Optional guidance when no terminal space data is available or the filter matched nothing. Absent on normal results.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / terminalFilter
      Added value: +{
      +  "description": "The terminal ID filter applied, or absent if no filter was used.",
      +  "type": "number"
      +}
  8. First observed

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 substantive burden and does so: coverage is partial and sometimes empty, a missing terminal means 'unconfirmed' rather than a bad ID, driveUpSpaceCount of zero means the drive-up lane is full, and pagination is by terminal with totalCount counting terminals not sailings. This is exactly the non-obvious behavior an agent would otherwise get wrong.

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?

Purpose comes first and each subsequent sentence contributes a distinct fact (coverage caveat, filter, key field, ID semantics, paging). It is dense to the point of being a single long block, and a bulleted or broken-up structure would scan faster, but 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 read-only, three-parameter filter/list tool with an output schema already present, the description covers everything an agent needs: what is returned, how coverage gaps should be read, which field to key on, and how paging interacts with the terminal-granular result set.

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 the baseline is 3, but the description adds real interpretive value: offset/limit select whole terminals (so page size varies with departures per terminal), and destinations are arrivingTerminalIds rather than itineraryLabel strings, with a note that wsdot_get_ferry_schedule accepts those same IDs. That closes a genuine identity/semantics gap the schema cannot express.

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?

Opens with a specific verb and resource: 'Returns real-time drive-up and reservable vehicle space available at WSF terminals for upcoming sailings.' An agent can immediately distinguish this from wsdot_get_ferry_schedule, wsdot_get_ferry_alerts and wsdot_get_ferry_terminals, all of which are named explicitly later.

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?

Gives concrete user-facing triggers ('will I make the ferry?', 'how full is the next sailing?') and then explicitly routes adjacent needs elsewhere: schedule and alerts still show sailings for terminals missing from the result, and wsdot_get_ferry_terminals supplies the ID. When-to-use, when-not-to-panic, and the alternative tools are all named.

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.