How to Use Cámara de Diputados law articles in opencode
Fetch article text from a consolidated Mexican federal law or regulation, including inline amendment notes. Use it to quote a provision and inspect its recorded changes.
Prompts to try with Cámara de Diputados law articles in opencode
Copy an example into opencode, or ask in your own words.
Use Cámara de Diputados law articles to retrieve article 1o.-A of LIVA and compare its wording with the quotation in our tax documentation. Propose corrections with the source link.
Use Cámara de Diputados law articles to retrieve article 76 of the Ley Federal del Trabajo. Check the Spanish quotation in our employee handbook source file and propose an edit if it differs.
Use Cámara de Diputados law articles to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Cámara de Diputados law articles and tell me what changed since last week.
Check Cámara de Diputados law articles and summarize what you find in three bullet points.
How to set up Cámara de Diputados law articles in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Cámara de Diputados law articles
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "diputados-gob-mx/legislation/law_articles", "input": { "code": "<code>" } }'
Then paste one of the prompts above: opencode finds Cámara de Diputados law articles on Spiral, shows the price and runs it.
Cámara de Diputados law articles providers and prices
Spiral runs Cámara de Diputados law articles through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 50 | 10 | Articles per page when |
Every API field of Cámara de Diputados LeyesBiblio · Law articles is on its tool page: open its card above.
What can you do with Cámara de Diputados law articles in opencode?
Build a cited reference for Mexican federal laws used in your project's documentation. A coding agent can connect catalog entries, article wording, reform decrees, or recorded updates to the passages that need review.
Prepare a tax law review
Find the VAT and income tax laws, collect relevant articles, trace their reform decrees, and check update entries before preparing questions for a tax adviser.
Review an employee handbook
Locate the Ley Federal del Trabajo, retrieve provisions cited in the handbook, and use reform history and update summaries to identify sections for legal review.
Research an import procedure
Locate the Ley Aduanera and its regulation, collect cited provisions, and check reform decrees and update summaries for changes relevant to an import procedure.
Maintain a consumer policy reference
Find the Ley Federal de Protección al Consumidor, assemble article citations for policy review, and check its reform history and recorded updates for changes.
Check citations in a legal research draft
Resolve abbreviated law names against the catalog, retrieve the cited article wording, and locate reform decrees supporting statements about amendments.
More on Cámara de Diputados law articles and opencode
Overview
Cámara de Diputados law articles in other agents
Questions about Cámara de Diputados law articles in opencode
Can opencode use Cámara de Diputados law articles?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Cámara de Diputados law articles like any built-in tool.
How much does Cámara de Diputados law articles cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Cámara de Diputados law articles in opencode?
No. Spiral runs Cámara de Diputados law articles on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Cámara de Diputados law articles in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Cámara de Diputados law articles runs?
Cámara de Diputados law articles runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does this cover Mexican state and municipal laws?
The documented coverage is Mexican federal legislation. The law catalog and separate regulations catalog should not be treated as a nationwide collection of state and municipal rules.
Are laws and regulations listed together?
LeyesBiblio maintains separate catalogs for federal laws and regulations of federal laws in force. The regulations catalog provides DOF publication information and current texts in PDF and Word.
Can a reform appear before the consolidated text is updated?
Yes. When checked, the income tax law page listed a November 13, 2026 reform while marking its current text as 'En actualización'.
Is a reform's publication date its effective date?
Those dates can differ. The income tax reform published November 13, 2026 says it enters into force January 1, 2027 in its transitory provision.
How far back can the source documents go?
History depends on the law. The VAT law documents identify its original publication on December 29, 1978; its reform page displayed November 12, 2021 as the latest reform when checked.
Start using Cámara de Diputados law articles in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


