State Session Laws (Batch)
get_session_laws_batchReads up to 50 US state session laws in one call by ID or citation, returning served records in laws and misses in notFound; optionally includes each law's first page of text.
Instructions
Read up to 50 US state session laws in one call, by sessionLawId or citation: the record get_session_law returns, for each. Every entry is answered: served laws in laws, each carrying the input it answers, and the rest in notFound with a status. Duplicates collapse first. includeBody adds the first page of each law's text at the body price. To identify citations use resolve_statute_citations_batch; use this to read the records.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ids": "<ids>"
},
"name": "get_session_laws_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Session law ids or citations (`Minn. Laws 2025, ch. 1`, `S.F.No. 1552`), at most 50 distinct entries after duplicates collapse (200 raw, 300 characters each). A citation also pays the resolve price. Federal `SAL_` ids are misses and are never charged. | |
| includeBody | No | true adds the first page (about 30,000 characters) of each served law's text as `body`, at the body price per law served. A withheld or not-held law gets body: null and is not charged for it. Continue a long act with get_session_law_body from bodyNextCursor. | |
| jurisdiction | No | Optional two-letter state code, `dc` or `pr`, applied to every citation in ids: it supplies a state a citation omits and rejects one that conflicts. Ignored for ids. `federal` or an unknown code is a 422, nothing charged. | |
| Idempotency-Key | No | Optional, 16 to 255 visible ASCII characters (a UUIDv4 is ideal). A retry with the same key and request replays the original 2xx for 24 hours without charging again; the same key with a different request is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||