Skip to main content
Glama

analyze_concentration

Computes CR3/5/10, HHI, Gini, and Shannon effective-entity metrics to quantify patent concentration by applicant, IPC subclass, or first publication office, with bootstrap HHI intervals.

Instructions

计算申请人、IPC 小类或主公开号首次公开局的 CRn、HHI、Gini 与 Shannon 有效主体数。 方法: 多值维度按每件记录分数计数,报告 CR3/5/10、HHI、Gini、Shannon entropy 和 bootstrap HHI 稳定区间。 算法: fractional_concentration_metrics v1.1 证据等级: descriptive_statistic 禁止结论: competitive conduct, market power, causal market event

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_concentration"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimensionNoapplicant
count_modeNopublications
bootstrap_samplesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.9/5.0
Behavior4/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 well: it discloses the fractional per-record counting rule for multi-value dimensions, the named algorithm and version (fractional_concentration_metrics v1.1), the full metric set returned including bootstrap HHI stability intervals, and explicit epistemic limits. It does not mention runtime cost or behavior when a dimension has zero entities, which keeps it short of a 5.

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 purpose is front-loaded in sentence one, followed by clearly labeled lines (method, algorithm, evidence level, forbidden conclusions). Dense but every line adds information; minor cost is the telegraphic style, which trades readability for compactness.

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 must describe returns, and it does so thoroughly (CR3/5/10, HHI, Gini, Shannon entropy, bootstrap intervals). For a 3-parameter tool at 0% schema coverage the remaining gap is input-side semantics for count_mode and bootstrap_samples, otherwise the definition is complete enough to invoke correctly.

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 0%, so the description must compensate for all three parameters. It partially does: it enumerates the three dimension values and alludes to fractional counting that relates to count_mode, and mentions bootstrap intervals that imply bootstrap_samples. However, it never explains the publications-vs-families distinction or what bootstrap_samples=0 means, leaving the most consequential parameter choice undocumented.

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?

The first sentence names a specific computational verb and the exact metric family (CRn, HHI, Gini, Shannon effective entity count) plus the three eligible dimensions (applicant, IPC subclass, first-publication office). This is far more specific than sibling names like analyze_ipc_distribution, and an agent can tell which analysis produces concentration statistics without opening any schema.

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?

The description never states when to choose this over sibling analyses (e.g., distribution vs. concentration views) and gives no prerequisites. It does supply interpretation boundaries via 'evidence level: descriptive_statistic' and the forbidden-conclusions list (competitive conduct, market power, causal market event), which is genuine usage guidance but not when-to-use routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.