Skip to main content
Glama

Taiwan Road Safety Data (Unofficial)

get_location_accident_points

查詢單一路口或路段某年度的事故位置,相同座標合併成「座標+件數」(件數多的在前);座標可能高度重複(同一路口可能落在同一點),不要當成逐案精確位置;只支援全年(不能指定月份);locationKeyid 與 kind 取自 get_cbi_hotspots 的結果

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": {
      "year": "<year>",
      "kind": "<kind>",
      "locationKeyid": "<locationKeyid>"
    },
    "name": "get_location_accident_points"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes熱點類型,取自 get_cbi_hotspots 的 kind
yearYes民國年,106 起到今年,例如 114
locationKeyidYes地點代碼,取自 get_cbi_hotspots 的 locationKeyid(不是 hotspotKeyid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that identical coordinates are merged into coordinate+count pairs, sorted descending by count, that coordinates are highly duplicated and must NOT be read as per-case precise locations, and that month-level granularity is impossible. These are exactly the interpretation caveats 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?

Front-loaded with the core purpose first, then caveats, then input provenance. Dense semicolon-chained clauses with no filler, though the run-on structure makes the caveats slightly harder to scan than separate sentences would.

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?

No output schema exists, yet the description explains the return shape (coordinate plus count, sorted by count descending) and the aggregation caveat. For a 3-required-parameter read tool with a hard upstream dependency, nothing essential is missing.

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 every parameter is already documented, including the 'not hotspotKeyid' disambiguation and the ROC-year range; the description largely restates the locationKeyid/kind provenance. The added value is limited to reinforcing the full-year-only constraint rather than explaining parameter formats.

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?

States a specific verb and resource (accident locations at a single intersection or road segment) plus the scope limit (one year, one location). The scope is narrow enough that an agent can tell it apart from get_location_history or get_school_accident_points without opening the 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?

Gives an explicit prerequisite workflow — locationKeyid and kind must come from get_cbi_hotspots — and an explicit constraint that only full-year queries are possible. It does not name a sibling to avoid, but the input dependency effectively routes the agent to the right upstream tool.

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.

Resources