Skip to main content
Glama

分組比

compare_groups
Read-onlyIdempotent

有 B 的格 vs 沒有 B 的格,A 差多少 —— 在居民 × 道路長度切成的 25 層裡各比一次(避免被市中心拉著走)。只描述,不做因果。Compare cells with vs without B, within strata of residents and road length.

Input Schema

NameRequiredDescriptionDefault
perNoA 的換算:不除(預設)/ 每千居民 / 每公里道路
has_bYes分組的依據 B:格裡有沒有,例:人行道、公車站
metric_aYes要比的東西 A(件數 / 長度這類能加總的),例:行人事故

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world). The description adds genuine behavioral context beyond that: the output is descriptive with no causal claims (只描述,不做因果) and the stratification exists to avoid city-center confounding. That interpretive caveat is valuable for how the agent frames results.

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?

Two compact sentences, front-loaded with the core comparison before the stratification rationale. The bilingual restatement is mildly redundant but aids clarity; no sentence is wasted.

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

Completeness3/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 should characterize the return shape (per-stratum differences vs a single effect) and it does not. It does establish the analytical scope and a no-causation caveat, and annotations cover safety, but the agent lacks detail on what comes back.

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 documents metric_a, has_b, and per. The description loosely maps A to metric_a and B to has_b and explains the stratum dimensions, but does not clarify how the 'per' conversion interacts with those strata. Baseline 3 is appropriate.

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 names a specific analytical verb (compare A between cells with vs without B) and specifies the stratification design (residents × road length, 25 strata). It clearly conveys what the tool computes, though it doesn't explicitly position itself against siblings like compare_change (temporal) or rank.

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 implied by the analytical framing but there is no explicit when-to-use, when-not, or named alternative. An agent can infer this is for cross-sectional stratified group comparison, but must reason about when to pick it over compare_change, rank, or overlay_metrics.

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