Skip to main content
Glama

排名

rank
Read-onlyIdempotent

某條資料在里或鄉鎮排前幾名(跟網站 07 同一套算法:先加總再除、人少的地方往平均拉)。可換算每千居民 / 每公里道路 / 路 + 人 + 店(只有事故)/ 任何能當分母的代號;可只看某個鄉鎮、可加篩條件。只回前 N 名。里層資料(長者占比、里所得、選舉投票率…)一個里一個數,不能換算、單位只能是里(人數可加到鄉鎮)。沒編里的範圍不進排名。Rank neighbourhoods or districts by an indicator, optionally normalised.

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": "<metric>"
    },
    "name": "rank"
  }
}

Input Schema

NameRequiredDescriptionDefault
perNo換算:不除(預設)/ 每千居民 / 每公里道路 / 路 + 人 + 店 / 分母的資料代號
topNo前幾名,預設 10
townNo只看一個鄉鎮,例:竹北、東區
unitNo單位:里(預設,neighbourhood)或 鄉鎮(district)
metricYes資料代號或名稱,例:crash_ped4 或「行人事故」
shrinkNo有換算時,人少的地方往平均拉;預設 true(同網站),false = 看原始的率
filtersNo篩條件:里 / 鄉鎮的值要符合,例:[{metric:'residents',op:'>',value:100}]
descendingNo由高到低,預設 true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds meaningful behaviour beyond that: the small-area shrinkage algorithm, that only the top N are returned, and that certain ranges are excluded from the result set.

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?

Dense but front-loaded, with the core ranking behaviour stated first and edge cases after. It is longer than strictly necessary in the Chinese portion, but each clause carries information and there is a compact English summary at the end.

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?

With no output schema, the description covers the return shape (only the top N rows) and the metric-level and coverage constraints an agent needs. A few details, such as tie-breaking or what fields each returned row contains, remain unstated.

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 baseline is 3. The description clarifies some semantics (e.g. per can be a denominator code, filters example, unit restrictions), but much of it restates what the schema already documents, so it does not clearly exceed the baseline.

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 (rank) and resource (neighbourhoods/districts by an indicator), plus the normalisation behaviour, and flags the constraint on neighbourhood-level metrics. An agent can distinguish this from filter_cells or overlay_metrics 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 concrete conditions: it can restrict to one township, add filters, and only returns top N. It also states exclusions (neighbourhood-level data cannot be normalised; ranges without an assigned 里 do not enter the ranking). No sibling tool is named as an alternative, so it stops short of a 5.

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