Skip to main content
Glama

¿Cómo va España?

Leyes en tramitación en el Congreso

iniciativas_legislativas
Read-onlyIdempotent

Los proyectos de ley del Gobierno y las proposiciones de ley de los grupos en el Congreso: quién los presentó, cuándo, en qué estado están (aprobada, rechazada, retirada, caducada...) y su último trámite. Sin argumentos, el resumen de la legislatura. Úsalo para «¿qué leyes presentó Sumar?» o «¿qué pasó con la ley de vivienda turística?».

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

Input Schema

NameRequiredDescriptionDefault
tipoNo`proyecto`: proyectos de ley del Gobierno. `proposicion`: proposiciones de ley de los grupos, el Senado o las comunidades.
autorNoQuién la presentó: «Gobierno», «Popular», «Socialista», «Sumar», «Vox», «Junts»...
desdeNoPresentadas desde esa fecha (2025, 2025-03).
hastaNoPresentadas hasta esa fecha.
estadoNoSolo las que acabaron así.
limiteNoCuántos resultados como mucho (12 por defecto).
consultaNoPalabras del título: «vivienda», «familias», «función pública».

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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavior: with no arguments it returns the legislature summary instead of failing or returning everything, and each row includes the last procedural step. It does not discuss ordering, completeness of the corpus, or truncation behavior.

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?

Two dense sentences plus a short usage clause, with the record contents front-loaded before the examples. Every element does work, though the parenthetical status list duplicates the estado enum verbatim and could be trimmed.

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 seven optional parameters and no output schema, the description does the necessary job of describing what a result row contains and what happens when called bare. Remaining gaps are minor: result ordering, whether the corpus spans only the current legislature, and how limite interacts with the summary fallback.

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 every parameter, including both enums and the default limit of 12, is already documented there. The description's restatement of the status list and author names adds no syntax or semantics beyond the schema. Baseline 3 applies where the schema carries the parameter burden.

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?

Names the concrete resource (proyectos de ley del Gobierno y proposiciones de ley de los grupos) and enumerates what each record carries: ponente, fecha, estado y último trámite. That is a specific verb+resource statement an agent can match to a question without opening the schema. It stops short of naming siblings like consultar_ley or buscar_leyes, but the resource boundary is drawn sharply enough in the text itself.

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 explicit invocation patterns with two natural-language examples («¿qué leyes presentó Sumar?», «¿qué pasó con la ley de vivienda turística?»), which map directly onto the autor and consulta parameters. It also discloses the no-argument fallback. It does not state when another tool would be preferable, so it falls short of full when/when-not guidance.

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