Skip to main content
Glama
Open Data B2B & Compliance MCP Server

Open Data B2B & Compliance MCP Server

search_code_violation_leads

Read-onlyIdempotent

Find active municipal code enforcement, housing habitability, blight, and distressed property leads across US Socrata portals, with parcel IDs, geocodes, distress scores, and priority tiers.

Instructions

Search active municipal code enforcement, housing habitability violations, condemned/vacant structures, blight, and distressed property leads across 6 US Socrata portals (Austin, Seattle, San Francisco, Buffalo, Montgomery County MD, Cincinnati) with parcel IDs, geocodes, distress scores, and investor priority tiers.

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_code_violation_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
metrosNoUS municipal portals to query. Supported keys: "austin", "seattle", "san_francisco", "buffalo", "montgomery_md", "cincinnati". Default: ["austin", "san_francisco", "buffalo"].
keywordsNoOptional keywords matched against violation description, violation type, status, parcel ID, or address (e.g., ["condemned", "mold", "vacant"]).
maxResultsNoMaximum code violation leads to return (1-50 in MCP Standby mode). Default: 10.
openCasesOnlyNoWhen true, returns only open/active/unresolved municipal code enforcement cases. Default: false.
distressFilterNoFilter leads by property distress category ("all", "structural_hazard", "vacant_abandoned", "fire_electrical_plumbing", "housing_habitability", "unpermitted_zoning", "exterior_blight"). Default: "all".all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds value by disclosing the external data sources (six specific Socrata portals) and the enrichment returned (distress scores, investor priority tiers), which the annotations do not convey. It stops short of describing latency, rate-limit behavior, or how partial-portal failures are handled.

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?

It is a single dense sentence that front-loads the verb and scope before the source list and return payload, with no filler. The long comma-chained noun lists make it slightly harder to scan, but nothing is genuinely redundant.

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 five-parameter, all-optional search tool with no output schema, the description gives enough to call it correctly: sources, scope (active cases), and what comes back. Minor gaps remain around result-volume behavior (the 1-50 standby cap lives only in the schema) and how sources are combined across metros.

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 every parameter (metros, keywords, maxResults, openCasesOnly, distressFilter) is already fully documented with defaults and enum values. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 applies.

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 description names a specific verb (Search) and resource (municipal code enforcement / habitability violation leads), enumerates the six Socrata portals by city, and lists the enriched output fields (parcel IDs, geocodes, distress scores, investor priority tiers). This makes it distinguishable from the sibling list_code_violation_metros, which only deals with portal discovery.

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?

Usage is implied by the scope statement — use it to pull code violation leads from the named municipal portals — but there is no explicit when-to-use/when-not guidance or pointer to a cheaper alternative for discovering which metros are available first. An agent must infer the workflow from the sibling name alone.

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