Saltar al contenido
Notificado

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
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. manage_resource({resource:"cases", action:"caseList", params:{orgId:"<orgId>", q:"<radicado>"}})
   → cases[] with id, radicado, juzgado, cliente
   q finds the radicado with or without dashes or spaces; open cases only.
   One row? That is case.id.
   Empty? Try once more with archived:true in params: that lists ARCHIVED cases only, still the
   firm's.
   Still empty? 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. manage_resource({resource:"cases", action:"getCase", params:{orgId:"<orgId>", caseId:"<case.id>"}})
   → the case with its parties, and locked (true once a notification of it left draft)
   skip if you only needed the id

Done when you hold case.id, or you told the lawyer the radicado is not registered.

Tips
- Never page through caseList to compare radicados yourself: q does it in one call.
- The 23 digits encode court and year; two open cases in one firm never share a radicado
  (createCase refuses X_CASE_RADICADO_TAKEN).
- The same radicado in the archived list and the open one? The open case corrects the archived
  one (docs://recipes/correct-a-case): use the open case.
- q also matches a cliente, juzgado or party name when the lawyer has no radicado at hand.

Todas las recetas · Conectar un asistente