Skip to main content
Glama
nyc-checkbook-mcp

nyc-checkbook-mcp

search_spending

Read-only

Search NYC check spending records by agency, payee, contract, date range, amount, or expense category; provide a fiscal year or start date to narrow results.

Instructions

Search NYC spending (check) records. Filter by agency, payee, contract, date range, amount, or expense category. Either fiscal_year or issue_date_from is required.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default: 1)
page_sizeNoResults per page (default: 50, max: 20000)
amount_maxNoMaximum check amount
amount_minNoMinimum check amount
payee_nameNoPayee (vendor) name. The way to find a vendor's contracts: read contract_id from the checks.
agency_codeNo3-digit agency code, e.g. '056' for NYPD, '040' for Education
contract_idNoFilter spending by contract ID
fiscal_yearNoFiscal year, e.g. '2024'
issue_date_toNoCheck issue date range end (YYYY-MM-DD)
mwbe_categoryNoM/WBE category code
issue_date_fromNoCheck issue date range start (YYYY-MM-DD)
expense_categoryNoExpense category code
spending_categoryNo'c' for capital, 'e' for expense

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.8.0
    • changedInput schema / properties / agency_code / description
      Previous value: -"3-digit agency code"New value: +"3-digit agency code, e.g. '056' for NYPD, '040' for Education"
    • changedInput schema / properties / payee_name / description
      Previous value: -"Payee (vendor) name"New value: +"Payee (vendor) name. The way to find a vendor's contracts: read contract_id from the checks."
  2. First observedv1.6.4

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds one genuinely useful behavioral constraint not present in the schema (the fiscal_year/issue_date_from requirement), but says nothing about result volume, pagination behavior, or what a check record contains.

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

Conciseness5/5

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

Three short sentences, front-loaded with the resource and scope, then the filter surface, then the hard requirement. No filler or repetition of schema content.

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 13-parameter, fully-described, read-only search tool with no output schema, the description covers purpose, filter surface, and the critical required-one-of rule. The main remaining gap is that it does not signal anything about result size or pagination defaults, which the schema documents but the agent may not consult before a large query.

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 one of the 13 parameters is already documented, which sets the baseline at 3. The description adds a cross-parameter constraint (fiscal_year or issue_date_from required) that the schema does not enforce, but contributes no syntax or format detail beyond the schema.

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 description gives a specific verb and resource ('Search NYC spending (check) records') and clarifies what a 'check' record is relative to the surrounding contract/budget siblings. It does not explicitly name a sibling it is distinct from, so it stops short of full differentiation.

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 provides concrete usage context by enumerating the filter axes (agency, payee, contract, date range, amount, expense category) and states the key precondition that either fiscal_year or issue_date_from must be supplied. It does not name alternative tools or explain when-not to use it, so it falls 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.