brazil-legislation-mcp-server
An MCP server that allows agents to search Brazilian federal legislation summaries, read consolidated or as-published texts by provision, and trace legislative amendments and changes affecting specific norms using data from the Senado Federal open-data catalog.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://brazil-legislation.caseyjhand.com/mcpWhat its tools do
6 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Availability 1 of 1 checks passed in 30 days
What you can do with it
- Search Brazilian federal legislation summaries and nicknames
- Read consolidated or as-published legal texts by article
- Trace acts that changed a specific federal norm
Source and maintenance
- Maintenance checked
Protocol and capabilities
- Server
- brazil-legislation-mcp-server 0.2.1
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 6 advertised
- Resources
- 1 advertised
- Resource templates
- 1 advertised
- Prompts
- 0 advertised
{
"tools": {
"listChanged": true
},
"logging": {},
"prompts": {
"listChanged": true
},
"resources": {
"subscribe": true,
"listChanged": true
},
"extensions": {
"io.modelcontextprotocol/skills": {
"directoryRead": true
}
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
6 advertised
brlaw_get_norm — Brlaw Get Norm
Get one federal norm by Senado ID, URN, citation or nickname. Inspect its ementa (official summary), Senado publications, subject indexing and change counts. Pass publication_id to brlaw_get_text for an exact edition, or request consolidated text to check for a Senado, Câmara or Planalto compilation.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"norm"
],
"properties": {
"norm": {
"type": "string",
"minLength": 1,
"description": "Senado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD."
},
"include_lexml": {
"type": "boolean",
"default": false,
"description": "Include exact-URN LexML metadata, the bill of origin and doctrine citations when available."
},
"lexml_doctrine_limit": {
"type": "integer",
"default": 10,
"maximum": 9007199254740991,
"description": "Maximum LexML doctrine rows on this page. Defaults to 10.",
"exclusiveMinimum": 0
},
"lexml_doctrine_offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset in the doctrine table. Continue with lexml.doctrine.next_offset."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"url": {
"type": "string",
"description": "Official norm record."
},
"urn": {
"type": "string",
"description": "LexML Uniform Resource Name."
},
"norm": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Normalized federal norm metadata and aliases.",
"additionalProperties": false
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_selector",
"upstream_rate_limited"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_selector`: A citation component is outside Senado’s accepted range. `upstream_rate_limited`: Senado limits requests for the norm record. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether the selector resolved to one federal norm."
},
"lexml": {
"type": "object",
"required": [
"status",
"urn",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "LexML record URL for the requested URN."
},
"urn": {
"type": "string",
"description": "URN looked up in LexML."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "One labeled field in the LexML record.",
"additionalProperties": false
},
"description": "Available LexML metadata fields in source order."
},
"reason": {
"type": "string",
"description": "Source failure reason when LexML metadata is unavailable."
},
"status": {
"enum": [
"available",
"not_found",
"unavailable"
],
"type": "string",
"description": "Whether LexML returned metadata for the exact URN."
},
"doctrine": {
"type": "object",
"required": [
"columns",
"rows",
"offset",
"total"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"values",
"links"
],
"properties": {
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the row."
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cell values in source order."
}
},
"description": "One work and its provision reference as listed by LexML.",
"additionalProperties": false
},
"description": "Doctrine entries on this page."
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total number of doctrine rows before paging."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based doctrine offset."
},
"columns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Portuguese doctrine table column labels."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Doctrine offset to request when more rows remain."
}
},
"description": "Paged Doutrina Referenciada table when the LexML record is available.",
"additionalProperties": false
},
"camara_url": {
"type": "string",
"description": "Link to Câmara dos Deputados when present in the record."
},
"bill_of_origin": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "Projeto de Origem entry when the record identifies a bill of origin.",
"additionalProperties": false
}
},
"description": "Exact-URN LexML metadata or an availability result.",
"additionalProperties": false
},
"parsed": {
"type": "object",
"required": [
"kind"
],
"properties": {
"id": {
"type": "string",
"description": "Digits from a direct Senado ID."
},
"urn": {
"type": "string",
"description": "Exact Brazilian LexML URN."
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Complete signature date parsed from the citation."
},
"kind": {
"enum": [
"id",
"urn",
"nickname",
"citation",
"invalid"
],
"type": "string",
"description": "Recognized selector form."
},
"type": {
"type": "string",
"description": "Senado type code parsed from a citation."
},
"years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"description": "Possible signature years parsed from a numbered citation."
},
"number": {
"type": "string",
"description": "Norm number parsed from a numbered citation."
},
"reason": {
"type": "string",
"description": "Parser reason when the selector is invalid."
},
"outside": {
"type": "boolean",
"description": "Whether a LexML URN falls outside the federal legislation base."
},
"reissue": {
"type": "string",
"description": "Reissue suffix of a provisional measure, such as 2 in MP 2.200-2."
},
"nickname": {
"type": "string",
"description": "Portuguese nickname parsed from the selector."
},
"sequence": {
"type": "string",
"description": "Sequence from an unnumbered citation when specified."
}
},
"description": "Components recognized in the supplied selector.",
"additionalProperties": false
},
"reason": {
"type": "string",
"description": "Reason for an unresolved selector or unavailable result."
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subject classes."
},
"catalogo": {
"type": "array",
"items": {
"type": "string"
},
"description": "Senado catalog descriptors."
},
"guidance": {
"type": "string",
"description": "How to refine or retry the lookup."
},
"indexacao": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subject indexing phrases."
},
"provision": {
"type": "string",
"description": "Provision parsed from the citation."
},
"truncated": {
"type": "boolean",
"description": "Whether more LexML doctrine rows follow. Present when the requested LexML record is available."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Summary of a federal norm or an STF ruling indexed by Senado.",
"additionalProperties": false
},
"description": "Possible matches when the selector is ambiguous."
},
"observacao": {
"type": "string",
"description": "Senado record note."
},
"publications": {
"type": "array",
"items": {
"type": "object",
"required": [
"publication_id",
"kind",
"description",
"has_text"
],
"properties": {
"date": {
"type": "string",
"description": "Publication date when reported."
},
"kind": {
"type": "string",
"description": "Senado publication kind from brlaw_list_reference."
},
"mime": {
"type": "string",
"description": "Media type of the recorded text file, when available."
},
"page": {
"type": "string",
"description": "Printed page when reported."
},
"column": {
"type": "string",
"description": "Printed column when reported."
},
"has_text": {
"type": "boolean",
"description": "Whether the publication record provides a text file."
},
"html_url": {
"type": "string",
"description": "Senado HTML text URL when available."
},
"language": {
"enum": [
"en",
"fr"
],
"type": "string",
"description": "English or French when the publication is identified as a translation."
},
"binary_id": {
"type": "string",
"description": "Identifier of the associated text file when recorded."
},
"publisher": {
"type": "string",
"description": "Publisher name when reported."
},
"description": {
"type": "string",
"description": "Publication label in the Senado record."
},
"official_url": {
"type": "string",
"description": "Recorded official publication URL when available."
},
"publication_id": {
"type": "string",
"description": "Senado publication ID for selecting this edition in brlaw_get_text."
},
"publisher_code": {
"type": "string",
"description": "Senado publisher code when reported."
},
"record_updated_at": {
"type": "string",
"description": "Date of the most recent recorded publication update."
}
},
"description": "One publication in the Senado record.",
"additionalProperties": false
},
"description": "Official publications including record and text IDs, source dates and URLs."
},
"metadata_only": {
"type": "boolean",
"description": "True for records outside the federal legislation base."
},
"text_versions": {
"type": "array",
"items": {
"type": "object",
"required": [
"publication_id",
"version",
"kind"
],
"properties": {
"kind": {
"type": "string",
"description": "Senado publication kind from brlaw_list_reference."
},
"version": {
"enum": [
"as_published",
"consolidated",
"translation",
"publication"
],
"type": "string",
"description": "Text version represented by this publication."
},
"language": {
"enum": [
"en",
"fr"
],
"type": "string",
"description": "English or French when the publication is identified as a translation."
},
"publication_id": {
"type": "string",
"description": "Senado publication ID for selecting this edition in brlaw_get_text."
}
},
"description": "One publication with an associated text file.",
"additionalProperties": false
},
"description": "Text-bearing Senado publications available by ID. Consolidated lookup can also check Planalto when a Câmara or Senado compilation is unavailable."
},
"changes_summary": {
"type": "array",
"items": {
"type": "object",
"required": [
"direction",
"kind",
"count"
],
"properties": {
"kind": {
"type": "string",
"description": "Portuguese relation label from Senado."
},
"count": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Number of recorded relations in this group.",
"exclusiveMinimum": 0
},
"newest": {
"type": "object",
"required": [
"id",
"name",
"date"
],
"properties": {
"id": {
"type": "string",
"description": "Senado norm ID of the newest related act."
},
"date": {
"type": "string",
"description": "Signature date of the related act."
},
"name": {
"type": "string",
"description": "Portuguese title of the related act."
}
},
"description": "Newest related act by signature date, when dates are available.",
"additionalProperties": false
},
"direction": {
"enum": [
"changed_by",
"changes"
],
"type": "string",
"description": "Whether the related act affects this norm or is affected by it."
}
},
"description": "Summary for one direction and relation kind.",
"additionalProperties": false
},
"description": "Count and newest related act for each direction and relation kind."
},
"record_updated_at": {
"type": "string",
"description": "Metadata update date. Later changes to the graph can postdate it."
},
"latest_related_act_date": {
"type": "string",
"description": "Newest signature date recorded among related acts."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true
}brlaw_get_text — Brlaw Get Text
Read consolidated or as-published federal legislation, including available translations. Select an exact publication ID from brlaw_get_norm. Text over 24,000 characters returns an outline: pass its section IDs back with the same edition, or select provisions by address. Inspect the served publication and dated amendment evidence.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"norm"
],
"properties": {
"norm": {
"type": "string",
"minLength": 1,
"description": "Senado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD."
},
"version": {
"enum": [
"consolidated",
"as_published"
],
"type": "string",
"description": "Text version. Defaults to consolidated. Omit when selecting a publication ID."
},
"articles": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"description": "Article or provision addresses in request order. The first 10 are processed."
},
"language": {
"enum": [
"pt",
"en",
"fr"
],
"type": "string",
"description": "Text language. Defaults to Portuguese or the language of the explicit publication."
},
"sections": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"description": "Section IDs from the outline for the same source version. Omit when selecting provisions."
},
"publication_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Exact publication ID returned by brlaw_get_norm for this norm."
},
"include_superseded": {
"type": "boolean",
"description": "Show struck Planalto text as historical markup. Defaults to false."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"url": {
"type": "string",
"description": "URL of the actual text read."
},
"kind": {
"enum": [
"whole",
"outline",
"selected",
"unavailable"
],
"type": "string",
"description": "Whole text, outline, selected provisions or sections, or an unavailable edition."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_selector",
"publication_language_conflict",
"upstream_rate_limited"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_selector`: A citation component is outside Senado’s accepted range. `publication_language_conflict`: The requested language differs from the explicit publication’s language. `upstream_rate_limited`: Senado limits requests during norm resolution. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether the selector resolved to one federal norm."
},
"lexml": {
"type": "object",
"required": [
"status",
"urn",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "LexML record URL for the requested URN."
},
"urn": {
"type": "string",
"description": "URN looked up in LexML."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "One labeled field in the LexML record.",
"additionalProperties": false
},
"description": "Available LexML metadata fields in source order."
},
"reason": {
"type": "string",
"description": "Source failure reason when LexML metadata is unavailable."
},
"status": {
"enum": [
"available",
"not_found",
"unavailable"
],
"type": "string",
"description": "Whether LexML returned metadata for the exact URN."
},
"doctrine": {
"type": "object",
"required": [
"columns",
"rows",
"offset",
"total"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"values",
"links"
],
"properties": {
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the row."
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cell values in source order."
}
},
"description": "One work and its provision reference as listed by LexML.",
"additionalProperties": false
},
"description": "Doctrine entries on this page."
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total number of doctrine rows before paging."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based doctrine offset."
},
"columns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Portuguese doctrine table column labels."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Doctrine offset to request when more rows remain."
}
},
"description": "Paged Doutrina Referenciada table when the LexML record is available.",
"additionalProperties": false
},
"camara_url": {
"type": "string",
"description": "Link to Câmara dos Deputados when present in the record."
},
"bill_of_origin": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "Projeto de Origem entry when the record identifies a bill of origin.",
"additionalProperties": false
}
},
"description": "Exact-URN LexML metadata or an availability result.",
"additionalProperties": false
},
"parsed": {
"type": "object",
"required": [
"kind"
],
"properties": {
"id": {
"type": "string",
"description": "Digits from a direct Senado ID."
},
"urn": {
"type": "string",
"description": "Exact Brazilian LexML URN."
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Complete signature date parsed from the citation."
},
"kind": {
"enum": [
"id",
"urn",
"nickname",
"citation",
"invalid"
],
"type": "string",
"description": "Recognized selector form."
},
"type": {
"type": "string",
"description": "Senado type code parsed from a citation."
},
"years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"description": "Possible signature years parsed from a numbered citation."
},
"number": {
"type": "string",
"description": "Norm number parsed from a numbered citation."
},
"reason": {
"type": "string",
"description": "Parser reason when the selector is invalid."
},
"outside": {
"type": "boolean",
"description": "Whether a LexML URN falls outside the federal legislation base."
},
"reissue": {
"type": "string",
"description": "Reissue suffix of a provisional measure, such as 2 in MP 2.200-2."
},
"nickname": {
"type": "string",
"description": "Portuguese nickname parsed from the selector."
},
"sequence": {
"type": "string",
"description": "Sequence from an unnumbered citation when specified."
}
},
"description": "Components recognized in the supplied selector.",
"additionalProperties": false
},
"reason": {
"type": "string",
"description": "Reason for an unresolved selector or unavailable result."
},
"source": {
"enum": [
"senado_compilation",
"camara_compilation",
"translation",
"as_published",
"planalto",
"publication"
],
"type": "string",
"description": "Publisher and kind of selected text."
},
"norm_id": {
"type": "string",
"description": "Resolved Senado ID."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Source, translation, and republication notices."
},
"guidance": {
"type": "string",
"description": "How to refine or retry the lookup."
},
"markdown": {
"type": "string",
"description": "Complete reformatted official text for a whole-document response."
},
"sections": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"heading",
"estimated_characters"
],
"properties": {
"id": {
"type": "string",
"description": "Section ID for the same edition in a follow-up request."
},
"heading": {
"type": "string",
"description": "Section heading or generated range label."
},
"articles": {
"type": "object",
"required": [
"first",
"last"
],
"properties": {
"last": {
"type": "string",
"description": "Last article address in this section."
},
"first": {
"type": "string",
"description": "First article address in this section."
}
},
"description": "Article range when the section contains recognized articles.",
"additionalProperties": false
},
"estimated_characters": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Length of the reformatted section in UTF-16 code units."
}
},
"description": "One available section of the served edition.",
"additionalProperties": false
},
"description": "Available section IDs, headings, article ranges and sizes."
},
"provision": {
"type": "string",
"description": "Provision parsed from the citation."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Summary of a federal norm or an STF ruling indexed by Senado.",
"additionalProperties": false
},
"description": "Possible matches when the selector is ambiguous."
},
"selections": {
"type": "array",
"items": {
"type": "object",
"required": [
"input",
"status"
],
"properties": {
"input": {
"type": "string",
"description": "Section ID or provision address from the request."
},
"reason": {
"type": "string",
"description": "Explanation of missing text or explicit revocation."
},
"status": {
"enum": [
"found",
"revoked",
"not_found",
"ambiguous"
],
"type": "string",
"description": "Outcome for this section or provision."
},
"address": {
"type": "string",
"description": "Resolved provision address when identified."
},
"markdown": {
"type": "string",
"description": "Official text reformatted as Markdown for a found provision or first occurrence of a section."
},
"candidates": {
"type": "array",
"items": {
"type": "string"
},
"description": "Qualified provision addresses to disambiguate the selection."
},
"revoking_act": {
"type": "object",
"required": [
"id",
"name",
"date"
],
"properties": {
"id": {
"type": "string",
"description": "Senado norm ID of the related act."
},
"date": {
"type": "string",
"description": "Recorded publication date, or signature date when publication date is absent."
},
"name": {
"type": "string",
"description": "Portuguese title of the related act."
}
},
"description": "Recorded act explicitly revoking the provision before or on the source date.",
"additionalProperties": false
},
"same_as_selection": {
"type": "integer",
"maximum": 9007199254740991,
"description": "One-based position in selections containing the Markdown for this repeated section ID.",
"exclusiveMinimum": 0
}
},
"description": "Outcome and evidence for one requested section or provision.",
"additionalProperties": false
},
"description": "Per-address or section result, text, and supporting evidence."
},
"observed_at": {
"type": "string",
"description": "Time this text was retrieved."
},
"source_date": {
"type": "string",
"description": "Date of the source used for comparison."
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"required": [
"publication_id",
"kind",
"language",
"has_text"
],
"properties": {
"kind": {
"type": "string",
"description": "Senado publication kind from brlaw_list_reference."
},
"has_text": {
"type": "boolean",
"description": "Whether the publication record provides a text file."
},
"html_url": {
"type": "string",
"description": "Senado HTML text URL when available."
},
"language": {
"enum": [
"pt",
"en",
"fr"
],
"type": "string",
"description": "Publication language."
},
"official_url": {
"type": "string",
"description": "Recorded official publication URL when available."
},
"publication_id": {
"type": "string",
"description": "Senado publication ID for a follow-up request."
}
},
"description": "One publication in the Senado record.",
"additionalProperties": false
},
"description": "Other official publications recorded by the Senado."
},
"metadata_only": {
"type": "boolean",
"description": "True for records outside the federal legislation base."
},
"publication_id": {
"type": "string",
"description": "Senado publication record identifier."
},
"served_version": {
"enum": [
"consolidated",
"as_published",
"publication"
],
"type": "string",
"description": "Actual text version, including any fallback."
},
"served_language": {
"enum": [
"pt",
"en",
"fr"
],
"type": "string",
"description": "Language of the official text."
},
"acts_after_source": {
"type": "object",
"required": [
"status"
],
"properties": {
"acts": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"date",
"date_basis",
"provisions"
],
"properties": {
"id": {
"type": "string",
"description": "Senado norm ID of the related act."
},
"date": {
"type": "string",
"description": "Recorded publication date, or signature date when publication date is absent."
},
"name": {
"type": "string",
"description": "Portuguese title of the related act."
},
"date_basis": {
"type": "string",
"description": "publication when a publication date is recorded, signature otherwise."
},
"provisions": {
"type": "array",
"items": {
"type": "object",
"required": [
"dispositivo",
"action"
],
"properties": {
"note": {
"type": "string",
"description": "Portuguese note on the action when recorded."
},
"action": {
"type": "string",
"description": "Exact Portuguese action label."
},
"dispositivo": {
"type": "string",
"description": "Original Portuguese provision address as recorded by Senado."
}
},
"description": "Recorded wording change to one provision.",
"additionalProperties": false
},
"description": "Wording changes recorded for this act."
}
},
"description": "One related act recorded after the served text date.",
"additionalProperties": false
},
"description": "Later wording changes when a source date can be compared."
},
"reason": {
"type": "string",
"description": "Why a date comparison is unavailable."
},
"status": {
"enum": [
"known",
"unknown"
],
"type": "string",
"description": "Whether the served text has a date that can be compared."
}
},
"description": "Later recorded wording changes, or the reason comparison is unavailable.",
"additionalProperties": false
},
"requested_version": {
"enum": [
"consolidated",
"as_published",
"publication"
],
"type": "string",
"description": "Requested text version. publication means an explicitly selected publication ID."
},
"source_date_basis": {
"enum": [
"official_publication",
"senado_publication_record",
"planalto_last_modified"
],
"type": "string",
"description": "Publisher metadata supporting source_date."
},
"remaining_articles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Unprocessed article selectors for another call."
},
"requested_language": {
"enum": [
"pt",
"en",
"fr"
],
"type": "string",
"description": "Requested language, including the default."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true
}brlaw_get_changes — Brlaw Get Changes
Trace acts affecting a federal norm or a selected provision, or earlier norms it changed. Group by act or provision, filter by dates, STF ruling class or Senado action, and continue with next_offset.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"norm"
],
"properties": {
"norm": {
"type": "string",
"minLength": 1,
"description": "Senado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD. For changed_by, optionally append a single provision such as Art. 55."
},
"view": {
"enum": [
"by_act",
"by_article"
],
"type": "string",
"default": "by_act",
"description": "by_act groups by related act. by_article groups by affected norm and provision."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Requested page size. Defaults to 25 and clamps to 200.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset. Pass next_offset to continue."
},
"actions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Portuguese item action labels from brlaw_list_reference, such as Revogação. Exact spelling wins, otherwise case and accents are ignored for unique matches."
},
"date_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive latest signature date in YYYY-MM-DD form."
},
"date_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive earliest signature date in YYYY-MM-DD form."
},
"direction": {
"enum": [
"changed_by",
"changes",
"both"
],
"type": "string",
"default": "changed_by",
"description": "changed_by for later acts affecting this norm, changes for earlier affected norms, or both."
},
"page_token": {
"type": "string",
"description": "Optional token from the previous page to verify that its result set is unchanged."
},
"act_classes": {
"type": "array",
"items": {
"enum": [
"stf_ruling",
"law",
"complementary_law",
"decree",
"decree_law",
"provisional_measure",
"veto_message",
"resolution",
"constitutional_amendment",
"legislative_decree",
"other",
"unclassified"
],
"type": "string"
},
"description": "Classes of related acts to include. Add unclassified to include acts without enough classification evidence. other covers known classes outside the listed categories."
},
"relation_kinds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Portuguese relation labels from brlaw_list_reference. Exact spelling wins, otherwise case and accents are ignored for unique matches."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"rows": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"direction",
"act_id",
"act_name",
"kind",
"act_class",
"items"
],
"properties": {
"kind": {
"type": "string",
"description": "Portuguese relation label from Senado."
},
"note": {
"type": "string",
"description": "Portuguese note on the relationship when recorded."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"address",
"senado_address",
"action",
"changes_text"
],
"properties": {
"note": {
"type": "string",
"description": "Portuguese note on this provision when recorded."
},
"action": {
"type": "string",
"description": "Exact Portuguese item action label."
},
"address": {
"type": "string",
"description": "Normalized provision address when recognized, otherwise the source address."
},
"changes_text": {
"type": "boolean",
"description": "Whether the recorded action changes wording."
},
"senado_address": {
"type": "string",
"description": "Original Portuguese provision address as recorded by Senado."
}
},
"description": "A relation affecting one provision.",
"additionalProperties": false
},
"description": "Provision actions, empty for a whole-norm relation."
},
"sigla": {
"type": "string",
"description": "Senado type code of the related act when available."
},
"act_id": {
"type": "string",
"description": "Senado norm ID of the related act."
},
"act_name": {
"type": "string",
"description": "Portuguese title of the related act."
},
"act_class": {
"enum": [
"stf_ruling",
"law",
"complementary_law",
"decree",
"decree_law",
"provisional_measure",
"veto_message",
"resolution",
"constitutional_amendment",
"legislative_decree",
"other",
"unclassified"
],
"type": "string",
"description": "Legislative or judicial class of the related act, or unclassified when evidence is insufficient."
},
"direction": {
"enum": [
"changed_by",
"changes"
],
"type": "string",
"description": "Whether this act affects the selected norm or is affected by it."
},
"date_signed": {
"type": "string",
"description": "Signature date when recorded."
},
"publication": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Senado publication ID when recorded."
},
"name": {
"type": "string",
"description": "Publication label when recorded."
},
"page": {
"type": "string",
"description": "Printed page when recorded."
},
"column": {
"type": "string",
"description": "Printed column when recorded."
},
"kind_code": {
"type": "string",
"description": "Senado publication kind when recorded."
},
"official_url": {
"type": "string",
"description": "Recorded official publication URL when available."
}
},
"description": "Publication metadata attached to the related act.",
"additionalProperties": false
},
"date_published": {
"type": "string",
"description": "Publication date when recorded."
},
"complementary_act": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Senado norm ID of the companion act."
},
"name": {
"type": "string",
"description": "Portuguese title of the companion act when recorded."
}
},
"description": "Companion act identified by the Senado relation.",
"additionalProperties": false
}
},
"description": "One related act and its recorded provision actions.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"norm_id",
"address",
"acts"
],
"properties": {
"acts": {
"type": "array",
"items": {
"type": "object",
"required": [
"direction",
"act_id",
"act_name",
"kind",
"act_class",
"items"
],
"properties": {
"kind": {
"type": "string",
"description": "Portuguese relation label from Senado."
},
"note": {
"type": "string",
"description": "Portuguese note on the relationship when recorded."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"address",
"senado_address",
"action",
"changes_text"
],
"properties": {
"note": {
"type": "string",
"description": "Portuguese note on this provision when recorded."
},
"action": {
"type": "string",
"description": "Exact Portuguese item action label."
},
"address": {
"type": "string",
"description": "Normalized provision address when recognized, otherwise the source address."
},
"changes_text": {
"type": "boolean",
"description": "Whether the recorded action changes wording."
},
"senado_address": {
"type": "string",
"description": "Original Portuguese provision address as recorded by Senado."
}
},
"description": "A relation affecting one provision.",
"additionalProperties": false
},
"description": "Provision actions, empty for a whole-norm relation."
},
"sigla": {
"type": "string",
"description": "Senado type code of the related act when available."
},
"act_id": {
"type": "string",
"description": "Senado norm ID of the related act."
},
"act_name": {
"type": "string",
"description": "Portuguese title of the related act."
},
"act_class": {
"enum": [
"stf_ruling",
"law",
"complementary_law",
"decree",
"decree_law",
"provisional_measure",
"veto_message",
"resolution",
"constitutional_amendment",
"legislative_decree",
"other",
"unclassified"
],
"type": "string",
"description": "Legislative or judicial class of the related act, or unclassified when evidence is insufficient."
},
"direction": {
"enum": [
"changed_by",
"changes"
],
"type": "string",
"description": "Whether this act affects the selected norm or is affected by it."
},
"date_signed": {
"type": "string",
"description": "Signature date when recorded."
},
"publication": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Senado publication ID when recorded."
},
"name": {
"type": "string",
"description": "Publication label when recorded."
},
"page": {
"type": "string",
"description": "Printed page when recorded."
},
"column": {
"type": "string",
"description": "Printed column when recorded."
},
"kind_code": {
"type": "string",
"description": "Senado publication kind when recorded."
},
"official_url": {
"type": "string",
"description": "Recorded official publication URL when available."
}
},
"description": "Publication metadata attached to the related act.",
"additionalProperties": false
},
"date_published": {
"type": "string",
"description": "Publication date when recorded."
},
"complementary_act": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Senado norm ID of the companion act."
},
"name": {
"type": "string",
"description": "Portuguese title of the companion act when recorded."
}
},
"description": "Companion act identified by the Senado relation.",
"additionalProperties": false
}
},
"description": "One related act and its recorded provision actions.",
"additionalProperties": false
},
"description": "Acts affecting this provision or whole norm."
},
"address": {
"type": [
"string",
"null"
],
"description": "Affected provision address, or null for a whole-norm relation."
},
"norm_id": {
"type": "string",
"description": "Senado ID of the affected norm."
}
},
"description": "Related acts grouped by affected norm and provision.",
"additionalProperties": false
}
],
"description": "One related act or one group of acts for an affected provision."
},
"description": "Paged relations grouped by act or provision."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_range",
"invalid_selector",
"invalid_change_direction",
"invalid_change_action",
"invalid_relation_kind",
"page_changed",
"upstream_rate_limited"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_range`: The start signature date follows the end date. `invalid_selector`: A citation component is outside Senado’s accepted range. `invalid_change_direction`: A provision is supplied for outgoing or bidirectional history. `invalid_change_action`: An item action label is unknown or has multiple case- or accent-insensitive matches. `invalid_relation_kind`: A relation label is unknown or has multiple case- or accent-insensitive matches. `page_changed`: The selected norm, filters or result set changed between pages. `upstream_rate_limited`: Senado limits requests for the norm or a related act. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether the selector resolved to one federal norm."
},
"lexml": {
"type": "object",
"required": [
"status",
"urn",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "LexML record URL for the requested URN."
},
"urn": {
"type": "string",
"description": "URN looked up in LexML."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "One labeled field in the LexML record.",
"additionalProperties": false
},
"description": "Available LexML metadata fields in source order."
},
"reason": {
"type": "string",
"description": "Source failure reason when LexML metadata is unavailable."
},
"status": {
"enum": [
"available",
"not_found",
"unavailable"
],
"type": "string",
"description": "Whether LexML returned metadata for the exact URN."
},
"doctrine": {
"type": "object",
"required": [
"columns",
"rows",
"offset",
"total"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"values",
"links"
],
"properties": {
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the row."
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cell values in source order."
}
},
"description": "One work and its provision reference as listed by LexML.",
"additionalProperties": false
},
"description": "Doctrine entries on this page."
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total number of doctrine rows before paging."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based doctrine offset."
},
"columns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Portuguese doctrine table column labels."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Doctrine offset to request when more rows remain."
}
},
"description": "Paged Doutrina Referenciada table when the LexML record is available.",
"additionalProperties": false
},
"camara_url": {
"type": "string",
"description": "Link to Câmara dos Deputados when present in the record."
},
"bill_of_origin": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "Projeto de Origem entry when the record identifies a bill of origin.",
"additionalProperties": false
}
},
"description": "Exact-URN LexML metadata or an availability result.",
"additionalProperties": false
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Effective maximum number of rows on this page.",
"exclusiveMinimum": 0
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total matching rows before paging."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset of this page."
},
"parsed": {
"type": "object",
"required": [
"kind"
],
"properties": {
"id": {
"type": "string",
"description": "Digits from a direct Senado ID."
},
"urn": {
"type": "string",
"description": "Exact Brazilian LexML URN."
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Complete signature date parsed from the citation."
},
"kind": {
"enum": [
"id",
"urn",
"nickname",
"citation",
"invalid"
],
"type": "string",
"description": "Recognized selector form."
},
"type": {
"type": "string",
"description": "Senado type code parsed from a citation."
},
"years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"description": "Possible signature years parsed from a numbered citation."
},
"number": {
"type": "string",
"description": "Norm number parsed from a numbered citation."
},
"reason": {
"type": "string",
"description": "Parser reason when the selector is invalid."
},
"outside": {
"type": "boolean",
"description": "Whether a LexML URN falls outside the federal legislation base."
},
"reissue": {
"type": "string",
"description": "Reissue suffix of a provisional measure, such as 2 in MP 2.200-2."
},
"nickname": {
"type": "string",
"description": "Portuguese nickname parsed from the selector."
},
"sequence": {
"type": "string",
"description": "Sequence from an unnumbered citation when specified."
}
},
"description": "Components recognized in the supplied selector.",
"additionalProperties": false
},
"reason": {
"type": "string",
"description": "Reason for an unresolved selector or unavailable result."
},
"filters": {
"type": "object",
"required": [
"direction",
"view"
],
"properties": {
"view": {
"enum": [
"by_act",
"by_article"
],
"type": "string",
"description": "Effective grouping of related acts."
},
"actions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Requested Portuguese action labels."
},
"date_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest requested signature date."
},
"date_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest requested signature date."
},
"direction": {
"enum": [
"changed_by",
"changes",
"both"
],
"type": "string",
"description": "Effective relationship direction."
},
"act_classes": {
"type": "array",
"items": {
"enum": [
"stf_ruling",
"law",
"complementary_law",
"decree",
"decree_law",
"provisional_measure",
"veto_message",
"resolution",
"constitutional_amendment",
"legislative_decree",
"other",
"unclassified"
],
"type": "string"
},
"description": "Requested classes of related acts."
},
"relation_kinds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Requested Portuguese relation labels."
}
},
"description": "Effective direction, view and selection filters.",
"additionalProperties": false
},
"norm_id": {
"type": "string",
"description": "Senado ID of the selected norm."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Page-size adjustments, source constraints or search guidance."
},
"guidance": {
"type": "string",
"description": "How to refine or retry the lookup."
},
"provision": {
"type": "string",
"description": "Canonical provision selected for incoming history."
},
"truncated": {
"type": "boolean",
"description": "Whether matching rows remain after this page."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Summary of a federal norm or an STF ruling indexed by Senado.",
"additionalProperties": false
},
"description": "Possible matches when the selector is ambiguous."
},
"page_token": {
"type": "string",
"description": "Result-set token for the next request."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page when more rows exist."
},
"metadata_only": {
"type": "boolean",
"description": "True for records outside the federal legislation base."
},
"unclassified_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Number of distinct related act IDs without enough classification evidence, after other filters and before the class filter."
},
"filter_may_exclude_unclassified": {
"type": "boolean",
"description": "Whether the requested class filter omits candidate acts whose actual class is unknown."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true
}brlaw_search_norms — Brlaw Search Norms
Search Portuguese ementas (official summaries) and apelidos (nicknames) across indexed Brazilian federal norms. Browse Senado live by omitting query and setting both signature year bounds to the same year or both dates within one year. On a temporary Senado failure, use the completed index when it covers that year. Use brlaw_lookup_citation for a specific citation and next_offset to continue a search.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"sort": {
"enum": [
"relevance",
"newest",
"oldest"
],
"type": "string",
"description": "Relevance defaults for text queries, newest otherwise."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Requested page size. Defaults to 25 and clamps to 200.",
"exclusiveMinimum": 0
},
"query": {
"type": "string",
"description": "Accent-insensitive Portuguese search in ementas and nicknames. Separate required words with spaces, use uppercase OR between alternatives, double quotes for adjacent words, word* for a prefix, and -word to exclude a word from its alternative. Each alternative requires at least one positive term."
},
"types": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"description": "Senado type codes from brlaw_list_reference, in any case. Family siglas such as LEI also select their subtypes. Citation abbreviations such as MP, LC, DL and EC read as MPV, LCP, DEL and EMC."
},
"ementa": {
"enum": [
"full",
"snippet"
],
"type": "string",
"description": "Return full ementas or excerpts of up to 32 words. When omitted, excerpt STF ruling headnotes and keep other ementas full."
},
"number": {
"type": "string",
"description": "Exact norm number, with optional Portuguese thousands separators."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset. Pass next_offset to continue."
},
"date_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest ISO signature date."
},
"year_to": {
"type": "integer",
"maximum": 9999,
"minimum": 1000,
"description": "Last signature year, inclusive."
},
"date_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest ISO signature date. Omit year bounds when using dates."
},
"year_from": {
"type": "integer",
"maximum": 9999,
"minimum": 1000,
"description": "First signature year, inclusive."
},
"page_token": {
"type": "string",
"description": "Optional token from the previous page to verify that its result set is unchanged."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"rows",
"filters",
"source",
"total",
"offset",
"limit",
"truncated",
"notices"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Summary of a federal norm or an STF ruling indexed by Senado.",
"additionalProperties": false
},
"description": "Federal norm summaries in the requested order. Ementas may contain excerpts with an ellipsis at each shortened end."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_range",
"invalid_sort",
"invalid_query",
"invalid_number",
"invalid_type",
"invalid_selector",
"page_changed",
"index_unavailable",
"upstream_rate_limited"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_range`: Date and year bounds overlap or a range is reversed. `invalid_sort`: Relevance sorting is requested without search text. `invalid_query`: The search expression has malformed operators or exceeds the index expression limit. `invalid_number`: The norm number contains unsupported characters. `invalid_type`: A requested type is neither a Senado type code nor a known abbreviation. `invalid_selector`: A live listing year is outside Senado’s accepted range. `page_changed`: The search filters or result set differ from the previous page. `index_unavailable`: The local search index is unavailable. `upstream_rate_limited`: Senado limits requests during a live listing. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Effective maximum number of rows on this page.",
"exclusiveMinimum": 0
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total matching rows before paging."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset of this page."
},
"source": {
"enum": [
"senado",
"mirror"
],
"type": "string",
"description": "Source used for this page."
},
"filters": {
"type": "object",
"required": [
"sort"
],
"properties": {
"sort": {
"enum": [
"relevance",
"newest",
"oldest"
],
"type": "string",
"description": "Effective search ordering."
},
"query": {
"type": "string",
"description": "Portuguese search terms when supplied."
},
"types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Type codes supplied for the search."
},
"number": {
"type": "string",
"description": "Requested norm number as digits."
},
"date_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest requested signature date."
},
"year_to": {
"type": "integer",
"maximum": 9999,
"minimum": 1000,
"description": "Latest requested signature year."
},
"date_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest requested signature date."
},
"year_from": {
"type": "integer",
"maximum": 9999,
"minimum": 1000,
"description": "Earliest requested signature year."
},
"expanded_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Effective type codes after expanding the requested families."
}
},
"description": "Effective filters and ordering for the current search.",
"additionalProperties": false
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Page-size adjustments, source constraints or search guidance."
},
"coverage": {
"type": "object",
"required": [
"observed_stf_years",
"ready",
"status",
"verified_floor"
],
"properties": {
"ready": {
"type": "boolean",
"description": "Whether the index can answer searches."
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Number of indexed norms if the index is readable."
},
"status": {
"enum": [
"pending",
"in_progress",
"complete",
"error",
"unavailable"
],
"type": "string",
"description": "Current condition of the local index."
},
"last_refresh": {
"type": "string",
"description": "Time of the latest completed refresh, when available."
},
"verified_floor": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Earliest signature year verified in the Senado sweep."
},
"indexed_year_to": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Latest indexed signature year when the index contains records."
},
"indexed_year_from": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Earliest indexed signature year when the index contains records."
},
"observed_stf_years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"description": "Indexed signature years in which STF rulings were observed."
},
"last_complete_sweep": {
"type": "string",
"description": "Time of the last complete index sweep, when one has completed."
}
},
"description": "Index coverage when the search uses the local index.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "Whether matching rows remain after this page."
},
"page_token": {
"type": "string",
"description": "Result-set token for the next request."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page when more rows exist."
},
"observed_at": {
"type": "string",
"description": "When the live year list was observed."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true
}brlaw_lookup_citation — Brlaw Lookup Citation
Resolve Portuguese legal citations, nicknames and LexML URNs in input order. Indexed summaries include coverage. Use the returned Senado ID and provision with brlaw_get_text. A non-federal URN can return LexML metadata only.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"citations"
],
"properties": {
"citations": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "Citation strings such as Lei 13.709/2018, art. 7º, I or ADI 6587. Resolves the first 25 and lists any remaining inputs."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"results",
"unprocessed"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Machine-readable failure mode."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"found",
"input",
"status"
],
"properties": {
"norm": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Federal norm when the citation resolves uniquely.",
"additionalProperties": false
},
"found": {
"type": "boolean",
"description": "Whether the selector resolved to one federal norm."
},
"input": {
"type": "string",
"description": "Original citation as submitted."
},
"lexml": {
"type": "object",
"required": [
"status",
"urn",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "LexML record URL for the requested URN."
},
"urn": {
"type": "string",
"description": "URN looked up in LexML."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "One labeled field in the LexML record.",
"additionalProperties": false
},
"description": "Available LexML metadata fields in source order."
},
"reason": {
"type": "string",
"description": "Source failure reason when LexML metadata is unavailable."
},
"status": {
"enum": [
"available",
"not_found",
"unavailable"
],
"type": "string",
"description": "Whether LexML returned metadata for the exact URN."
},
"doctrine": {
"type": "object",
"description": "Paged LexML doctrine table with columns, rows, total, offset and next_offset.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"camara_url": {
"type": "string",
"description": "Link to Câmara dos Deputados when present in the record."
},
"bill_of_origin": {
"type": "object",
"required": [
"label",
"value",
"links"
],
"properties": {
"label": {
"type": "string",
"description": "Portuguese field label from the LexML record."
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Source link URL."
},
"label": {
"type": "string",
"description": "Link text as published by the source."
}
},
"description": "Labeled source link.",
"additionalProperties": false
},
"description": "Links associated with the field."
},
"value": {
"type": "string",
"description": "Field value as displayed in the LexML record."
}
},
"description": "Projeto de Origem entry when the record identifies a bill of origin.",
"additionalProperties": false
}
},
"description": "Exact-URN LexML metadata or an availability result.",
"additionalProperties": false
},
"parsed": {
"type": "object",
"required": [
"kind"
],
"properties": {
"id": {
"type": "string",
"description": "Digits from a direct Senado ID."
},
"urn": {
"type": "string",
"description": "Exact Brazilian LexML URN."
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Complete signature date parsed from the citation."
},
"kind": {
"enum": [
"id",
"urn",
"nickname",
"citation",
"invalid"
],
"type": "string",
"description": "Recognized selector form."
},
"type": {
"type": "string",
"description": "Senado type code parsed from a citation."
},
"years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"description": "Possible signature years parsed from a numbered citation."
},
"number": {
"type": "string",
"description": "Norm number parsed from a numbered citation."
},
"reason": {
"type": "string",
"description": "Parser reason when the selector is invalid."
},
"outside": {
"type": "boolean",
"description": "Whether a LexML URN falls outside the federal legislation base."
},
"reissue": {
"type": "string",
"description": "Reissue suffix of a provisional measure, such as 2 in MP 2.200-2."
},
"nickname": {
"type": "string",
"description": "Portuguese nickname parsed from the selector."
},
"sequence": {
"type": "string",
"description": "Sequence from an unnumbered citation when specified."
}
},
"description": "Components recognized in the supplied selector.",
"additionalProperties": false
},
"reason": {
"type": "string",
"description": "Reason for an unresolved selector or unavailable result."
},
"source": {
"type": "string",
"const": "index",
"description": "The completed local index supplied this match or candidate list."
},
"status": {
"enum": [
"found",
"ambiguous",
"not_found",
"outside_base",
"unavailable"
],
"type": "string",
"description": "Resolution outcome for this citation."
},
"coverage": {
"type": "object",
"required": [
"last_complete_sweep"
],
"properties": {
"last_refresh": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the most recent completed index sync finished."
},
"indexed_year_to": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Latest indexed signature year in this snapshot."
},
"indexed_year_from": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Earliest indexed signature year in this snapshot."
},
"last_complete_sweep": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the index last completed a historical sweep."
}
},
"description": "Coverage of the same index snapshot that supplied the results.",
"additionalProperties": false
},
"guidance": {
"type": "string",
"description": "How to refine or retry the lookup."
},
"provision": {
"type": "string",
"description": "Provision parsed from the citation."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type_name",
"date_signed",
"name",
"nicknames",
"stf_ruling"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Senado norm ID for retrieving the record, text or changes."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Portuguese title in the Senado record."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Senado type code, when recorded."
},
"ementa": {
"type": "string",
"description": "Official Portuguese summary, when available."
},
"number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Norm number as digits, absent for unnumbered acts."
},
"sequence": {
"type": "string",
"pattern": "^\\d+$",
"description": "Sequence distinguishing same-date acts, when recorded."
},
"nicknames": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Portuguese apelidos recorded for the norm."
},
"type_name": {
"type": "string",
"minLength": 1,
"description": "Portuguese name of the norm type."
},
"stf_ruling": {
"type": "boolean",
"description": "Whether Senado identifies the record as an STF ruling."
},
"date_signed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Signature date in YYYY-MM-DD form."
}
},
"description": "Summary of a federal norm or an STF ruling indexed by Senado.",
"additionalProperties": false
},
"description": "Possible matches when the selector is ambiguous."
},
"metadata_only": {
"type": "boolean",
"description": "True for records outside the federal legislation base."
}
},
"description": "Resolution of one input citation.",
"additionalProperties": false
},
"description": "Per-input resolution status, parsed components, norm summary, or recovery details."
},
"unprocessed": {
"type": "array",
"items": {
"type": "string"
},
"description": "Inputs after the first 25, preserved for a follow-up call."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true
}brlaw_list_reference — Brlaw List Reference
Look up Senado type codes, publication kinds, relation labels and item actions, or inspect citation syntax and index coverage. Choose a vocabulary topic to browse or filter by query. ADC denotes Ato Declaratório in type filters and ADCon denotes the STF ruling.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Requested page size. Defaults to 25 and clamps to 200.",
"exclusiveMinimum": 0
},
"query": {
"type": "string",
"description": "Nonblank literal substring of a vocabulary label, abbreviation or code, ignoring case and accents. Use with types, publications, relations or actions."
},
"topic": {
"enum": [
"overview",
"types",
"publications",
"relations",
"actions"
],
"type": "string",
"default": "overview",
"description": "overview gives coverage and syntax. types, publications, relations and actions list their respective Senado vocabularies."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset. Pass next_offset to continue."
},
"page_token": {
"type": "string",
"description": "Optional token from the previous page to verify that its result set is unchanged."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"topic",
"snapshot",
"rows",
"total",
"offset",
"limit",
"truncated",
"notices"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"iri",
"instantiable"
],
"properties": {
"iri": {
"type": "string",
"description": "Vocabulary IRI published by Senado."
},
"code": {
"type": "string",
"description": "Senado vocabulary code."
},
"label": {
"type": "string",
"description": "Official Portuguese vocabulary label."
},
"sigla": {
"type": "string",
"description": "Senado abbreviation when present."
},
"version": {
"enum": [
"as_published",
"consolidated",
"translation",
"publication"
],
"type": "string",
"description": "For publications, the kind of text the publication represents."
},
"parent_code": {
"type": "string",
"description": "Code of the parent entry when present."
},
"changes_text": {
"type": "boolean",
"description": "For actions, whether the action is evidence of a wording change."
},
"instantiable": {
"type": "boolean",
"description": "Whether records can use the code directly."
}
},
"description": "One Senado vocabulary entry.",
"additionalProperties": false
},
"description": "Vocabulary entries for the selected topic."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_reference_query",
"page_changed"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_reference_query`: A query is blank or used with the overview topic. `page_changed`: The topic, query or vocabulary snapshot changed between pages. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Effective maximum number of rows on this page.",
"exclusiveMinimum": 0
},
"topic": {
"enum": [
"overview",
"types",
"publications",
"relations",
"actions"
],
"type": "string",
"description": "Selected reference topic."
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total matching rows before paging."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset of this page."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Page-size adjustments, source constraints or search guidance."
},
"overview": {
"type": "object",
"required": [
"scope",
"coverage",
"types",
"publications",
"relations",
"actions",
"text_changing_actions",
"type_note",
"citations",
"urns",
"provisions",
"sources",
"text_notice"
],
"properties": {
"urns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Examples of exact LexML URNs."
},
"scope": {
"type": "string",
"description": "Coverage of the federal norm base and exact-URN LexML lookups."
},
"types": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of norm types."
},
"actions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of provision actions."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Official source URL."
},
"name": {
"type": "string",
"description": "Official data provider or publisher."
}
},
"description": "One official source.",
"additionalProperties": false
},
"description": "Official source credits."
},
"coverage": {
"type": "object",
"required": [
"observed_stf_years",
"ready",
"status",
"verified_floor"
],
"properties": {
"ready": {
"type": "boolean",
"description": "Whether the index can answer searches."
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Number of indexed norms if the index is readable."
},
"status": {
"enum": [
"pending",
"in_progress",
"complete",
"error",
"unavailable"
],
"type": "string",
"description": "Current condition of the local index."
},
"last_refresh": {
"type": "string",
"description": "Time of the latest completed refresh, when available."
},
"verified_floor": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Earliest signature year verified in the Senado sweep."
},
"indexed_year_to": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Latest indexed signature year when the index contains records."
},
"indexed_year_from": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Earliest indexed signature year when the index contains records."
},
"observed_stf_years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"description": "Indexed signature years in which STF rulings were observed."
},
"last_complete_sweep": {
"type": "string",
"description": "Time of the last complete index sweep, when one has completed."
}
},
"description": "Coverage and readiness of the local federal legislation index.",
"additionalProperties": false
},
"citations": {
"type": "array",
"items": {
"type": "string"
},
"description": "Examples of accepted Portuguese citations."
},
"relations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of relation kinds."
},
"type_note": {
"type": "string",
"description": "How to distinguish codes with duplicate or absent siglas."
},
"provisions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Examples of accepted provision addresses."
},
"text_notice": {
"type": "string",
"description": "Authority of the official publication over reformatted text."
},
"publications": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of publication kinds."
},
"text_changing_actions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Portuguese action labels identifying wording changes."
}
},
"description": "Source scope, citation and provision syntax, source credits, vocabulary sizes and live mirror state.",
"additionalProperties": false
},
"snapshot": {
"type": "object",
"required": [
"source",
"observed_at"
],
"properties": {
"source": {
"enum": [
"bundle",
"live"
],
"type": "string",
"description": "Whether the vocabulary was bundled or refreshed from Senado."
},
"observed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Time when the vocabulary was observed."
}
},
"description": "Provenance of this vocabulary snapshot.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "Whether matching rows remain after this page."
},
"page_token": {
"type": "string",
"description": "Result-set token for the next request."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page when more rows exist."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true
}Prompts
0 advertised
Resources
1 advertised
brazil-legislation-guide
Use with brlaw_* when identifying an ambiguous Brazilian legal citation, choosing text to quote, checking wording on a date, or tracing amendments to a provision.
skill://brazil-legislation-guide/SKILL.mdio.modelcontextprotocol/skills
skill://{+path}90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-12-02: 4 of 4 checks answered
- 2026-12-03: 4 of 4 checks answered
- 2026-12-04: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 1 of 1 (100%)
- Average latency
- 945 ms
- 95th percentile latency
- 945 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 945 ms · metadata changed · 6 tool(s), 1 resource(s), 1 resource template(s), 0 prompt(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http brazil-legislation-mcp-server https://brazil-legislation.caseyjhand.com/mcpCodex
codex mcp add brazil-legislation-mcp-server --url https://brazil-legislation.caseyjhand.com/mcpCursor
{
"mcpServers": {
"brazil-legislation-mcp-server": {
"url": "https://brazil-legislation.caseyjhand.com/mcp"
}
}
}Cline
{
"mcpServers": {
"brazil-legislation-mcp-server": {
"type": "streamableHttp",
"url": "https://brazil-legislation.caseyjhand.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"brazil-legislation-mcp-server": {
"type": "http",
"url": "https://brazil-legislation.caseyjhand.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http brazil-legislation-mcp-server https://brazil-legislation.caseyjhand.com/mcpClaude Desktop
https://brazil-legislation.caseyjhand.com/mcpWindsurf
{
"mcpServers": {
"brazil-legislation-mcp-server": {
"serverUrl": "https://brazil-legislation.caseyjhand.com/mcp"
}
}
}Let your agent find its tools
Find servers like brazil-legislation-mcp-server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.