spa_get
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_get for the schema, then POST the same URL with its arguments for the data.
Get one Medicaid State Plan Amendment by transmittal number (e.g. FL-25-0015, OH-22-0017): CMS Medicaid.gov metadata (state, summary, approval and effective dates, topics) plus the text of the approval package, returned as a window — offset and max_chars, default 8,000 characters — never the whole package. Follow text_next_offset until text_has_more is false. Scanned packages with no text layer say so instead of returning empty text. Set include_text=false for metadata only.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transmittal_number | string | yes | State code, two-digit year and sequence, e.g. “FL-25-0015”. |
offset | number | no | Character offset into the extracted text (default 0). |
max_chars | number | no | Characters of text to return, 500-30000 (default 8000). |
include_text | boolean | no | false returns metadata and the package link only. |
Example call
Arguments
{
"transmittal_number": "FL-25-0015",
"max_chars": 3000
}
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_get","arguments":{"transmittal_number":"FL-25-0015","max_chars":3000}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('spa_get', {
"transmittal_number": "FL-25-0015",
"max_chars": 3000
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
transmittal_number | string | |
state | string | |
state_code | string | |
summary | string | |
approval_date | string | |
effective_date | string | |
topics | array | |
documents | array | |
package_url | string | |
source | string | |
package_bytes | number | |
package_pages | number | |
text_total_chars | number | |
text | string | |
text_offset | number | |
text_returned_chars | number | |
text_has_more | boolean | |
text_next_offset | number |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"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
}
},
"package_url": {
"type": "string"
},
"source": {
"type": "string"
},
"package_bytes": {
"type": "number"
},
"package_pages": {
"type": "number"
},
"text_total_chars": {
"type": "number"
},
"text": {
"type": "string"
},
"text_offset": {
"type": "number"
},
"text_returned_chars": {
"type": "number"
},
"text_has_more": {
"type": "boolean"
},
"text_next_offset": {
"type": "number"
}
},
"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.