Skip to main content
Glama

Conector Juspronto

Buscar processos

buscar_processos
Read-onlyIdempotent

Encontre processos por CNJ inteiro ou parcial (mínimo de 6 dígitos, com ou sem máscara), pasta, título, cliente, parte ou advogado, sem distinguir acento e caixa. Obtenha aqui o processoId para as outras ferramentas. casouPor lista numero, titulo, cliente, parte, advogado ou pasta, sem expor os nomes pesquisados. Combine termo com tribunal (sigla com ou sem hífen), situacao, advogadoId do responsável e diasSemMovimento. Este conta dias de calendário em Brasília pelo andamento mais recente e inclui pastas sem andamento. tribunal informa sigla e origem (CNJ ou CADASTRO); semTribunal conta as pastas não classificadas. Sem parâmetros, lista os mais recentes. Devolve total, truncado e proximoCursor; passe este em cursor com os mesmos filtros. O cursor mantém o dia de corte da primeira página. parcial e aviso indicam leitura limitada e total apenas das pastas lidas; refine os filtros. Para conteúdo dos autos de uma pasta, prefira buscar_autos.

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": "buscar_processos"
  }
}

Input Schema

NameRequiredDescriptionDefault
termoNoBusca em número (mínimo 6 dígitos), título, cliente, partes, advogados e pasta, sem distinguir acento e caixa
cursorNoproximoCursor da resposta anterior, para a página seguinte (vale por 1 hora; use com os mesmos filtros)
limiteNoMáximo de resultados por página (padrão 10; acima de 25 é cortado em 25)
clienteNoParte do nome do cliente, sem distinguir acento e caixa; também procura nas partes do processo (útil quando o processo não tem cliente vinculado)
situacaoNoSituação da pasta, decisão do escritório: EM_ANDAMENTO, AGUARD_AUDIENCIA, AGUARD_JULGAMENTO, EM_RECURSO, EXECUCAO, SOBRESTADO, ARQUIVADO, ACORDO ou ENCERRADO
tribunalNoSigla do tribunal, com ou sem hífen (ex.: TJDFT, TRT-10, DJDF). Vale o tribunal que o número CNJ indica; sem número válido, o do cadastro da pasta
numeroCNJNoNúmero CNJ inteiro ou parcial, com pelo menos 6 dígitos, com ou sem pontuação
advogadoIdNoIdentificador do advogado responsável pela pasta
numeroPastaNoNúmero da pasta interna do escritório
diasSemMovimentoNoSem andamento há N dias de calendário em Brasília (inteiro de 1 a 36500), pelo ato mais recente; inclui pastas sem andamento

Output Schema

