Skip to main content
Glama

Compare State Trends

compare_state_trends
Read-onlyIdempotent

Compare two states’ EEOC charge trends by basis and fiscal years to determine which had the larger count or percent change, returning start/end counts and source cells.

Instructions

Decide which of two states had the larger change in charge receipts.

Use for head-to-head questions like "Did California or Texas see the larger rise in retaliation charges from FY 2021 to FY 2025?". Returns each state's start and end counts with source cells, the count and percent change, and which state leads on each measure (they can differ). State/territory codes follow Table E1b, FY 2009–2025.

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": {
      "state_a": "<state_a>",
      "state_b": "<state_b>",
      "basis": "<basis>",
      "start_fy": "<start_fy>",
      "end_fy": "<end_fy>"
    },
    "name": "compare_state_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisYesCharge basis or statute; 'receipts' = all.
end_fyYes
state_aYes
state_bYes
start_fyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: what is returned (start/end counts with source cells, absolute and percent change) and the non-obvious nuance that the two states can lead on different measures. Data domain (Table E1b, FY 2009–2025) is also disclosed.

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?

Four short sentences, front-loaded with the decision the tool makes, followed by usage example and return shape. The return-shape sentence duplicates what the output schema already carries, which is the only real redundancy.

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

Completeness5/5

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

For a five-parameter read-only comparison tool with an output schema, nothing essential is missing: purpose, when to use, return contents, and the code/date domain are all covered. Remaining gaps (year ordering, invalid-code behavior) are minor edge cases.

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 only 20%, with state_a/state_b carrying nothing but a two-letter pattern and the fiscal-year parameters having only min/max bounds. The description partially compensates by noting state/territory codes follow Table E1b and the FY 2009–2025 span, but it adds no meaning for start_fy/end_fy beyond the schema bounds (e.g. whether start must precede end, or fiscal-year semantics).

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 precise verb and scope: decide which of two states had the larger change in charge receipts. The 'head-to-head' framing and the concrete California-vs-Texas example make it distinguishable from a general trend analyzer without needing to open 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?

Explicitly says 'Use for head-to-head questions' and supplies a worked example of the question shape it serves. It stops short of naming when NOT to use it or pointing to the sibling that handles single-state trend analysis, so no full routing guidance.

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