Skip to main content
Glama

election_results

Official results of a Portuguese election for the country, a district, a municipality or a parish.

Args: election: "legislativas2025" (default), "legislativas2024", "legislativas2022", "autarquicas2025", "autarquicas2021", "europeias2024", "presidenciais2021"; or just "autarquicas", "europeias"... for the latest of that kind. place: None for Portugal; a municipality ("Sintra", "Lisboa"), "municipality, parish" ("Lisboa, Arroios"), a district written as "distrito de Braga" (the electoral circle in legislative elections), or "Açores" / "Madeira" for the whole region. body: local elections only: "CM" (câmara, default), "AM" (assembleia municipal) or "AF" (assembleia de freguesia, use with a parish). Returns turnout, blank and null votes, and votes, % and seats per list, plus the previous election of the same kind for that place (lists are not matched: coalitions change).

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": "election_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
limitNo
placeNo
electionNolegislativas2025

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the returned payload (turnout, blank and null votes, votes/percentage/seats per list) and the important caveat that the previous election of the same kind is included but lists are not matched because coalitions change. Gaps remain on failure behavior for unrecognized places or election slugs, and on pagination behavior of `limit`, which is never mentioned.

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?

Front-loaded with the purpose, then a clean Args block where each line is parameter-scoped and example-driven; nothing reads as filler. It is dense but every sentence conveys either an accepted format or a default that an agent would otherwise have to guess.

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 lookup tool with four optional parameters and an output schema (so return values needn't be explained), the definition covers the domain vocabulary thoroughly — Portuguese election types, place naming conventions, regional cases. The omissions are the undocumented `limit` and any statement about error or empty-result behavior, which keep it short of fully complete.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does for three of four parameters — enumerating the accepted election slugs (which the schema lacks as enums), giving concrete place formats including 'distrito de Braga' and 'Lisboa, Arroios', and defining the CM/AM/AF body codes plus their default. The fourth parameter, `limit` (default 12), is entirely undocumented in both schema and description, leaving one real gap.

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 first sentence states a specific verb-resource pair (official election results) plus the exact geographic granularities it covers — country, district, municipality, parish. It is immediately distinguishable from every sibling tool in the catalog (finance, transit, fuel, incidents), none of which return electoral data.

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?

Usage is spelled out per parameter: which election slugs are valid and that a bare kind ('autarquicas') means the latest of that kind, what forms `place` accepts, and that `body` applies only to local elections with 'AF' requiring a parish. There is no explicit when-not-to-use or error case (e.g., what happens with an unknown municipality), but no sibling overlaps this domain, so the guidance is effectively complete for selection.

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.