Skip to main content
Glama

buscar_processo

Read-onlyIdempotent

Looks up law office cases by CNJ number, client, or opposing party, returning recent movements, open deadlines with IDs, and detailed case data to support updates and deadline tracking.

Instructions

Localiza processos do escritório.

Use quando o usuário citar um número de processo, um cliente ou uma parte contrária. Com número CNJ completo devolve o processo com os 5 últimos andamentos e os prazos abertos (com o id de cada prazo, usado em registrar_andamento). Com nome, devolve até 10 processos; se vierem 3 ou menos, já vêm detalhados.

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": {
      "termo": "<termo>"
    },
    "name": "buscar_processo"
  }
}

Input Schema

NameRequiredDescriptionDefault
termoYesNúmero CNJ (com ou sem máscara) ou parte do nome do cliente ou da parte contrária. Mínimo 3 caracteres.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, read-only lookup, and the description adds real behavioral context on top: a full CNJ number returns the case with the 5 most recent movements and open deadlines including deadline ids, while a name returns up to 10 cases that are fully detailed only when 3 or fewer match. The cross-reference to registrar_andamento explains downstream use of the returned deadline ids. It omits what an empty result looks like and why the result cap is 10 with no stated way to narrow further.

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?

Four short sentences, front-loaded with purpose then trigger then result behavior; no filler or restatement of the tool name. The line break inside the deadline sentence is a minor formatting blemish but nothing wasteful is included.

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 one-parameter lookup with an output schema and rich annotations, the description supplies the operational essentials: when to call it, how input type changes output, and how returned deadline ids feed into registrar_andamento. The only meaningful gap is behavior at the result cap and on zero results, which an agent would need to know to proceed after a broad name search.

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 single termo parameter is already documented as a CNJ number or partial client/opposing-party name with a 3-character minimum. The description goes beyond the schema by explaining that the input type materially changes the response shape (full CNJ → detailed record; name → capped list), which is meaning the schema does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Localiza processos do escritório" pairs a concrete verb (locate/search) with a concrete resource (case records) and the body clarifies the two lookup modes (CNJ number vs. party/client name). It does not explicitly contrast with siblings like validar_numero_cnj, but the described behavior is specific enough to separate it from the other tools.

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 gives an explicit trigger: "Use quando o usuário citar um número de processo, um cliente ou uma parte contrária." That covers the main invocation contexts well. It stops short of exclusions or alternatives (e.g., validating a CNJ number before searching, or what to do when the 10-result cap is hit), so it is clear guidance without full routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.