Receta para agentes
Buscar un proceso por radicado
Encontrar un proceso a partir de su radicado de 23 dígitos.
Esta es la receta que el servidor MCP entrega a los asistentes de IA, tal cual. Está en inglés porque los modelos la siguen mejor así; el asistente le responde en su idioma.
Un asistente la lee con docs({uri:"docs://recipes/find-a-case-by-radicado"})
docs://recipes/find-a-case-by-radicado — find the firm's case from its 23-digit radicado
Use when the lawyer names a proceso by its radicado (Código Único de Radicación) and you need the
case id for anything else. "Radicado" here is always the 23-digit court number printed on the
autos — never the product name (the product is Notificado).
1. Normalise what you were given: keep the digits only. Exactly 23 digits? Continue.
Fewer or more? Stop and ask the lawyer to read it again from the auto — do not pad or trim.
2. whoami({})
→ orgId
skip if you already hold orgId
3. caseList({orgId:"<orgId>", limit:200})
→ cases[] with id, radicado, juzgado, cliente
Compare radicado digits-only against step 1. One match? That is case.id.
No match? The firm has not registered it — offer docs://recipes/send-an-article-8-notification
step 3 (createCase), with the lawyer's details. Never create a case without being asked.
4. caseDetail({orgId:"<orgId>", caseId:"<case.id>"})
→ the case with its parties
skip if you only needed the id
Done when you hold case.id, or you told the lawyer the radicado is not registered.
Tips
- The 23 digits encode court and year; two cases in one firm never share a radicado
(createCase refuses X_CASE_RADICADO_TAKEN).
- The list is newest first and capped at 200; a firm with more cases than that should give you
the juzgado or cliente as well — ask.