Mexico Law

v0.1.0
io.github.pipeworx-io/mexico-law Checked 1 day ago Published 1 day ago

Mexico law -- federal laws and codes as published by the Chamber of Deputies (the in-force 'Leyes…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mx_law_get

Fetch one Mexican federal law or code by law_id (from mx_law_search, e.g. "lfpdppp", "cpeum" for the Constitution) or by exact name. Returns the name, which list it is on (vigente or abrogada, as the publisher lists it), original DOF publication date, last reform or abrogation date, any note the list carries, the reform decrees with their DOF dates, and the text. Pass article (e.g. "7" or "7 Bis") for one article, with any Se deroga marker the text carries; otherwise text is capped at max_chars. The text is read from the publisher's PDF, so tables are flattened.

ParameterTypeDescription
articlestringArticle number, e.g. "7" or "7 Bis"
law_idstringLaw id from mx_law_search, e.g. "lfpdppp"
max_charsnumberCap on text when no article is given (default 12000, max 60000)
namestringExact law name, in place of law_id