Skip to main content
Glama

Legal MCP (alternativa ao Jusbrasil)

djen_search_comunicacoes

Read-onlyIdempotent

Busca publicações/intimações no Diário de Justiça Eletrônico Nacional (DJEN) por OAB, nome de advogado, número de processo, tribunal e data. Cada item traz o texto completo da comunicação. (É o Diário de Justiça — não é base de jurisprudência/ementas, nem cadastro de processos: só tem o que foi PUBLICADO, a partir de 2020 e com cada tribunal entrando numa data própria.) Resultado vazio NÃO devolve só count: 0: vem um bloco ausencia com o motivo provável (numero_invalido | fora_da_cobertura | sem_publicacao) — leia antes de concluir que o processo não existe, e confirme no datajud_get_processo, que é o índice histórico.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "djen_search_comunicacoes"
  }
}

Input Schema

NameRequiredDescriptionDefault
meioNo
textoNo
paginaNo
uf_oabNo
data_fimNo
nome_parteNo
numero_oabNo
data_inicioNo
force_refreshNo
nome_advogadoNo
sigla_tribunalNo
numero_processoNo
itens_por_paginaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / force_refresh
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations (which only declare readOnly/idempotent/non-destructive/closed-world) by disclosing return content (full text per item), temporal coverage limits (2020 onward, per-tribunal start dates), and the non-obvious empty-result contract (`ausencia` block with reason codes numero_invalido | fora_da_cobertura | sem_publicacao). This is exactly the kind of behavior an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose in sentence one, then the coverage caveat and the empty-result warning in compact parenthetical/continuation form. Dense but no wasted sentences; the parenthetical is long, though its content is high-value rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter search tool with no output schema and no schema descriptions, it covers purpose, exclusions, coverage windows, empty-result semantics, and cross-tool verification. Remaining gaps are pagination/refresh behavior and the semantics of the free-text filter parameters, which an agent would still have to guess.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 13 parameters, so the description carries the burden; it names the main filter dimensions (OAB/UF, advogado, processo, tribunal, datas), which partially compensates. However it never explains `texto`, `meio`, `nome_parte`, `force_refresh`, `pagina`/`itens_por_pagina`, nor expected formats for the date or OAB fields, leaving half the parameters undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb ("Busca") and resource ("publicações/intimações no Diário de Justiça Eletrônico Nacional (DJEN)") plus the filter facets available (OAB, advogado, processo, tribunal, data). It also explicitly distinguishes itself from two adjacent resource types (jurisprudence/ementas and process registry), so an agent can tell what this tool is and is not without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when not to use it (not a jurisprudence database, not a process registry) and when its results are inconclusive, with a direct instruction to corroborate in `datajud_get_processo` as the historical index. That is a concrete alternative + condition pair rather than vague implied usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.