Skip to main content
Glama

datajud_processos

Search Brazilian court records and lawsuits across multiple tribunals using CNPJ, CPF, company name, or case number. Supports due diligence and compliance checks.

Instructions

Search Brazilian court records via the CNJ Datajud Public API. Query lawsuits and legal proceedings across Brazilian tribunals. Requires DATAJUD_API_KEY. Supports 17+ tribunals.

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

Input Schema

NameRequiredDescriptionDefault
queryYesSearch term (CNPJ, CPF, company name, case number)
tamanhoNoMax results (default: 10)
tribunalNoCourt code (default: 'tjsp'). Options: tst, trf1-5, tjsp, tjrj, tjmg, etc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden. It usefully discloses the auth requirement (DATAJUD_API_KEY) and tribunal coverage breadth (17+), but says nothing about result caps, pagination, rate limits, or freshness of the court data, which matter for a public-API search tool.

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, front-loaded sentences with no filler. There is mild redundancy between 'Search Brazilian court records' and 'Query lawsuits and legal proceedings', which are essentially the same claim.

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

Completeness3/5

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

For a 3-parameter search with no annotations and no output schema, the definition covers purpose, auth and coverage but leaves open what the returned records contain and how results are bounded, which an agent would need to plan a query sensibly.

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 baseline applies: the query, tamanho and tribunal parameters are already fully documented in the schema. The description adds only the tribunal-coverage scale, not syntax or semantics beyond what the schema states.

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?

States a specific verb and resource: search Brazilian court records/lawsuits via the CNJ Datajud Public API. The domain is clearly distinct from the financial, company and licensing siblings, though the description never explicitly contrasts itself with any of them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage context is implied by the domain (court records / legal proceedings), and the prerequisite of an API key is stated, but there is no explicit when-to-use vs when-not guidance and no named alternative for related lookups such as bnmp_mandados or oab_advogado.

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