Skip to main content
Glama

The Wiley Rule (public data)

Find my lawmakers by ZIP

find_my_lawmakers
Read-onlyIdempotent

North Carolina only: from a 5-digit ZIP, find the NC House and Senate districts and the public office pages of those members, with any public record of their position. Sends only the ZIP to the U.S. Census Bureau's public geocoder to find the ZIP area's center point. ZIPs can cross districts, so confirm with the official lookup.

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": {
      "zip": "<zip>"
    },
    "name": "find_my_lawmakers"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipYes5-digit ZIP code

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, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: only the ZIP is transmitted to the U.S. Census Bureau geocoder (a privacy-relevant external call consistent with openWorldHint), and it discloses what comes back — districts, office pages, and position records. It stops short of describing result shape or failure modes for non-NC ZIPs.

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?

Three sentences, front-loaded with the hard constraint ('North Carolina only'), then the behavior, then the caveat. Each sentence carries information; the geographic qualifier placed first is exactly where an agent needs it. Minor cost: the return-value clause is a long compound phrase.

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?

A single-required-parameter, read-only lookup with no output schema still gets a usable account of what is returned (districts, member pages, position records), the external data flow, and the accuracy caveat. The vagueness of 'any public record of their position' — i.e., whether that may be empty — is the only real gap for a tool this simple.

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?

Only one parameter, and the schema already enforces the 5-digit format with a pattern and 100% description coverage. The description restates '5-digit ZIP' and confirms what the value is used for (geocoding a center point) plus the caveat that ZIPs may span districts, which is mild added meaning rather than syntax detail. Baseline 3 applies when the schema carries the parameter burden.

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 and resource: from a 5-digit ZIP, find NC House and Senate districts plus members' public office pages and position records. The geographic scope ('North Carolina only') is stated up front, so an agent can immediately tell whether this tool is applicable; none of the listed siblings overlap with this lookup.

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 a clear precondition (NC-only, 5-digit ZIP) and names a fallback ('confirm with the official lookup') for cases where ZIP boundaries cross districts. No explicit when-not-to-use against a sibling, but no sibling performs a comparable lookup, so the guidance is essentially complete for its niche.

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