Skip to main content
Glama

canada-parliament-mcp-server

Canparl Get Bill

canparl_get_bill
Read-onlyIdempotent

Read one House or Senate bill's official dossier. Large dossiers return an outline; re-call with one section and follow pagination.nextOffset for collections. Stages preserve nested records whole. Obtain billCode and session from canparl_search_bills; omitted session means the verified current official session.

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": {
      "billCode": "<billCode>"
    },
    "name": "canparl_get_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum whole records per selected collection page, 1–100 per call; larger values up to 10000 return 100 with a notice, and the byte budget may reduce it.
offsetNoZero-based whole-record offset within the selected collection.
sectionNoOne section from the returned outline: sponsor, stages.house, stages.senate, stages.royalAssent, divisions, senateVoteDetails, publications, statute, summary.en, summary.fr, notes.en, notes.fr, milestones, webReferences. Omit for the full dossier or its overflow outline.
sessionNoParliamentary session; omitted means current.
billCodeYesBill code from canparl_search_bills, including a split-bill suffix letter such as C-15A; accepts bill s321, S321, S 321, or S-321.

Output Schema

NameRequiredDescriptionDefault
billNoOfficial bill summary.
kindNoAbsent for full dossier; outline lists sections; section returns one selection.
errorNoPresent when the call failed. Absent on success.
notesNoOfficial dossier notes; notes.en and notes.fr sections each return one language.
noticeNoLimit clamp or source coverage guidance when applicable.
stagesNoAll official stage containers.
sponsorNoOfficial sponsor fields.
statuteNoEnacted statute when both year and chapter exist; otherwise null.
summaryNoLibrary of Parliament legislative summary; summary.en and summary.fr sections each return one language.
sectionsNoAvailable section selectors.
divisionsNoHouse divisions, or null if unavailable.
disclosureNoOverflow, empty, unavailable, past-end, or response-budget-stop guidance.
milestonesNoReading milestones as UTC instants ending in Z (YYYY-MM-DDTHH:MM:SS[.fraction]Z), converted from LEGISinfo's Ottawa-time clocks; Senate times of day are LEGISinfo's recorded times. A value in another shape is relayed as published. Royal assent is bill.royalAssentDate.
paginationNoWhole-record selection continuation.
provenanceNoOriginal retrieval metadata for every source request.
totalCountNoSelected collection total, or null for unavailable or scalar sections.
publicationsNoPublications, or null if unavailable.
webReferencesNoRelated documents, press releases, and costing notes, or null if unavailable.
appliedFiltersNoNormalized requested bill identity.
senateVoteDetailsNoComplete variable Senate vote records; not House divisions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / properties / billCode / pattern
      Added value: +"^\\s*(?:[Bb][Ii][Ll][Ll]\\s+)?[CcSs][-\\u0020\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\u2010-\\u2015\\u2212]?[1-9][0-9]*[A-Za-z]?\\s*$"
    • changedInput schema / properties / section / description
      Previous value: -"One section from the returned outline; omit for full dossier or overflow outline."New value: +"One section from the returned outline: sponsor, stages.house, stages.senate, stages.royalAssent, divisions, senateVoteDetails, publications, statute, summary.en, summary.fr, notes.en, notes.fr, milestones, webReferences. Omit for the full dossier or its overflow outline."
    • addedInput schema / properties / section / pattern
      Added value: +"^\\s*(?:(?:sponsor|stages\\.house|stages\\.senate|stages\\.royalAssent|divisions|senateVoteDetails|publications|statute|summary\\.en|summary\\.fr|notes\\.en|notes\\.fr|milestones|webReferences)\\s*)?$"
    • changedInput schema / properties / session / anyOf
      Previous value: -[
      -  {
      -    "description": "Parliament-session token, such as 45-1.",
      -    "pattern": "^\\d+-\\d+$",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Parliament and session numbers.",
      -    "properties": {
      -      "parliament": {
      -        "description": "Positive parliament number.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "session": {
      -        "description": "Positive session number.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "parliament",
      -      "session"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Parliament-session token, such as 45-1.",
      +    "pattern": "^\\s*(?:[0-9]+-[0-9]+\\s*)?$",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Parliament and session numbers.",
      +    "properties": {
      +      "parliament": {
      +        "description": "Positive parliament number.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "session": {
      +        "description": "Positive session number.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "parliament",
      +      "session"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / $defs / BillStage / properties / committeeMeetings / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "Committee meeting record.",
      -      "properties": {
      -        "acronym": {
      -          "description": "Committee acronym.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "committeeId": {
      -          "anyOf": [
      -            {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Committee organization ID."
      -        },
      -        "date": {
      -          "description": "Committee meeting date.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "name": {
      -          "additionalProperties": false,
      -          "description": "Committee meeting names.",
      -          "properties": {
      -            "en": {
      -              "description": "English text, or null when unavailable.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "fr": {
      -              "description": "French text, or null when unavailable.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "en",
      -            "fr"
      -          ],
      -          "type": "object"
      -        },
      -        "number": {
      -          "description": "Committee meeting number.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "number",
      -        "date",
      -        "committeeId",
      -        "acronym",
      -        "name"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "Committee meeting record.",
      +      "properties": {
      +        "acronym": {
      +          "description": "Committee acronym.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "committeeId": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Committee organization ID."
      +        },
      +        "date": {
      +          "description": "Committee meeting date in Ottawa time as published, without an offset.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "additionalProperties": false,
      +          "description": "Committee meeting names.",
      +          "properties": {
      +            "en": {
      +              "description": "English text, or null when unavailable.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fr": {
      +              "description": "French text, or null when unavailable.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "en",
      +            "fr"
      +          ],
      +          "type": "object"
      +        },
      +        "number": {
      +          "description": "Committee meeting number.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "number",
      +        "date",
      +        "committeeId",
      +        "acronym",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / $defs / BillStage / properties / decisions / description
      Previous value: -"Complete variable decision records."New value: +"Complete variable decision records; their date-times are Ottawa time as published, without an offset."
    • changedOutput schema / $defs / BillStage / properties / endOfStageEvent / description
      Previous value: -"Complete end-of-stage event."New value: +"Complete end-of-stage event; its date-times are Ottawa time as published, without an offset."
    • changedOutput schema / $defs / BillStage / properties / significantEvents / description
      Previous value: -"Complete variable significant-event records."New value: +"Complete variable significant-event records; their date-times are Ottawa time as published, without an offset."
    • changedOutput schema / $defs / BillStage / properties / sittings / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "Sitting record.",
      -      "properties": {
      -        "date": {
      -          "description": "Sitting date.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "name": {
      -          "additionalProperties": false,
      -          "description": "Sitting names.",
      -          "properties": {
      -            "en": {
      -              "description": "English text, or null when unavailable.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "fr": {
      -              "description": "French text, or null when unavailable.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "en",
      -            "fr"
      -          ],
      -          "type": "object"
      -        },
      -        "number": {
      -          "description": "Sitting number.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "published": {
      -          "description": "Publication flag.",
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "number",
      -        "date",
      -        "name",
      -        "published"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "Sitting record.",
      +      "properties": {
      +        "date": {
      +          "description": "Sitting date in Ottawa time as published, without an offset.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "additionalProperties": false,
      +          "description": "Sitting names.",
      +          "properties": {
      +            "en": {
      +              "description": "English text, or null when unavailable.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fr": {
      +              "description": "French text, or null when unavailable.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "en",
      +            "fr"
      +          ],
      +          "type": "object"
      +        },
      +        "number": {
      +          "description": "Sitting number.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "published": {
      +          "description": "Publication flag.",
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "number",
      +        "date",
      +        "name",
      +        "published"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / $defs / BillStage / properties / stateAsOf / description
      Previous value: -"State-as-of date."New value: +"State-as-of date-time in Ottawa time as published, without an offset."
    • changedOutput schema / properties / bill / properties / royalAssentDate / description
      Previous value: -"Royal assent as a UTC instant ending in Z (YYYY-MM-DDTHH:MM:SS[.fraction]Z), or null; a value in another shape is relayed as published."New value: +"Royal assent as a UTC instant ending in Z (YYYY-MM-DDTHH:MM:SS[.fraction]Z), converted from LEGISinfo's Ottawa-time clock, or null; the time of day is LEGISinfo's recorded time, which can differ from when assent was signified. A value in another shape is relayed as published."
    • changedOutput schema / properties / divisions / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "Official House division record.",
      -      "properties": {
      -        "dateTime": {
      -          "description": "LEGISinfo sitting date-time as published, not the time the division was recorded (canparl_get_vote reports that); or null.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "nays": {
      -          "anyOf": [
      -            {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Nay count, or null."
      -        },
      -        "number": {
      -          "description": "House division number for canparl_get_vote.",
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        },
      -        "paired": {
      -          "anyOf": [
      -            {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Paired count, or null."
      -        },
      -        "result": {
      -          "description": "Official decision wording, or null.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "session": {
      -          "description": "Verified division session.",
      -          "type": "string"
      -        },
      -        "subject": {
      -          "additionalProperties": false,
      -          "description": "Official division subjects.",
      -          "properties": {
      -            "en": {
      -              "description": "English text, or null when unavailable.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "fr": {
      -              "description": "French text, or null when unavailable.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "en",
      -            "fr"
      -          ],
      -          "type": "object"
      -        },
      -        "total": {
      -          "anyOf": [
      -            {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Official total, or null."
      -        },
      -        "url": {
      -          "description": "Absolute HTTPS House division URL.",
      -          "type": "string"
      -        },
      -        "yeas": {
      -          "anyOf": [
      -            {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Yea count, or null."
      -        }
      -      },
      -      "required": [
      -        "session",
      -        "number",
      -        "subject",
      -        "dateTime",
      -        "result",
      -        "yeas",
      -        "nays",
      -        "paired",
      -        "total",
      -        "url"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "Official House division record.",
      +      "properties": {
      +        "dateTime": {
      +          "description": "LEGISinfo sitting date-time in Ottawa time as published, without an offset; not the time the division was recorded (canparl_get_vote reports that); or null.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "nays": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Nay count, or null."
      +        },
      +        "number": {
      +          "description": "House division number for canparl_get_vote.",
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "paired": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Paired count, or null."
      +        },
      +        "result": {
      +          "description": "Official decision wording, or null.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "session": {
      +          "description": "Verified division session.",
      +          "type": "string"
      +        },
      +        "subject": {
      +          "additionalProperties": false,
      +          "description": "Official division subjects.",
      +          "properties": {
      +            "en": {
      +              "description": "English text, or null when unavailable.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fr": {
      +              "description": "French text, or null when unavailable.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "en",
      +            "fr"
      +          ],
      +          "type": "object"
      +        },
      +        "total": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Official total, or null."
      +        },
      +        "url": {
      +          "description": "Absolute HTTPS House division URL.",
      +          "type": "string"
      +        },
      +        "yeas": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Yea count, or null."
      +        }
      +      },
      +      "required": [
      +        "session",
      +        "number",
      +        "subject",
      +        "dateTime",
      +        "result",
      +        "yeas",
      +        "nays",
      +        "paired",
      +        "total",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_bill_section`: Unknown section selector or pagination supplied without a collection section. `unknown_session`: Malformed or unsupported official bill session. `invalid_bill_code`: Ambiguous or malformed bill code. `bill_not_found`: Official dossier has no matching record or returns a missing-record response. `upstream_blocked`: An official parliamentary source refuses the request with HTTP 403. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_bill_section`: Pagination supplied without a collection section. `unknown_session`: Session with a zero or out-of-range number, or absent from the official bill session index. `bill_not_found`: Official dossier has no matching record or returns a missing-record response. `upstream_blocked`: An official parliamentary source refuses the request with HTTP 403. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_bill_section",
      -  "unknown_session",
      -  "invalid_bill_code",
      -  "bill_not_found",
      -  "upstream_blocked"
      -]New value: +[
      +  "invalid_bill_section",
      +  "unknown_session",
      +  "bill_not_found",
      +  "upstream_blocked"
      +]
    • changedOutput schema / properties / milestones / description
      Previous value: -"Reading milestones as UTC instants ending in Z (YYYY-MM-DDTHH:MM:SS[.fraction]Z); a value in another shape is relayed as published. Royal assent is bill.royalAssentDate."New value: +"Reading milestones as UTC instants ending in Z (YYYY-MM-DDTHH:MM:SS[.fraction]Z), converted from LEGISinfo's Ottawa-time clocks; Senate times of day are LEGISinfo's recorded times. A value in another shape is relayed as published. Royal assent is bill.royalAssentDate."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), yet the description adds genuinely useful behavior: oversized dossiers degrade to an outline, sections must be requested individually, collections paginate via nextOffset, and nested stage records are returned whole. It does not describe error behavior or the byte-budget/limit interaction, so not a 5.

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?

Four front-loaded sentences, no filler, with the primary action first and the pagination mechanics after. 'Stages preserve nested records whole' is terse to the point of being slightly cryptic, which keeps it out of the top band.

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?

An output schema exists, so return values need no explanation, and the description still covers the non-obvious retrieval contract (outline overflow, section re-call, pagination cursor, default session). This is sufficient for an idempotent read tool, though a note on limits versus the byte budget would close the last gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: billCode and session come from canparl_search_bills, and an omitted session is resolved to the verified current session. It also frames section/offset/limit as a re-call pagination loop rather than isolated parameters.

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 ('Read one House or Senate bill's official dossier'), including scope (single bill, both chambers). It also implicitly separates itself from canparl_search_bills, which it names as the source of the identifiers, so an agent can distinguish discovery from retrieval.

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 a clear workflow: get billCode/session from canparl_search_bills, and if the dossier is large, re-call with one section and follow pagination.nextOffset. It never says when not to use this tool (e.g., for vote or member data, where siblings apply), so it stops short of full alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.