Skip to main content
Glama
CSOSA MCP Server

CSOSA MCP Server

by nidahal

Search CSOSA Sub-Awards

csosa_search_subawards
Read-onlyIdempotent

Search CSOSA prime contractors' reported sub-awards to find subcontractor payments by keyword, date, recipient, amount, or fiscal year, with sortable, paginated JSON or Markdown results.

Instructions

Search sub-award (subcontractor) records tied to CSOSA prime contracts.

Source: USAspending.gov award-search API in sub-award mode, scoped to prime contracts awarded by the Court Services and Offender Supervision Agency. Each result is money a CSOSA prime contractor passed to a subcontractor, not a direct CSOSA obligation — use csosa_search_contract_awards for prime-award totals. Data is sourced from prime-contractor subcontract reporting (FSRS) and refreshed daily; coverage is sparser than prime-award data because sub-award reporting is not universal.

Returns: A pagination envelope (JSON) with items, count, offset, has_more, next_offset; or a Markdown summary of the matches.

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": "csosa_search_subawards"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoKeyword search across sub-award descriptions (e.g. 'janitorial', 'transportation'). Omit to list all CSOSA sub-awards, largest first.
sort_byNoField to sort results by.Sub-Award Amount
end_dateNoISO date (YYYY-MM-DD) for the end of the sub-award period. Ignored if fiscal_year is set.
paginationNo
sort_orderNoSort direction.desc
start_dateNoISO date (YYYY-MM-DD) for the start of the sub-award period. Earliest supported date is 2007-10-01. Ignored if fiscal_year is set.
fiscal_yearNoFederal fiscal year (Oct 1 of year-1 through Sep 30 of year), e.g. 2024. Takes precedence over start_date/end_date.
response_formatNoReturn machine-readable JSON (default) or human-readable Markdown.json
subawardee_nameNoFilter to a specific subcontractor/sub-recipient name (partial match, e.g. 'Acme Facilities').

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered; the description adds genuinely new context: the upstream data source (USAspending.gov sub-award mode), provenance (FSRS prime-contractor reporting), daily refresh cadence, and known sparsity of coverage. It does not discuss rate limits or ordering guarantees beyond the default sort, which keeps it from a 5.

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 the core purpose and the interpreting caveat before any secondary detail; paragraphs are short and each does work. The 'Returns' block is largely redundant given the tool has an output schema, which is the main wasted space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter read-only search tool with full annotations and an output schema, the description supplies the remaining pieces an agent needs: what the numbers mean (pass-through subcontractor money, not obligations), where the data comes from, how fresh it is, and why results may be incomplete. Return-shape detail is correctly deferred to the output schema.

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 89%, with every parameter documented including defaults, enums, and the fiscal_year precedence rule, so the schema carries the burden. The description only adds a small amount beyond it — that omitting the keyword lists all CSOSA sub-awards ordered largest-first — 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?

States a specific verb and resource ('Search sub-award (subcontractor) records tied to CSOSA prime contracts') and immediately clarifies what each result represents versus a direct CSOSA obligation. It explicitly names the sibling csosa_search_contract_awards as the tool for prime-award totals, so an agent can route 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent to csosa_search_contract_awards when prime-award totals are wanted, and explains the selection condition (subcontractor pass-through money vs. direct obligations). It also flags the data-quality tradeoff — FSRS-based coverage is sparser than prime-award data — which tells the agent when to distrust/reduce reliance on results.

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