Skip to main content
Glama

Legal MCP (alternativa ao Jusbrasil)

djen_processos_por_advogado

Read-onlyIdempotent

Processos de um ADVOGADO no Diário de Justiça Eletrônico Nacional (DJEN), por OAB (numero_oab + uf_oab) ou por nome_advogado, agrupados por número, com a última publicação de cada um. Aceita lista de interesse: filtro_numeros_processo (só esses processos) e/ou filtro_oabs (só publicações em que algum advogado tem uma dessas OABs). O que não casa sai do resultado e é contado em descartados (com o motivo). Com filtro_numeros_processo de até 25 números, cada um é procurado direto (número + advogado), exato mesmo em OAB com milhares de publicações; lista maior varre as páginas e procura direto o que sobrou. sem_publicacao_no_periodo só traz número CONFIRMADO sem publicação; o que não deu para conferir vem em nao_verificados (status nao_verificado, motivo varredura_incompleta ou consulta_indisponivel) e NÃO deve ser lido como sem publicação. verificacao resume as contagens. Por nome, só ficam publicações com um advogado de nome IGUAL (sem acento/caixa) e desambiguacao diz quantas OABs diferentes responderam por esse nome; com uf_oab junto, só as do advogado daquela UF. Homônimo de PARTE não é separado aqui: para isso, djen_ranquear_parte. Cobre só o que foi PUBLICADO no Diário (a partir de 2020, cada tribunal com data própria); para o andamento atual dos processos devolvidos, use datajud_acompanhar_processos com os números. varredura diz quantas publicações foram lidas e se falta página.

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_processos_por_advogado"
  }
}

Input Schema

NameRequiredDescriptionDefault
paginaNo
uf_oabNo
data_fimNo
numero_oabNo
data_inicioNo
filtro_oabsNo
max_paginasNo
force_refreshNo
nome_advogadoNo
sigla_tribunalNo
filtro_numeros_processoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety needs no restating. The description goes well beyond them, disclosing that non-matching items are dropped and counted in `descartados` with a reason, that `nao_verificados` must NOT be read as no-publication, that name matching is exact ignoring accents/case, and that coverage is limited to what was published from 2020 onward per court. The remaining gap is that pagination and refresh behavior (pagina, max_paginas, force_refresh) are only hinted at via `varredura` saying whether pages are missing.

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?

The purpose and identity are front-loaded in the first clause, followed by filters, then caveats, so a reader can stop early. It is dense and backtick-heavy, and it references `sem_publicacao_no_periodo` which does not appear in the input schema, which costs some clarity.

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 an 11-parameter, no-output-schema tool it does substantial work: it describes the shape of the response (descartados with reason, verificacao counts, desambiguacao OAB counts, nao_verificados statuses, varredura page counts) so an agent knows what comes back. The missing pieces are date format/range semantics and the meaning of force_refresh and sigla_tribunal.

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 11 parameters, so the description must carry the meaning, and it does explain numero_oab/uf_oab, nome_advogado, filtro_numeros_processo and filtro_oabs with real semantics (exact-match lookup, OAB-list filtering). But pagina, max_paginas, force_refresh, data_inicio, data_fim and sigla_tribunal get no explanation of format, defaults, or effect, which is a clear gap at this coverage level.

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?

States a specific verb, resource and scope: processes of a lawyer in the DJEN, by OAB (numero_oab + uf_oab) or nome_advogado, grouped by process number with the latest publication. It also names what it is not (djen_ranquear_parte for party homonyms, datajud_acompanhar_processos for current case status), so an agent can separate it from siblings without opening any 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?

Gives explicit routing: use djen_ranquear_parte when the homonym is a PARTY, use datajud_acompanhar_processos for current case movement, and adding uf_oab restricts results to that state's lawyer. It also states a concrete rule of thumb for when filtro_numeros_processo does exact per-number lookup (up to 25) versus page scanning (larger lists).

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.