Skip to main content
Glama

Conector Juspronto

Buscar processos

buscar_processos
Read-only

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.3/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false/non-destructive, so safety is covered. The description adds behavior the annotations do not: filter combination semantics, the Brasília calendar-day computation for diasSemMovimento and that it includes pastas sem andamento, the derived fields casouPor/tribunal/semTribunal, and crucially the parcial/aviso truncation caveat where total reflects only read folders. That last point is genuine behavioral disclosure beyond 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?

Purpose and scope are front-loaded in the first two sentences, and the rest is organized by concern (filters, derivation rules, pagination, truncation, alternative tool). It is dense and includes a few schema-redundant details (cursor 1-hour validity, limite cap at 25) rather than pure param-independent value, but no sentence is wasted.

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 10-parameter, zero-required search tool with an output schema and full annotation coverage, the description supplies the missing operational context: default listing, cursor reuse, and the parcial/aviso degraded-read warning. Return-value explanation is legitimately delegated to the output schema. Only marginal omissions remain, such as any rate/permission constraints.

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 coverage is 100%, so the schema already documents all 10 parameters thoroughly. The description largely restates schema content (tribunal with/without hyphen, cursor validity, dia de corte in cursor) and its really additive material concerns output fields (casouPor, tribunal origin, semTribunal) rather than parameters. Baseline 3 applies when the schema carries the parameter burden.

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?

Opens with a specific verb and resource ('Encontre processos') and enumerates the exact searchable fields (CNJ, pasta, título, cliente, parte, advogado), plus states the tool's downstream role ('Obtenha aqui o processoId para as outras ferramentas'). It explicitly names the sibling it is not (buscar_autos) for the content use case, so an agent can route 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 Guidelines5/5

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

Gives explicit when-to-use ('Obtenha aqui o processoId'), a default behavior with no parameters ('Sem parâmetros, lista os mais recentes'), a pagination protocol (pass proximoCursor with the same filters), and a clear alternative ('Para conteúdo dos autos de uma pasta, prefira buscar_autos'). Nothing about tool selection 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.

Resources