Skip to main content
Glama

兩樣疊

overlay_metrics
Read-onlyIdempotent

兩條資料疊起來看:A(可換算)與 B 各切三等分成九宮格,回各格有幾個里 / 鄉鎮,並列出「兩樣都高」的。例:事故(每千居民)高、人行道少的里。Which places are high on two indicators at once.

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": {
      "metric_a": "<metric_a>",
      "metric_b": "<metric_b>"
    },
    "name": "overlay_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
perNoA 的換算:不除(預設)/ 每千居民 / 每公里道路 / 路 + 人 + 店
topNo前幾名,預設 10
townNo只看一個鄉鎮,例:竹北、東區
unitNo單位:里(預設,neighbourhood)或 鄉鎮(district)
shrinkNo有換算時,人少的地方往平均拉;預設 true(同網站),false = 看原始的率
metric_aYes資料 A(代號或名稱)
metric_bYes資料 B(代號或名稱)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety needs no restating. The description adds genuinely new behavioral context not covered by structured fields: the output is a nine-cell bivariate grid with counts per cell plus an explicit 'high on both' list, which is valuable since there is no output schema.

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?

The core concept and the return shape are front-loaded in the first clause, followed by a concrete example. It is dense and mixes Chinese and English, but no sentence is wasted.

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?

For a 7-parameter tool with no output schema, the description supplies the missing output shape (nine cells with counts and a high-both list), which is the key gap. It does not explain how the three-way split is computed (tertiles/quantiles) or how 'top' interacts with the grid, leaving a small but real gap.

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 including per, unit, shrink, and top is already documented in the schema. The description only hints at 'A (可換算)' and the 里/鄉鎮 unit, adding little beyond what the schema provides; baseline 3 applies.

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?

The description states a specific analytic operation: two metrics each split into tertiles to form a 3x3 grid, returning per-cell counts of 里/鄉鎮 plus a list of places high on both. That is far more specific than a restatement of the name '兩樣疊'. It does not explicitly contrast itself with siblings like compare_groups or rank, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is conveyed only by a worked example ('事故(每千居民)高、人行道少的里'), which implies when the tool is useful but never states when to prefer it over compare_groups, rank, or compare_change. No exclusions or prerequisites are given.

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