Skip to main content
Glama

relatar_defeito

Idempotent

Relata um defeito encontrado numa página publicada do acervo — citação legal mal atribuída, fonte divergente ou conteúdo desatualizado — para a fila de triagem humana. EXIGE CREDENCIAL: um token Bearer com o escopo relatos:escrever, obtido em /oauth/token (o fluxo está descrito em /auth.md). O trecho citado precisa ocorrer, ao pé da letra, no Markdown que ler_pagina devolveu para a mesma página — é essa a âncora contra relato inventado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tipoYesnatureza do defeito relatado
caminhoYesrota canônica da página com o defeito — a mesma que buscar_paginas ou ler_pagina devolveram, com barra final (ex.: /consumidor/produto-com-defeito/)
descricaoYeso que está errado, em português, com detalhe suficiente para a triagem humana agir sem precisar adivinhar
trecho_citadoYestrecho EXATO copiado do Markdown que ler_pagina devolveu para esta página; é contra ele que o portal confere que o relato não foi inventado — trecho que não ocorre ao pé da letra no documento é recusado
fonte_oficial_urlNoURL https:// em domínio oficial (gov.br, jus.br, leg.br, mp.br, def.br) que sustenta o relato; obrigatória quando tipo é citacao_incorreta ou fonte_divergente

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
estadoYes
relato_idYes
repeticoesYes

TDQS

A4.5/5.0
Behavior5/5

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

The description substantially goes beyond the annotations by disclosing the OAuth endpoint and scope (scope relatos:escrever, /oauth/token), warning about the credential need, and defining the anti-forgery anchor: the exact quoted excerpt must match what ler_pagina returned. This adds actionable behavioral context that enums and the readOnly/destructive hints alone do not provide. No contradiction with the annotations is present.

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 long and each sentence earns its place: purpose, authentication requirement, and the critical exact-match anchor. It is front-loaded and free of filler, despite being information-dense.

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?

The description plus the rich input schema fully specify the operation: what the tool does, when to use it, what credential is required, how caminho is canonical, how the trecho_citado de ancoragem must match, and when other fields are intended. The output schema is provided, so return-value details are not missing from coverage artifact.

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?

With 100% schema description coverage, the input schema already fully documents each parameter. The tool description mostly reinforces the trecho_citado rule already present in the schema, rather than introducing new parameter-level details. It adds only a general rationale for the anchor, so the baseline 3 is appropriate.

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 names the concrete action with a specific verb ('Relata um defeito'), identifies the target resource ('página publicada do acervo'), and lists defect categories (citação legal mal atribuída, fonte divergente, conteúdo desatualizado). It clearly differentiates from sibling tools buscar_paginas and ler_pagina by focusing on reporting, not searching or reading.

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 explains when to use the tool (found a defect in a published page) and the important workflow prerequisite: the quoted excerpt must come from exactly the Markdown returned by ler_pagina. It also states the required credential scope. However, it does not explicitly say when not to use the tool or name an alternative pathway, so it stops just short of a 5.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool serves a clearly distinct function: searching, reading, and reporting defects. There is no overlap in their purposes, and an agent would have no confusion about which tool to invoke for a given task.

Naming Consistency4/5

All tool names follow a consistent verb-noun pattern in Portuguese (buscar, ler, relatar), making them predictable. The only minor inconsistency is the singular 'pagina' vs. plural 'paginas' in the objects, but this does not hinder understanding.

Tool Count5/5

With only three tools, the server is tightly scoped to its purpose of searching, reading, and reporting issues in a legal collection. Each tool is essential and there is no bloat.

Completeness4/5

The server covers the core workflow of searching, reading, and reporting defects, which appears complete for its domain. The only gap is the lack of a way to browse or list pages without a specific search term, but this may be intentionally limited.

Resources