Skip to main content
Glama

Planlı GTFS durak kalkışları

istanbul_next_departures
Read-onlyIdempotent

Search GTFS stop names or return published departures for selected stops.

Use stop_query with limit only to discover stop_id candidates by name,
including Turkish/ASCII spellings (Kadıköy/kadikoy). This mode returns stops,
NOT departures. Same-name stops remain separate; never choose the first
automatically. Approximate spelling suggestions are labeled, not matches.
Ask the user to select a candidate using name/map, then call with stop_id.
stop_code identifies the published stop sign when present. stop_desc and
platform_direction_text preserve source text; they are not inferred route directions.
Missing metadata stays null; districts are not inferred.

at is an ISO datetime with a UTC offset; omitted means now in Europe/Istanbul.
The search covers 24 hours. stop_id and coordinates are mutually exclusive.
line matches the published route short name. Times are scheduled, never live
ETA, delays or proof of service. Outside-calendar queries are unavailable.

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": "istanbul_next_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNo
latNo
lonNo
lineNo
limitNo
stop_idNo
radius_mNo
stop_queryNo

Output Schema

NameRequiredDescriptionDefault
okNo
dataNo
errorNo
limitsNo
geojsonNo
sourcesNo
summaryYes
warningsNo
freshnessYes
paginationNo
result_infoNo
next_queriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / $defs / ResultInfo / properties / coverage
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "maxProperties": 20,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Coverage"
      +}
    • addedOutput schema / $defs / ResultInfo / properties / empty_reasons
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 30,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Empty Reasons"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / $defs / ResultInfo / properties / filter_counts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "integer"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Filter Counts"
      +}
  3. Changed2 schema fields changed
    • addedOutput schema / $defs / Source / properties / refresh_status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "idle",
      +        "refreshing",
      +        "failed",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Refresh Status"
      +}
    • addedOutput schema / $defs / Source / properties / serving_stale
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Serving Stale"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / $defs / Source / properties / url / description
      Added value: +"Human-readable source page for citations; null when the source is only an API endpoint or data file."
  5. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations by disclosing that times are scheduled rather than live ETAs, that the search covers 24 hours, that outside-calendar queries are unavailable, and that missing metadata stays null with districts never inferred. It also flags that approximate spelling suggestions are labeled rather than treated as matches, which prevents a common misread of results.

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?

Front-loaded with the core purpose, then grouped into a discovery-mode paragraph and a semantics paragraph, with zero filler sentences. It is somewhat dense and packs many constraints into a short block, but no sentence is redundant.

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?

Output schema and annotations are supplied, so return-shape explanation is unnecessary, and the description covers the mode split, time semantics, and metadata caveats. The notable gap is radius_m and any hint about distance-based search behavior when using coordinates.

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?

With schema description coverage at 0%, the description must carry parameter meaning and it mostly does: stop_query, limit, stop_id, at (ISO datetime with UTC offset, defaulting to now in Europe/Istanbul), line (published route short name), and the mutual exclusivity of stop_id versus coordinates. radius_m is never mentioned anywhere, leaving one of eight parameters completely undefined.

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?

Opens with a specific two-mode statement: "Search GTFS stop names or return published departures for selected stops," which tells an agent exactly what resource is being queried. It never names a sibling tool (e.g. istanbul_transit_line) or distinguishes itself from them, so it falls short of the top mark.

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 explicit workflow: use stop_query with limit only to discover stop_id candidates, ask the user to select, then call with stop_id. It also states exclusions — "This mode returns stops, NOT departures," "never choose the first automatically," and "stop_id and coordinates are mutually exclusive" — so the agent knows both when and how not to use each mode.

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.