Skip to main content
Glama

Conector Juspronto

Buscar nos autos

buscar_autos
Read-only

Busca nos autos importados de um processo sem distinguir acento e caixa. Devolve trecho original destacado, evidenceId, citação, tipo, data e link para o documento. paginaLocal é a página do PDF usada em ler_paginas; paginaNaPeca é a posição na peça. Combine pecaId, tipoDocumento, de/ate (AAAA-MM-DD, assinatura inclusiva), signatario (palavras inteiras, sem acento e caixa) e polo (ativo ou passivo). Polo exige nome completo do signatário igual ao de advogado do mesmo processo e escritório; não infere por semelhança. Com filtros de documento, páginas sem peça ficam de fora. semDataDeAssinatura e semPoloConhecido contam páginas excluídas por informação ausente, considerando os outros filtros. Página repetida aparece uma vez; com pecaId, inclui cópias daquela peça. total e truncado indicam o limite; refine os filtros para ver mais. Sem índice de acentos, avisa e preserva os resultados. Para ler a evidência inteira, use ler_paginas. Sem autos, consulte processo_status.

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": {
      "processoId": "<processoId>",
      "query": "<query>"
    },
    "name": "buscar_autos"
  }
}

Input Schema

NameRequiredDescriptionDefault
deNoData inicial da assinatura, inclusiva, em AAAA-MM-DD. Exclui peças sem data
ateNoData final da assinatura, inclusiva, em AAAA-MM-DD. Exclui peças sem data
poloNoativo ou passivo, por nome completo do signatário igual ao de advogado do mesmo processo e escritório
queryYesTermo ou pergunta a localizar
pecaIdNoFiltrar por ID da peça (opcional)
processoIdYesID do processo
signatarioNoNome ou palavras inteiras do signatário, sem distinguir acento e caixa
tipoDocumentoNoTipo da peça: INICIAL, DEFESA, DECISAO_INTERLOCUTORIA, SENTENCA_ACORDAO, LAUDO_PERICIA ou OUTRO

Output Schema

NameRequiredDescriptionDefault
avisoNo
totalNo
frescorNo
truncadoNo
coberturaNo
instrucaoNo
nextActionNo
orientacaoNo
resultadosNo
avisoConteudoNo
proximoCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / ate
      Added value: +{
      +  "description": "Data final da assinatura, inclusiva, em AAAA-MM-DD. Exclui peças sem data",
      +  "type": "string"
      +}
    • addedInput schema / properties / de
      Added value: +{
      +  "description": "Data inicial da assinatura, inclusiva, em AAAA-MM-DD. Exclui peças sem data",
      +  "type": "string"
      +}
    • addedInput schema / properties / polo
      Added value: +{
      +  "description": "ativo ou passivo, por nome completo do signatário igual ao de advogado do mesmo processo e escritório",
      +  "type": "string"
      +}
    • addedInput schema / properties / signatario
      Added value: +{
      +  "description": "Nome ou palavras inteiras do signatário, sem distinguir acento e caixa",
      +  "type": "string"
      +}
    • addedInput schema / properties / tipoDocumento
      Added value: +{
      +  "description": "Tipo da peça: INICIAL, DEFESA, DECISAO_INTERLOCUTORIA, SENTENCA_ACORDAO, LAUDO_PERICIA ou OUTRO",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "aviso": {
      +      "type": "string"
      +    },
      +    "avisoConteudo": {
      +      "type": "string"
      +    },
      +    "cobertura": {
      +      "additionalProperties": {},
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "frescor": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "andamentosAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "atosDepoisDosAutos": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "andamentoId": {
      +                    "type": "string"
      +                  },
      +                  "data": {
      +                    "type": "string"
      +                  },
      +                  "descricao": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "autosAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "aviso": {
      +              "type": "string"
      +            },
      +            "djenAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "truncado": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "instrucao": {
      +      "type": "string"
      +    },
      +    "nextAction": {
      +      "type": "string"
      +    },
      +    "orientacao": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "consultarNovamenteEmSegundos": {
      +          "type": "number"
      +        },
      +        "estado": {
      +          "type": "string"
      +        },
      +        "instrucao": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "proximoCursor": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "resultados": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "evidenceId": {
      +            "type": "string"
      +          },
      +          "trecho": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "type": "number"
      +    },
      +    "truncado": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly/non-destructive; the description adds substantial behavior the agent cannot get elsewhere: dedup rules (página repetida aparece uma vez), pecaId including copies, truncation signaled by total/truncado, exclusion counters semDataDeAssinatura and semPoloConhecido, and the no-accent-index warning path.

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?

Dense but front-loaded: the search behavior and return shape come first, edge cases (dedup, truncation, missing index) follow. A few sentences pack multiple clauses each, but none are 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 an 8-parameter read tool with an output schema, the description covers matching semantics, filter interaction, exclusion accounting, result limits, and escalation paths. Nothing an agent needs to call it 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 goes further: it clarifies paginaLocal vs paginaNaPeca, that de/ate are inclusive by signature date, that signatario matches whole words accent/case-insensitively, and that polo requires an exact full name and is never inferred by similarity.

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?

"Busca nos autos importados de um processo" names a specific verb and resource and adds the accent/case-insensitive scope, which separates it from buscar_no_acervo and buscar_processos. It also enumerates the return payload (trecho destacado, evidenceId, citação, tipo, data, link), so an agent knows exactly what it gets back.

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?

It routes clearly to siblings for adjacent needs: ler_paginas to read the full evidence, processo_status when autos are missing. Filter-combination guidance (pecaId, tipoDocumento, de/ate, signatario, polo) is explicit, though it never states when to prefer this over buscar_no_acervo or buscar_processos directly.

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