spa_search
Pack: medicaid-state-plans · 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/spa_search for the schema, then POST the same URL with its arguments for the data.
Search CMS Medicaid.gov Medicaid State Plan Amendments (SPAs) by state, topic, keyword and approval or effective date. Returns transmittal number (e.g. FL-25-0015), state, summary, approval and effective dates, topic tags and the approval-package link, newest approval first by default. Use for “which SPAs changed FQHC reimbursement in Florida”. Unknown state or topic returns the valid values. Then call spa_get for the document text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
state | string | no | State name or 2-letter code (e.g. “Florida” or “FL”). Several can be given separated by ”|”. |
topic | string | no | The publisher’s topic tag (e.g. “Reimbursement”, “Managed Care”). Unknown tags return near matches. |
q | string | no | Keywords matched against the amendment text and summary, or a transmittal number. |
approval_from | string | no | Earliest approval date, YYYY-MM-DD or MM/DD/YYYY. |
approval_to | string | no | Latest approval date. |
effective_from | string | no | Earliest effective date. |
effective_to | string | no | Latest effective date. |
sort | string | no | Default approval_newest. |
limit | number | no | Rows per page, 1-100 (default 25). |
page | number | no | Zero-based page number (default 0). Use total_pages / has_next from the response. |
Example call
Arguments
{
"state": "Florida",
"q": "FQHC",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/medicaid-state-plans/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"spa_search","arguments":{"state":"Florida","q":"FQHC","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('spa_search', {
"state": "Florida",
"q": "FQHC",
"limit": 5
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
count | number | |
page | number | |
total_pages | number | |
has_next | boolean | |
filters_applied | object | |
sort | string | |
amendments | array | |
source | string | |
note | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"count": {
"type": "number"
},
"page": {
"type": "number"
},
"total_pages": {
"type": "number"
},
"has_next": {
"type": "boolean"
},
"filters_applied": {
"type": "object",
"properties": {
"state": {
"type": "array",
"items": {
"type": "string"
}
},
"q": {
"type": "string"
}
},
"additionalProperties": true
},
"sort": {
"type": "string"
},
"amendments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"transmittal_number": {
"type": "string"
},
"state": {
"type": "string"
},
"state_code": {
"type": "string"
},
"summary": {
"type": "string"
},
"approval_date": {
"type": "string"
},
"effective_date": {
"type": "string"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
},
"source": {
"type": "string"
},
"note": {
"type": "string"
}
},
"additionalProperties": true
}
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 medicaid-state-plans pack
{
"mcpServers": {
"medicaid-state-plans": {
"url": "https://gateway.pipeworx.io/medicaid-state-plans/mcp"
}
}
}
See Getting Started for client-specific install steps.