Skip to main content
Glama

Freeway travel time

traffic_travel_time
Read-only

Estimate current car travel time between two Taiwan freeway interchanges using live eTag gantry data, including fastest route distance, average speed, and segment times to spot slow stretches.

Instructions

How long a car takes right now between two national freeway (國道) interchanges, from live eTag gantry times: the fastest route, its distance and average speed, and the time and speed of each segment so slow stretches stand out. Example: from "林口", to "新竹".

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "traffic_travel_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination freeway interchange or junction, in Chinese as the freeway signs name it: 林口, 新竹, 臺中系統, 五股, 南港.
fromYesStarting freeway interchange or junction, in Chinese as the freeway signs name it: 林口, 新竹, 臺中系統, 五股, 南港.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.3/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already provided, the description adds meaningful behavioral context: the values are live/right-now, derived from eTag gantry times, and the response includes route, distance, average speed, and per-segment metrics. It does not cover failure modes or data freshness limits, but it goes well beyond the annotations.

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?

The description is front-loaded with the core purpose, then compactly enumerates return contents and ends with a concrete example. Every clause contributes useful information without repetition.

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 two-parameter traffic tool with no output schema, the description supplies the necessary return-value context and data source. An agent has enough information to know what the tool will produce and when it is appropriate.

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?

Schema description coverage is 100%, so the schema already defines both parameters with examples of Chinese interchange names. The description's example reinforces the naming convention but adds no syntax or semantic detail beyond the schema, making the baseline 3 appropriate.

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 states a specific query (current car travel time) over a specific resource (national freeway interchanges), and it distinguishes itself from siblings like metro_travel_time by naming the freeway/eTag-gantry context. It also summarizes exactly what is returned: fastest route, distance, average speed, and per-segment time/speed.

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 clearly implies the use case (real-time freeway driving between named interchanges) and gives an example, but it does not explicitly state when not to use it or name alternatives such as metro_travel_time for non-freeway trips. The context is clear without explicit exclusions.

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