Skip to main content
Glama
nyc-checkbook-mcp

nyc-checkbook-mcp

get_agency_spending

Read-only

Fetch all spending for a specific NYC agency in a fiscal year to obtain an agency-level financial overview.

Instructions

Get all spending for a specific NYC agency in a fiscal year. A convenience wrapper around search_spending for agency-level financial overview.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agency_code": "<agency_code>",
      "fiscal_year": "<fiscal_year>"
    },
    "name": "get_agency_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default: 1)
page_sizeNoResults per page (default: 50, max: 20000)
agency_codeYes3-digit agency code, e.g. '056' for NYPD, '040' for Education
fiscal_yearYesFiscal year, e.g. '2024'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.0
    • changedInput schema / properties / agency_code / description
      Previous value: -"3-digit agency code, e.g. '858' for OTI/DoITT, '040' for NYPD"New value: +"3-digit agency code, e.g. '056' for NYPD, '040' for Education"
  2. First observedv1.6.4

TDQS

A4/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 usefully discloses that this is a wrapper delegating to search_spending, but 'Get all spending' sits in unacknowledged tension with the paginated schema (default page_size 50), and it says nothing about whether results are a complete agency total or a page slice.

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?

Two short sentences with zero padding; the primary purpose and the sibling relationship are both front-loaded in the first sentence. Every phrase earns its place.

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?

Read-only status is covered by annotations and all parameters are documented, so the agent has nearly everything to call it correctly. The remaining gap is pagination/completeness guidance for a tool claiming to return 'all' spending, which matters when an agent may need to page through results.

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%, including examples for agency_code ('056' for NYPD) and fiscal_year format, so the schema does the heavy lifting. The description adds no further meaning about parameter behavior or interactions, which is the expected baseline here.

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 ('Get all spending for a specific NYC agency'), scopes it to a fiscal year, and explicitly positions itself relative to the sibling search_spending as a convenience wrapper. An agent can distinguish it from the generic search tool without opening either schema.

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 clear context for use ('agency-level financial overview') and names the underlying alternative, search_spending, so an agent knows this is the narrow path. It stops short of stating when to prefer search_spending instead (e.g., filtering by vendor or expense category), so the exclusions are 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.