Corpus Iuris · OpenAPI Overlay 1.0.0

Corpus Iuris Agent API — API Evangelist overlay

5 actions 5 updates documentation extends ../openapi/_original/corpusiuris-mx-openapi.yml
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.
View Overlay File View on GitHub Overlay Specification

What the actions change

tagsx-mcp-toolx-quota-notex-cachingx-attribution

Targets 5

$
$.paths['/api/agent/v1/search'].get
$.paths['/api/agent/v1/documento'].get
$.paths['/api/agent/v1/stats'].get
$.info

OpenAPI Overlay

Raw ↑
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.

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/corpusiuris-mx-openapi-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

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.

A second provider on the same verified email joins the account you already have.