Skip to main content
Glama

¿Cómo va España?

Congreso: escaños y grupos

congreso_de_los_diputados
Read-onlyIdempotent

El reparto de escaños del Congreso de los Diputados (la legislatura actual y la anterior), qué partidos están en el Gobierno o lo apoyaron, y el resumen de las votaciones del Pleno: cuánto vota cada grupo a favor o en contra, su asistencia y con qué frecuencia coinciden dos grupos. Úsalo para «¿cuántos diputados tiene cada partido?» o «¿cuánto coinciden PP y Vox al votar?».

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds a genuinely useful scope boundary: the data covers only the current and previous legislature, not a historical series. It also signals that outputs are aggregates (per-group totals, attendance, pairwise coincidence) rather than individual vote records.

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 primary resource and closed with the two canonical use-case questions. The opening sentence is long and enumerates several data facets in one breath, but every clause carries scope information rather than filler.

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?

With no parameters and no output schema, the description must convey what comes back, and it does: seat allocation, government support status, and voting summary dimensions. Only the response shape (aggregate vs. per-legislature breakdown) remains mildly underspecified, which for a no-input tool is a minor gap.

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?

Zero parameters, so the schema carries nothing and the baseline is 4. The description compensates by noting the implicit coverage limit — no parameter selects a legislature or group, only current/previous is available — which is the only semantic an agent would otherwise have to guess.

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 the resource concretely: seat distribution in the Congreso, which parties are in or back the Government, and an aggregate summary of Pleno voting (support/against per group, attendance, pairwise agreement) — enough for an agent to tell it apart from vote-search or election-result siblings. The verb is nominal ('El reparto… y el resumen…') and the scope bundles three data products, which keeps it just short of a crisp 5.

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?

Two explicit example questions ('¿cuántos diputados tiene cada partido?', '¿cuánto coinciden PP y Vox al votar?') give clear usage context that maps directly to the tool. It stops short of exclusions or naming alternatives such as buscar_votaciones for individual votes, so no 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.

Resources