Skip to main content
Glama

Search code violations

search_violations
Read-onlyIdempotent

Search agency findings by place, case number, status, category and date. record_kind defaults to violation; complaints are reports, not confirmed violations. Sources report data_through, coverage_window and count_unit. Coverage varies by source and place; an empty result does not establish that no record exists. Up to 25 results per call. total_capped marks a lower bound; total_unknown means the total is unknown. Pagination guidance is in _notes.

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": "search_violations"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lngNo
cityNoCity name (matches the address city or the issuing jurisdiction)
pageNoPage number, 1-based (default 1)
startNoInstead of page: 1-based position of the first result to return, e.g. start=24 continues after result 23 (as named in `_notes`)
stateNo2-letter state code
parcelNoParcel / APN / folio / BBL (formatting ignored)
statusNoOPEN, CLOSED, COMPLIED, ABATED, CITED, DISMISSED or UNKNOWN
addressNoStreet address, partial, case-insensitive
categoryNoNormalised category, e.g. HOUSING, UNSAFE, WORK_WITHOUT_PERMIT
per_pageNoResults per page (default 25, max 25)
zip_codeNo5-digit ZIP
open_onlyNoOnly OPEN records (a citation or judgment is not open)
date_afterNorecord_date on or after (undated records never match)
case_numberNoThe agency's case / complaint number
date_beforeNorecord_date on or before
record_kindNo'violation' (default): violations, citations and orders the agency found. 'complaint': reports it received, and cases with no evidence a violation was found. 'all': both. Complaints are never counted as violations.violation
radius_milesNoRadius in miles around lat/lng (default 1)
jurisdiction_idNoA jurisdiction id from /v1/jurisdictions
include_uncountedNoAlso return records stored but never counted: voided, withdrawn, rescinded or issued in error, and process steps

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the 25-result-per-call cap, the meaning of total_capped (lower bound) and total_unknown, the per-source data_through/coverage_window/count_unit metadata, and that coverage varies by source and place. These are exactly the caveats an agent needs to avoid over-claiming completeness, and none of them are derivable from the annotations or schema.

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 most important content (what is searched, the record_kind default, the empty-result caveat) is front-loaded, and each subsequent sentence carries distinct semantic information. The total_capped/total_unknown pair and the _notes pointer are slightly terse and reference artifacts the agent must resolve elsewhere, which keeps it from a 5.

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?

For a 20-parameter, zero-required search with no output schema, the description covers the key ambiguities: result cap, total semantics, coverage limitations, and where pagination guidance lives. It does not explain the interaction between page/start or the radius_miles/coordinate pairing, but those gaps are modest relative to the schema's own detail.

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 90%, so the schema already documents nearly every parameter, including the detailed record_kind enum. The description's parameter-level contribution is largely a restatement of the filter dimensions listed in the schema, adding only the general 'complaints are never counted as violations' framing. Baseline 3 is appropriate when the schema does the heavy lifting.

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 opening sentence gives a specific verb (search) and resource (agency findings/violations) plus the filterable dimensions, and the record_kind sentence separates violations from complaints. It does not explicitly distinguish itself from the many sibling search_* tools, but the violation/complaint framing makes the resource scope clear enough to select it.

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?

It states the default (record_kind=violation) and warns that complaints are unconfirmed reports, which steers the agent's choice of record_kind. It also sets an interpretive rule (empty results do not establish absence) and points to _notes for pagination. It lacks explicit 'use X instead' routing to siblings, so it stops short of a 5.

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