Skip to main content
Glama

Conector Juspronto

Consultar clientes

buscar_clientes
Read-onlyIdempotent

Busque clientes do escritório, inclusive sem processo, por texto (nome, CPF/CNPJ parcial, e-mail ou telefone). Sem texto, lista todos em páginas de até 20; continue com cursor e os mesmos filtros. Abra ficha com clienteId; processosCursor continua seus vínculos. Retorna id, nome (iniciais para menor com nascimento conhecido), clienteCienteUsoIa, 20 processos mais recentes por criação (id, numeroProcesso e titulo), totalProcessos, continuarProcessos com os argumentos da próxima página e link da ficha. Nos dois perfis, CPF/CNPJ, e-mail, endereço, telefone, WhatsApp, RG, nascimento e observação não saem. Consulte documento e contato na ficha pelo link. Não cadastra, edita, exclui, envia mensagens nem consulta pagamentos; não confirma identidade só pelo nome.

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

Input Schema

NameRequiredDescriptionDefault
textoNoNome, documento parcial, e-mail ou telefone
cursorNoproximoCursor da busca anterior, com os mesmos filtros
clienteIdNoID do cliente para abrir a ficha; não combine com texto ou cursor
processosCursorNoCursor de continuarProcessos.argumentos; use com o mesmo clienteId

Output Schema

NameRequiredDescriptionDefault
avisoNo
itensNo
totalNo
truncadoNo
avisoConteudoNo
proximoCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses page size (20), cursor continuity requiring the same filters, masked name initials for minors, and an explicit privacy policy listing which fields are withheld (CPF/CNPJ, e-mail, endereço, telefone, WhatsApp, RG, nascimento, observação). This is substantial behavioral context an agent would not otherwise 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?

The definition is dense but front-loaded, leading with the search action and modes before return details and privacy rules. It is longer than typical but nearly every clause carries actionable information, though the return-field enumeration is somewhat heavy.

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?

Given four optional parameters, annotations, and an output schema, the description covers search modes, pagination, privacy constraints, and negative capabilities. Nothing an agent needs in order 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 already 100%, so baseline is 3, but the description adds real meaning: texto accepts partial documents and contact formats, cursor must reuse the same filters, and clienteId cannot be combined with texto or cursor. This enriches the mutually exclusive usage of the four parameters.

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?

The description states a specific verb and resource ('Busque clientes do escritório'), defines the searchable fields (nome, CPF/CNPJ parcial, e-mail, telefone), and clarifies that clients without processes are included. An agent can immediately distinguish this from process-search tools.

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?

It explicitly covers the text-search path, the no-text list-all path, the clienteId path to open a ficha, and the processosCursor continuation path, plus clear exclusions ('Não cadastra, edita, exclui, envia mensagens nem consulta pagamentos'). It even warns against identity confirmation by name alone.

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