Skip to main content
Glama

Asistencia de legisladores (Parlamento)

asistencia_parlamentaria
Read-onlyIdempotent

Query Senate or Chamber of Deputies attendance by legislature, filter by name, compare attendance for legislators meeting a citation threshold, and flag repeated names that may be homonyms.

Instructions

Asistencia a sesiones del Senado o de Diputados en una legislatura (46 a 50, la actual): menor y mayor asistencia entre quienes tuvieron al menos minimo_citaciones (para no comparar suplentes con dos citaciones), y las filas que contienen nombre. Avisa de nombres repetidos, que pueden ser homónimos.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "camara": "<camara>"
    },
    "name": "asistencia_parlamentaria"
  }
}

Input Schema

NameRequiredDescriptionDefault
camaraYes
nombreNo
cantidadNo
legislaturaNo
minimo_citacionesNo

Output Schema

NameRequiredDescriptionDefault
notaYes
avisoNo
bajadoYes
camaraYes
fuenteYes
personasYes
encontradosYes
legislaturaYes
procedenciaNo
con_el_minimoYes
copia_vencidaNo
filas_sin_nombreYes
mayor_asistenciaYes
menor_asistenciaYes
minimo_citacionesYes
nombres_repetidosYes
fuera_por_pocas_citacionesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.0
    • addedOutput schema / $defs / CopiaUsada
      Added value: +{
      +  "description": "Una copia del disco que respaldó la respuesta: qué archivo, de cuándo y con qué sha256.\n\nEs lo que permite verificar un número contra los bytes exactos que leyó el servidor, sin creerle\nnada a la respuesta. `url` va en `None` cuando la dirección la arma la fuente dentro de `uydatos`\ny no llega hasta acá: preferible un hueco a una URL inventada.",
      +  "properties": {
      +    "archivo": {
      +      "title": "Archivo",
      +      "type": "string"
      +    },
      +    "bajado": {
      +      "title": "Bajado",
      +      "type": "string"
      +    },
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "sha256": {
      +      "title": "Sha256",
      +      "type": "string"
      +    },
      +    "url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Url"
      +    }
      +  },
      +  "required": [
      +    "archivo",
      +    "url",
      +    "sha256",
      +    "bajado",
      +    "bytes"
      +  ],
      +  "title": "CopiaUsada",
      +  "type": "object"
      +}
    • addedOutput schema / properties / procedencia
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/CopiaUsada"
      +  },
      +  "title": "Procedencia",
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv0.14.0
    • addedOutput schema / properties / aviso
      Added value: +{
      +  "title": "Aviso",
      +  "type": "string"
      +}
    • addedOutput schema / properties / copia_vencida
      Added value: +{
      +  "title": "Copia Vencida",
      +  "type": "boolean"
      +}
  3. First observedv0.13.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower, yet the description adds real behavior: results are the min/max attendance cohort rather than a raw table, the ranking is bounded by `minimo_citaciones`, and it warns about duplicate names that may be homonyms. That data-quality caveat is exactly the kind of context annotations cannot convey.

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?

Compact — essentially one dense sentence plus a short warning — and front-loaded with the resource and scope. The parenthetical nesting ('(46 a 50, la actual)', '(para no comparar suplentes...)') makes it slightly parse-heavy but no sentence is wasted.

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?

An output schema exists, so return values need not be spelled out, and the required `camara` enum is documented in the schema. Still, an agent calling this with a 0%-covered 5-parameter schema is left guessing what `cantidad` controls, which is a meaningful gap for a tool that returns a ranked subset.

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 0% across 5 parameters, so the description must compensate. It explains `minimo_citaciones` (via the substitute-legislator rationale), constrains `legislatura` to 46–50 with 50 as current, and ties `nombre` to row filtering, but `cantidad` (default 10) is never explained, leaving one of five parameters undocumented anywhere.

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 a specific verb and resource: attendance to Senate or Deputies sessions in a given legislature, and specifies what comes back (lowest and highest attendance plus rows matching `nombre`). An agent can distinguish it from siblings like `proyectos_parlamento` or `pedidos_de_informes` because the resource is parliamentary attendance, though no sibling is named explicitly.

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?

Usage is implied rather than stated: the description explains the purpose of `minimo_citaciones` ('para no comparar suplentes con dos citaciones'), which hints at how to use it sensibly, but gives no when-to-use conditions, no prerequisites, and no routing to or away from alternatives.

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