Skip to main content
Glama

tse_dados_abertos_datasets

Search TSE open data packages via CKAN API and inspect official election dataset resources (CSV/ZIP) by keyword, year, or package ID to locate and verify Brazilian electoral data files.

Instructions

Search TSE Dados Abertos (CKAN APIv3) packages and inspect cdn.tse.jus.br CSV/ZIP dataset resources. Includes cross-MCP hint for cnpj_lookup (@aredes.me/mcp-dadosbr) and upstream WAF notice for divulgacandcontas.tse.jus.br.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tse_dados_abertos_datasets"
  }
}

Input Schema

NameRequiredDescriptionDefault
anoNoFilter by election year
rowsNo
queryNoSearch keywords
package_idNoExact CKAN package slug/id to inspect via package_show

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It does add real context – an upstream WAF notice for divulgacandcontas.tse.jus.br, implying some requests may be blocked upstream – but it never states that operations are read-only, how errors or empty CKAN results surface, or how pagination behaves. The CKAN APIv3 label hints at read-only semantics without confirming them.

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?

The sentence about cross-MCP hints and WAF notices reads as internal implementation metadata rather than agent-facing guidance, and it is appended after the core purpose instead of being integrated. The core mapping sentence is tight, but the second sentence spends space on details whose relevance to invoking the tool is unclear.

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 four-parameter, no-annotation, no-output-schema tool, the description covers the headline behavior but leaves key gaps: how results are paginated, what a search result contains versus a package inspection, and how the two access modes relate. An agent could call it, but would be guessing at the edge cases.

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 75%, so ano, query and package_id already describe themselves in the schema, including the package_show route for package_id. The description adds nothing about how query and package_id combine, and rows (default 10, max 25) is undocumented in both places. Baseline 3 is appropriate given the schema does most of the work.

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?

The first sentence names a specific verb and resource: searching TSE Dados Abertos CKAN APIv3 packages and inspecting cdn.tse.jus.br CSV/ZIP resources. That is concrete enough for an agent to know what the tool returns. It does not differentiate itself from any of the listed TSE siblings, but the CKAN/package framing is distinct enough on its own.

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?

There is an implicit routing hint: for CNPJ lookups use cnpj_lookup on another MCP, which tells the agent one case where this tool is not appropriate. However, there is no explicit statement of when to search by keyword versus when to inspect by package_id, and no mention of when to prefer the sibling TSE tools. Usage is implied rather than stated.

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