Skip to main content
Glama

Citação de decisão (TSE ou TRE)

tse_citacao
Read-only

Generate an ABNT-formatted citation for a Brazilian electoral court decision, including the reference header and links, from a decision code and optional court acronym.

Instructions

Citação ABNT no formato do botão "Copiar citação" do portal, cabeçalho de referência e links.

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": {
      "codigo_decisao": "<codigo_decisao>"
    },
    "name": "tse_citacao"
  }
}

Input Schema

NameRequiredDescriptionDefault
tribunalNoOpcional: 'TSE' ou a sigla do TRE (ex.: 'TRE-PE'). Só é usado se a decisão ainda não estiver no cache local; sem ele, a decisão é procurada no TSE e depois nos TREs.
codigo_decisaoYescodigoDecisao da decisão.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. Beyond that the description adds almost nothing behavioral: it does not mention that results may come from a local cache, that network lookups against TSE/TRE may occur, or how failures behave when a decision is not found.

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

Conciseness3/5

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

It is a single short sentence with no padding, which is good, but it is telegraphic rather than front-loaded explanation, and the embedded quoted UI label is the only concrete anchor for what the output looks like.

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?

An output schema exists, so return values need not be explained, and the input schema is fully documented, which limits the required burden. Still, for a citation-formatting tool whose value depends on format variants and cache/fallback behavior, the description leaves meaningful gaps for an agent deciding whether to call it.

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 description coverage is 100% and both parameters are documented in the schema, so the baseline of 3 applies. The description adds no additional meaning about 'codigo_decisao' or the optional 'tribunal' override and cache interaction.

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

Purpose3/5

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

The description identifies the resource (a citation for a decision) and an output format (ABNT, matching the portal's "Copiar citação" button, with reference header and links). However, it is a noun phrase without a verb and never states plainly that the tool returns a formatted citation string for a given decision code, and it does not distinguish itself from siblings such as tse_obter_decisao or tse_inteiro_teor.

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

Usage Guidelines2/5

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

There is no guidance on when to call this tool versus tse_pesquisar, tse_obter_decisao, or tse_inteiro_teor, and no prerequisites or exclusions are mentioned. The only contextual hint (cache lookup and TSE-then-TRE fallback) lives in the schema description for 'tribunal', not in the tool description.

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