NameRequiredDescriptionDefault
avisoNo
totalNo
parcialNo
mensagemNo
truncadoNo
processosNo
semTribunalNo
avisoConteudoNo
proximoCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / situacao / description
      Previous value: -"Situação: EM_ANDAMENTO, AGUARD_AUDIENCIA, AGUARD_JULGAMENTO, EM_RECURSO, EXECUCAO, SOBRESTADO, ARQUIVADO, ACORDO ou ENCERRADO"New value: +"Situação da pasta, decisão do escritório: EM_ANDAMENTO, AGUARD_AUDIENCIA, AGUARD_JULGAMENTO, EM_RECURSO, EXECUCAO, SOBRESTADO, ARQUIVADO, ACORDO ou ENCERRADO"
  2. Changed1 schema field changed
    • addedOutput schema / properties / processos / items / properties / habilitacao
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / cliente / description
      Previous value: -"Parte do nome do cliente, sem distinguir acento e caixa"New value: +"Parte do nome do cliente, sem distinguir acento e caixa; também procura nas partes do processo (útil quando o processo não tem cliente vinculado)"
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "aviso": {
      +      "type": "string"
      +    },
      +    "avisoConteudo": {
      +      "type": "string"
      +    },
      +    "mensagem": {
      +      "type": "string"
      +    },
      +    "parcial": {
      +      "type": "boolean"
      +    },
      +    "processos": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "cnjFormatado": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "numeroPasta": {
      +            "type": "number"
      +          },
      +          "numeroProcesso": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "pasta": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "processoId": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "proximoCursor": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "semTribunal": {
      +      "type": "number"
      +    },
      +    "total": {
      +      "type": "number"
      +    },
      +    "truncado": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  5. Changed6 schema fields changed
    • addedInput schema / properties / advogadoId
      Added value: +{
      +  "description": "Identificador do advogado responsável pela pasta",
      +  "type": "string"
      +}
    • changedInput schema / properties / cliente / description
      Previous value: -"Parte do nome do cliente (case-insensitive)"New value: +"Parte do nome do cliente, sem distinguir acento e caixa"
    • addedInput schema / properties / diasSemMovimento
      Added value: +{
      +  "description": "Sem andamento há N dias de calendário em Brasília (inteiro de 1 a 36500), pelo ato mais recente; inclui pastas sem andamento",
      +  "type": "number"
      +}
    • changedInput schema / properties / numeroCNJ / description
      Previous value: -"Número do processo (CNJ), com ou sem pontuação"New value: +"Número CNJ inteiro ou parcial, com pelo menos 6 dígitos, com ou sem pontuação"
    • addedInput schema / properties / situacao
      Added value: +{
      +  "description": "Situação: EM_ANDAMENTO, AGUARD_AUDIENCIA, AGUARD_JULGAMENTO, EM_RECURSO, EXECUCAO, SOBRESTADO, ARQUIVADO, ACORDO ou ENCERRADO",
      +  "type": "string"
      +}
    • changedInput schema / properties / termo / description
      Previous value: -"Busca livre em título, número do processo e nome do cliente"New value: +"Busca em número (mínimo 6 dígitos), título, cliente, partes, advogados e pasta, sem distinguir acento e caixa"
  6. Changed1 schema field changed
    • addedInput schema / properties / tribunal
      Added value: +{
      +  "description": "Sigla do tribunal, com ou sem hífen (ex.: TJDFT, TRT-10, DJDF). Vale o tribunal que o número CNJ indica; sem número válido, o do cadastro da pasta",
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "proximoCursor da resposta anterior, para a página seguinte (vale por 1 hora; use com os mesmos filtros)",
      +  "type": "string"
      +}
    • changedInput schema / properties / limite / description
      Previous value: -"Máximo de resultados (padrão 10; acima de 25 é cortado em 25)"New value: +"Máximo de resultados por página (padrão 10; acima de 25 é cortado em 25)"
  8. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, yet the description still adds substantive behavior: accent- and case-insensitive matching, casouPor reporting match reasons without echoing the searched names, day counting in Brasília calendar by the most recent movement, inclusion of folders with no movement, and tribunal origin (CNJ vs CADASTRO). Cursor lifetime (1 hour) and the partial/aviso signaling of limited reading plus the "day cutoff from first page" rule are genuinely non-obvious traits an agent must know.

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-loaded with the search capability and the processoId payoff before the finer semantics, so an agent gets the essentials first. It is dense and telegraphic in places ("casouPor lista numero, titulo, cliente, parte, advogado ou pasta") and re-explains some return fields that the output schema already covers, but no sentence is pure filler.

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

Completeness5/5

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

For a 10-parameter, all-optional search tool with a full output schema and rich annotations, the description covers defaults, filter combination, pagination continuation, partial-result handling, and the sibling alternative. Nothing an agent needs in order to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds interaction semantics the schema lacks: termo is combined with tribunal, situacao, advogadoId and diasSemMovimento, and the CNJ minimum of 6 digits is restated with the mask/no-mask tolerance. It stops short of adding format detail beyond that, hence a 4 rather than a 5.

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 and resource ("Encontre processos") and enumerates the searchable fields (CNJ, pasta, título, cliente, parte, advogado). It goes further and names the concrete payoff — "Obtenha aqui o processoId para as outras ferramentas" — and explicitly separates itself from buscar_autos, so an agent can distinguish it from siblings 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?

Covers the no-argument default ("Sem parâmetros, lista os mais recentes"), the follow-up pagination call ("passe este em cursor com os mesmos filtros"), and an explicit when-not with the alternative ("Para conteúdo dos autos de uma pasta, prefira buscar_autos"). It also tells the agent what to do when results are partial ("refine os filtros"), leaving little 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.

Resources