sbir_agency_stats
Pack: sbir · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/sbir_agency_stats for the schema, then POST the same URL with its arguments for the data.
“How many SBIR awards did DOE make last year, and how much total funding?” / “SBIR award count and dollar total for NASA in 2024” — per-agency SBIR/STTR TOTALS, live from www.sbir.gov/awards (the same source sbir_search_awards uses). Specify agency (e.g. “DOD”, “NASA”, “DOE”) and, optionally, year to scope the count — year is the CALENDAR year sbir.gov’s own “Award Year” field assigns to the award (verified against sbir.gov/awards’ own year[YYYY] filter and each award’s detail page, not a federal fiscal year). award_count is always exact: sbir.gov/awards states a precise “Showing X-Y of N results” total, never an “at least” estimate. When agency is given, this also returns funding_total: the dollar sum of award amounts across the matched awards. sbir.gov/awards has no funding-total aggregate of its own — the dollar amount lives only on each award’s own detail page, one fetch per award — so funding_total sums at most the first 25 matching awards and sets funding_total_complete: true only when that covers every match; otherwise funding_total_complete: false and funding_note says how many of how many were actually summed (narrow with sbir_search_awards’ company/state/keyword filters to bring a large match count under 25 for an exact sum — never trust a false total as the real figure). Omit agency to see counts only (no funding_total — aggregating funding across all major agencies in one call would mean hundreds of detail-page fetches) across the major agencies (DOD, HHS, NASA, NSF, DOE, USDA) at once.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agency | string | no | Specific agency to count, e.g. “DOD”, “NASA”, “NSF”. Omit to cover all major agencies (count-only, no funding_total). |
year | number | no | Filter by award year (e.g., 2025) — sbir.gov’s own calendar-year “Award Year” field, same as sbir_search_awards’ year filter. Omit for an all-time total. |
Example call
Arguments
{
"agency": "NASA"
}
curl
curl -X POST https://gateway.pipeworx.io/sbir/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sbir_agency_stats","arguments":{"agency":"NASA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('sbir_agency_stats', {
"agency": "NASA"
});
More examples
{
"agency": "DOE",
"year": 2025
}
{}
Response shape
Full JSON Schema
{
"type": "object",
"oneOf": [
{
"type": "object",
"properties": {
"agency": {
"type": "string",
"description": "Agency code"
},
"award_count": {
"type": "number",
"description": "Total award count for agency"
}
},
"required": [
"agency",
"award_count"
]
},
{
"type": "object",
"properties": {
"agencies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"agency": {
"type": "string",
"description": "Agency code"
},
"award_count": {
"type": [
"number",
"null"
],
"description": "Total award count for agency"
},
"error": {
"type": "string",
"description": "Error message if retrieval failed"
}
},
"required": [
"agency"
]
}
}
},
"required": [
"agencies"
]
}
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the sbir pack
{
"mcpServers": {
"sbir": {
"url": "https://gateway.pipeworx.io/sbir/mcp"
}
}
}
See Getting Started for client-specific install steps.