Skip to main content
Glama

¿Cómo va España?

Votaciones del Pleno del Congreso

buscar_votaciones
Read-onlyIdempotent

Busca entre las votaciones del Pleno del Congreso y dice qué votó cada grupo parlamentario (sí, no o abstención), el resultado y el recuento, con el enlace al Diario de Sesiones. Se puede buscar por texto, fechas, tipo de votación, resultado o por el voto de un grupo. Úsalo para «¿qué votó cada partido en el decreto de vivienda?» o «votaciones que el PSOE perdió en 2025».

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

Input Schema

NameRequiredDescriptionDefault
tipoNoTipo de votación, por alguna palabra de su nombre: «decretos-leyes», «proposición no de ley», «mociones», «totalidad», «dictamen».
votoNoCon `grupo`: solo las votaciones en las que ese grupo votó así.
desdeNoDesde qué fecha: un año (2025), un mes (2025-03) o un día (2025-03-15).
grupoNoUn grupo parlamentario, por sigla o nombre (PP, PSOE, VOX, SUMAR, ERC, JUNTS, BILDU, PNV, MIXTO), para filtrar por su voto con `voto`.
hastaNoHasta qué fecha, con el mismo formato.
limiteNoCuántos resultados como mucho (15 por defecto).
consultaNoPalabras del asunto votado: «vivienda», «amnistía», «presupuestos», «27/2026».
ajustadasNoSolo las que se decidieron por cinco votos o menos.
resultadoNoSolo las aprobadas o solo las rechazadas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / desde / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 12,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / desde / maxLength
      Added value: +12
    • addedInput schema / properties / desde / type
      Added value: +"string"
    • removedInput schema / properties / hasta / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 12,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / hasta / maxLength
      Added value: +12
    • addedInput schema / properties / hasta / type
      Added value: +"string"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior the annotations don't: the response includes per-group vote breakdown, the outcome, the tally, and a Diario de Sesiones link — with no output schema, this is the only place the agent learns the return shape. It doesn't mention rate limits or default ordering, hence not a 5.

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?

Three sentences, front-loaded with the resource and the returned fields before moving to search dimensions and then examples. Nothing is redundant and every sentence adds information 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 9-parameter, zero-required, no-output-schema tool, the description covers what it queries and what it returns, which is the essential gap. The remaining omission is what happens when no filters are supplied (default ordering or recency), which matters for a tool where every parameter is optional.

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%, so every one of the 9 parameters, including the enum values and the grupo+voto combination, is already documented in the schema. The description's enumeration of search dimensions (texto, fechas, tipo, resultado, voto de un grupo) restates that rather than adding format or edge-case detail. Baseline 3 is the right call.

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?

States a specific verb and resource ("Busca entre las votaciones del Pleno del Congreso") and then spells out exactly what comes back: each parliamentary group's vote (sí/no/abstención), the result, the count, and a link to the Diario de Sesiones. That return-content detail makes it unmistakable against siblings like buscar_leyes or iniciativas_legislativas, which cover different resources.

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?

Gives two concrete example queries ("¿qué votó cada partido en el decreto de vivienda?", "votaciones que el PSOE perdió en 2025") that make the intended use case obvious, plus an enumeration of the searchable dimensions. It stops short of stating when NOT to use it or naming an alternative tool, so it lands at 4 rather than 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