Skip to main content
Glama

indice_pecas

Extract document numbers, types, page ranges, dates, and signers from PJe PDF footers to create a cached case document index for local review.

Instructions

Índice das peças do processo, reconstruído do rodapé do PJe: nº do documento, tipo (heurístico — confirme peças-chave com obter_pagina), intervalo de páginas no PDF, data e assinante. Local, grátis, cacheado.

Input Schema

NameRequiredDescriptionDefault
casoYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral load. It usefully discloses that the type is heuristic (unreliable and worth verifying), that the data comes from the PJe footer, and that the operation is local, free, and cached — meaningful context about cost, speed, and data quality. It stops short of explicitly stating read-only/purity or how stale the cache can be.

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?

A single front-loaded sentence packs the purpose, the returned fields, the heuristic caveat, and the local/free/cached traits with no filler. The parenthetical tool reference is placed exactly where the risk it mitigates is mentioned.

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 read tool with an output schema, the description covers output meaning, data provenance, the heuristic caveat, and cost/latency characteristics. The only real gap is the undocumented 'caso' argument, which keeps this from being fully self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter (caso) with 0% schema description coverage, so the description must compensate — and it does not. It never explains what form the 'caso' identifier takes (number, internal id, slug) or where the agent obtains it, leaving the sole parameter opaque.

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 concrete noun+scope: an index of the case's peças (documents) reconstructed from the PJe footer, and enumerates the returned fields (document number, type, page range, date, signer). An agent can tell what it produces. It does not, however, distinguish itself from the similarly named sibling indexar_caso, which could be confused with it.

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?

It gives one indirect usage cue: confirm key peças with obter_pagina because the type field is heuristic. But it never says when to reach for this tool over indexar_caso, resumo_caso, or status_caso, so the routing guidance is implied rather than explicit.

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