Skip to main content
Glama

Legal MCP (alternativa ao Jusbrasil)

djen_ranquear_parte

Read-onlyIdempotent

HOMÔNIMOS por NOME DE PARTE: busca o nome no DJEN e ORDENA os processos pela chance de serem da pessoa certa, com confianca (0 a 1), status e motivos legíveis. Use quando o nome é comum e o cliente sabe algo da pessoa: a OAB do advogado dela (oabs), processos que já são dela (processos_conhecidos), uf, comarca ou o CPF/CNPJ (documento, comparado só por hash e nunca devolvido). Só provavel (confiança acima do limiar) pode ser tratado como da pessoa; o resto vem a_confirmar e precisa do cliente. Para ensinar o ranking, repita com os confirmados em processos_conhecidos e os errados em processos_descartados. A resposta não traz nomes de outras partes nem de advogados (LGPD); processo sob sigilo no Diário sai só com número e data. Cobre só o que foi PUBLICADO no Diário (a partir de 2020).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "nome_parte": "<nome_parte>"
    },
    "name": "djen_ranquear_parte"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo
oabsNo
paginaNo
comarcaNo
data_fimNo
documentoNo
nome_parteYes
data_inicioNo
max_paginasNo
force_refreshNo
sigla_tribunalNo
processos_conhecidosNo
processos_descartadosNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that documento is compared only by hash and never returned, that other parties' and lawyers' names are suppressed for LGPD, that sealed cases return only number and date, and that coverage is limited to what was published in the Diário from 2020. It also explains the confidence threshold semantics — only `provavel` may be treated as the person's, everything else is `a_confirmar` and requires client confirmation.

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 concept and the output fields before the usage conditions, and nearly every clause carries information the agent needs. It is a single dense block with no structural breaks, which makes scanning for a specific parameter's meaning harder than it needs to be.

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?

Substantial coverage for a complex 13-parameter tool with no output schema: it describes the returned fields, their semantics, and the confidentiality constraints. Gaps remain — six pagination/date/tribunal/refresh parameters and the dangling `limiar` reference — so an agent still cannot call it fully informed from the description alone.

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?

With 0% schema description coverage the description must carry all 13 parameters, and it only explains about half: oabs, processos_conhecidos, processos_descartados, uf, comarca and documento get real meaning. pagina, max_paginas, data_inicio, data_fim, sigla_tribunal and force_refresh are undocumented, and the description references a `limiar` threshold that does not appear in the input schema at all.

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 pair and resource ("busca o nome no DJEN e ORDENA os processos pela chance de serem da pessoa certa") and frames the exact scenario it exists for: homonyms when the name is common. The ranking output fields (confianca, status, motivos) are named, so an agent can distinguish it from a plain party-process lookup without opening a schema.

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

Usage Guidelines4/5

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

Gives an explicit trigger condition ("Use quando o nome é comum e o cliente sabe algo da pessoa") plus the concrete signals to supply — oabs, processos_conhecidos, uf, comarca, documento — and a feedback loop for refining the ranking via processos_descartados. It never names a sibling tool as the alternative for non-ambiguous name lookups, so routing between this and djen_processos_por_parte is left to inference.

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.