Skip to main content
Glama
CSOSA MCP Server

CSOSA MCP Server

by nidahal

Search CSOSA Contract Awards

csosa_search_contract_awards
Read-onlyIdempotent

Search CSOSA federal contract awards by keyword, recipient, date, fiscal year, or amount, with permalinks and award IDs for follow-up details.

Instructions

Search real federal contract award data for CSOSA.

Source: USAspending.gov public award-search API, scoped to the Court Services and Offender Supervision Agency for the District of Columbia. Data is sourced from agency procurement system submissions and refreshed daily; see the module docstring for freshness and coverage limits.

Each result includes a usaspending_url permalink to the award's page on USAspending.gov so answers can cite their source, and an award_detail_id you can pass to csosa_get_award_details for the full contract record (competition, NAICS/PSC, place of performance).

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

Input Schema

NameRequiredDescriptionDefault
queryNoKeyword search across award descriptions and recipient names (e.g. 'security services', 'drug treatment'). Omit to list all CSOSA contracts, most recent/largest first.
sort_byNoField to sort results by.Award Amount
end_dateNoISO date (YYYY-MM-DD) for the end of the award period. Ignored if fiscal_year is set.
paginationNo
sort_orderNoSort direction.desc
start_dateNoISO date (YYYY-MM-DD) for the start of the 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.
recipient_nameNoFilter to a specific contractor/recipient name (partial match, e.g. 'Salvation Army').
response_formatNoReturn machine-readable JSON (default) or human-readable Markdown.json
max_award_amountNoOnly include awards at or below this dollar amount.
min_award_amountNoOnly include awards at or above this dollar amount.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, and the description adds provenance (agency procurement submissions), freshness (refreshed daily), a pointer to coverage limits, and the permalink field enabling citation. That is substantial behavioral context beyond the structured fields.

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 source, then output shape; each paragraph is purposeful. The "Returns:" block partly restates what the existing output schema already covers, which is mild redundancy but not harmful.

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 an 11-parameter read-only search with an output schema and full annotations, the definition covers source, scope, handoff, and return envelope. The one soft spot is deferring freshness and coverage limits to an external module docstring the calling agent cannot read.

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 91%, so parameters such as query, date bounds, fiscal_year precedence, and amount ranges are already documented in the schema. The description adds no format, precedence, or edge-case detail beyond that, so the baseline of 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 real federal contract award data for CSOSA") and pins the scope to the USAspending.gov award-search API filtered to the Court Services and Offender Supervision Agency. It also distinguishes itself from the detail sibling by noting the award_detail_id handoff to csosa_get_award_details.

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 operating context: keyword search is optional ("Omit to list all CSOSA contracts") and the award_detail_id should be passed to csosa_get_award_details for full records. It does not explicitly contrast with csosa_search_subawards or csosa_spending_summary, so routing among those siblings is left to inference.

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