Skip to main content
Glama

br_search_case_stj

Read-onlyIdempotent

Search STJ acórdãos by deciding chamber and query to retrieve actual ruling text including ementa and decisão from monthly bulk files starting May 2022.

Instructions

Search STJ (Superior Tribunal de Justica) acordaos - real ruling text.

Unlike br_search_processos (DataJud, metadata only), this returns the actual ementa (headnote) and decisao (ruling body prose) from the STJ Open Data Portal. Scans the most recent monthly bulk files for one orgao julgador (chamber/section) - a miss means "not in the scanned window", not "does not exist". Coverage starts May 2022.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNomax results (default 20).
orgaoYesdeciding chamber/section, one of the keys in the supported list, e.g. ``"CORTE ESPECIAL"``, ``"TERCEIRA TURMA"``.
queryYesfree text - a process/registration number (6+ digits) matches exactly; anything else matches `ministroRelator` or `ementa` (case-insensitive substring).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds crucial behavioral context: it scans monthly bulk files, a miss means 'not in scanned window' not 'does not exist', and coverage starts May 2022. This fully discloses behavior beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences: first states purpose, second differentiates from sibling, third explains scanning behavior and coverage. Front-loaded, no unnecessary details, every sentence earns its place.

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?

With output schema present and annotations covering safety, the description is quite complete. It covers purpose, differentiation, behavioral notes, and coverage start. However, it could slightly improve by explicitly stating that results may not be real-time due to monthly file scans, though it is implied.

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 baseline is 3. The description does not add significant new meaning beyond the schema for any parameter. It restates that orgao is a chamber/section and query matches process number or text, but the schema already provides equivalent descriptions.

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 clearly states the tool searches STJ acordaos and returns actual ruling text (ementa and decisao). It explicitly contrasts with sibling br_search_processos (metadata only), providing a specific verb+resource combination that distinguishes it from other similar 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?

The description explicitly says 'Unlike br_search_processos (DataJud, metadata only), this returns the actual...' which directly guides when to use this tool vs the sibling. It also explains the scanning window limitation and coverage start, setting proper expectations for results.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/br-eli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server