Generated by API Evangelist
Written by API Evangelist tooling for Corpus Iuris's API. It is a proposal applied on top of the contract, not a document Corpus Iuris publishes.
overlay: 1.0.0
info:
title: Corpus Iuris Agent API — API Evangelist overlay
version: 1.0.0
extends: ../openapi/_original/corpusiuris-mx-openapi.yml
x-provenance:
generated: '2026-11-04'
method: generated
source: openapi/corpusiuris-mx-openapi.yml plus https://corpusiuris.mx/agentes and https://corpusiuris.mx/llms.txt (MCP tool name, quotas, no-cache
guidance).
actions:
- target: $
description: Add tag definitions grouping the agent API operations.
update:
tags:
- name: Search
description: Hybrid (semantic + lexical) search across Mexican laws, SCJN tesis and precedents.
- name: Documents
description: Full text of a law article, tesis or precedent by documento_id.
- name: Corpus
description: Live corpus counts.
- target: $.paths['/api/agent/v1/search'].get
description: Tag the search operation and bind it to the documented MCP tool.
update:
tags:
- Search
x-mcp-tool:
name: buscar_derecho_mexicano
server: https://api.corpusiuris.mx/mcp
evidence: https://corpusiuris.mx/agentes
- target: $.paths['/api/agent/v1/documento'].get
description: Tag the full-text operation and record its separate quota as documented on /agentes.
update:
tags:
- Documents
x-quota-note: Own quota of 200 documents per IP per day, 1000 with a personal token; does not consume search quota (per https://corpusiuris.mx/agentes).
- target: $.paths['/api/agent/v1/stats'].get
description: Tag the stats operation.
update:
tags:
- Corpus
- target: $.info
description: Record provider guidance on caching and attribution.
update:
x-caching: Responses are served with Cache-Control no-store; the provider asks agents not to cache results because the corpus changes daily.
x-attribution: Cite "Corpus Iuris (corpusiuris.mx)" and include the url of each result used.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.