Skip to main content
Glama
nyc-checkbook-mcp

nyc-checkbook-mcp

get_contract

Read-only

Retrieve full details for a single NYC contract by contract ID, including category, status, purpose, and prime contract fields. Use after finding an ID via contract or spending search.

Instructions

Look up a single NYC contract by its contract ID. Returns full contract details. Use this after finding a contract ID via search_contracts or search_spending. Fields: registered expense/all use prime_contract_*; registered revenue and pending use plain names (contract_id, purpose).

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": {
      "contract_id": "<contract_id>"
    },
    "name": "get_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoContract status (default: registered)registered
categoryNoContract category (default: expense)expense
contract_idYesContract ID, e.g. 'CT185820201424467' or 'DO185820252009241'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.4

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds genuine value beyond them by disclosing that return field names depend on status/category — prime_contract_* prefixes for registered expense/all, plain names for registered revenue and pending — which is non-obvious behavior an agent would otherwise get wrong.

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?

Purpose and the ID prerequisite are front-loaded in the first two sentences, and the field-naming caveat is appended where it belongs. The final sentence is dense with jargon but each clause carries necessary information; nothing is redundant filler.

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?

With no output schema, the description carries the return-value burden and does so adequately: it promises full contract details and warns that field naming varies by status/category. For a three-parameter read tool with full schema coverage and safety annotations, that is sufficient, though a note on what a missing/invalid ID yields is absent.

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 coverage is 100% and both enum defaults (status=registered, category=expense) are documented in the schema, so baseline is 3. The description adds the meaningful linkage between those enum values and the resulting field names, but does not explain the accepted ID formats beyond what the schema already supplies.

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 — look up a single NYC contract — plus the key it requires (contract ID) and what comes back (full contract details). This clearly distinguishes it from the search_contracts sibling, which returns IDs rather than a full record.

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?

Explicitly says to use this after obtaining an ID via search_contracts or search_spending, which names the alternatives and the prerequisite. It stops short of stating when-not to use it (e.g., don't call it with partial or name-based input), so it is strong context rather than a complete routing rule.

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