Skip to main content
Glama

x402_socrata-nj_get_v1_mayors_directory

Retrieve New Jersey mayors directory data from the state open-data API, with query options to filter and limit results for local government research.

Instructions

socrata-nj — New Jersey state open data (data.nj.gov): incarceration census, vehicle inspections, mayors directory, traffic stops, naloxone [GET /v1/mayors-directory] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/mayors-directory?limit=2

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": "x402_socrata-nj_get_v1_mayors_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It usefully discloses that the call is paid ($0.005 USDC on specific chains) and that it is a GET read, which matters for invocation decisions. It omits rate limits, pagination behavior, error/response characteristics, and what a 'mayors directory' record actually contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The source and endpoint are front-loaded, but the dataset list is unearned clutter that duplicates context belonging to sibling tools, and price/chain strings add noise. It is compact but not cleanly scoped to this tool.

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?

For a simple GET tool with full schema coverage and no output schema, the definition covers endpoint, cost, and an example call. It falls short on return-value expectations (what fields a mayors-directory record has) and pagination/limit semantics, which an agent would want before paying per call.

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 body, query, restart, and operationId, making a 3 the baseline. The description adds only a faint hint via the example '?limit=2', implying query-level filtering, but says nothing about the retry/idempotency semantics of restart or operationId.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description does name the resource ('mayors directory') and the endpoint path '/v1/mayors-directory', so an agent can infer it fetches the NJ mayors directory. However, the purpose is buried inside a comma list of unrelated datasets (incarceration census, vehicle inspections, traffic stops, naloxone) that are actually separate sibling tools, which muddies what this specific tool returns.

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?

There is no statement of when to use this tool versus the many sibling dataset tools, no exclusions, and no preconditions beyond the implicit cost line. The agent gets no routing guidance beyond the URL path.

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

Deploy Server

Other Tools