Skip to main content
Glama

行政區機構數

list_district_counts
Read-only

回傳指定縣市的行政區與機構數。

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": {
      "city": "<city>"
    },
    "name": "list_district_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYes縣市,例如「臺中市」

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered, and the description only adds the unit of aggregation (districts within a city). It says nothing about ordering, pagination, or what happens when a city has no facilities; however, for a closed-world read-only aggregation tool, those gaps are modest.

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 description is a single declarative sentence with no redundancy, and it is front-loaded with the return resource. It is arguably too short rather than bloated, so conciseness itself is not a problem.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Because there is no output schema, the description must carry the full burden of explaining return values, but it names only 'districts and counts' without describing the shape (for example, a city-level total or the ordering). For a simple tool, this is minimal but workable; however, it leaves the agent unable to predict the response format.

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?

The tool has only one parameter, and the schema description coverage is 100%: the schema already documents the city parameter and gives an example value (臺中市). The description's phrase 指定縣市 only echoes the schema, so it adds no new meaning. The baseline score of 3 is therefore correct.

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 verb and resource combination: it returns the districts and facility counts for a specified county/city (回傳指定縣市的行政區與機構數). The tool therefore covers a defined scope. It does not, however, distinguish itself from the sibling list_city_counts, so an agent cannot tell from the description alone how these two aggregation tools differ.

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

Usage Guidelines2/5

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

The description offers no guidance on when to use this tool rather than list_city_counts or search_facilities, and it gives no prerequisites, exclusions, or alternative tools. An agent can only infer that the tool performs a read operation.

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