Skip to main content
Glama
nyc-checkbook-mcp

nyc-checkbook-mcp

search_nycha_contracts

Read-only

Search NYCHA contracts by fiscal year, vendor, amount, type, and date ranges to analyze release-level purchasing and contract details.

Instructions

Search NYCHA (New York City Housing Authority) contracts (Checkbook domain Contracts_NYCHA). These are separate from citywide contracts and are reported at release / line-item granularity (purchase-order releases, funding source, program/project). Filter by fiscal year, vendor, purchase-order type, responsibility center, contract type, industry, amount, and date ranges (including approved date). Results carry a year field only when you filter by fiscal_year; without fiscal_year they carry no year or fiscal-year field. When the year matters, filter by fiscal_year (one call per year). start_date, end_date, and approved_date are per record.

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

Input Schema

NameRequiredDescriptionDefault
pinNoPO header ID / PIN
pageNoPage number, 1-based (default: 1)
purposeNoContract purpose (contains match)
industryNoIndustry type code
page_sizeNoResults per page (default: 50, max: 20000)
amount_maxNoMaximum contract amount
amount_minNoMinimum contract amount
contract_idNoContract ID
end_date_toNoEnd date range end (YYYY-MM-DD)
fiscal_yearNoFiscal year, e.g. '2024'
vendor_codeNoVendor number / code
vendor_nameNoVendor name (contains match). The vendor may be a reseller, not the product's maker.
award_methodNoAward method code
contract_typeNoContract type code
end_date_fromNoEnd date range begin (YYYY-MM-DD)
start_date_toNoStart date range end (YYYY-MM-DD)
start_date_fromNoStart date range begin (YYYY-MM-DD)
approved_date_toNoRelease approved date range end (YYYY-MM-DD)
approved_date_fromNoRelease approved date range begin (YYYY-MM-DD)
purchase_order_typeNoPurchase order type code
responsibility_centerNoResponsibility center code
other_government_entities_codeNoNYCHA agency code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.0
    • changedInput schema / properties / vendor_name / description
      Previous value: -"Vendor name (contains match)"New value: +"Vendor name (contains match). The vendor may be a reseller, not the product's maker."
  2. First observedv1.6.4

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only and open-world behavior, and the description adds genuinely non-obvious traits: results are at release/line-item granularity (purchase-order releases, funding source, program/project) and the year field only appears when fiscal_year is supplied. That output-shape caveat is exactly the kind of disclosure annotations cannot carry; pagination or result-size behavior is still unmentioned.

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?

Front-loaded with purpose and dataset identity, then the granularity caveat, then the fiscal_year warning. Dense but every sentence carries information; the parenthetical examples add slight length without waste.

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 22-parameter, no-output-schema search tool, the description covers dataset scope, granularity, filter families, and the key result-shape pitfall. Enough for correct invocation; sorting, default result ordering, and pagination limits beyond the schema default are not addressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning on top: fiscal_year controls whether a year field is returned, start_date/end_date/approved_date are per-record, and vendor_name may match a reseller rather than the product's maker. It also enumerates the filter families (vendor, PO type, responsibility center, contract type, industry, amount, date ranges) that orient the agent across 22 parameters.

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 ("Search NYCHA ... contracts") and pins the exact domain (Checkbook domain Contracts_NYCHA). It explicitly separates the dataset from citywide contracts, which is what distinguishes it from the sibling search_contracts.

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 concrete when-to-use guidance for fiscal_year ("When the year matters, filter by fiscal_year (one call per year)") and clarifies the dataset boundary versus citywide contracts. It stops short of naming the alternative tool to call for citywide contracts, so routing is implied rather than explicit.

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