Skip to main content
Glama
0xKoller

MCP Argentina Datos

by 0xKoller

senado-actas-por-anio

Retrieve Argentine Senate session records for a specific year to access legislative proceedings and official documentation.

Instructions

Devuelve las actas del senado de un año específico

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anioYesEJ: 2025

Implementation Reference

  • main.ts:74-80 (registration)
    Initial tool registration and schema definition in the McpServer constructor's tools array.
    {
      name: "senado-actas-por-anio",
      description: "Devuelve las actas del senado de un año específico",
      parameters: {
        anio: z.number().describe("EJ: 2025"),
      },
    },
  • main.ts:423-470 (handler)
    MCP tool handler registration: validates 'anio' parameter, fetches data using getSenadoActasPorAnio, handles errors and formats response as JSON.
    // senado-actas-por-anio
    server.tool(
      "senado-actas-por-anio",
      "Devuelve las actas del senado de un año específico",
      {
        anio: z.number().describe("EJ: 2025"),
      },
      async ({ anio }) => {
        if (anio === undefined) {
          return {
            content: [
              {
                type: "text",
                text: "No se ha provisto el parámetro 'anio'",
              },
            ],
          };
        }
        try {
          const data = await getSenadoActasPorAnio(anio);
          if (data.length === 0) {
            return {
              content: [
                {
                  type: "text",
                  text: "No se encontraron actas para el año especificado",
                },
              ],
            };
          }
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(data, null, 2),
                mimeType: "application/json",
              },
            ],
          };
        } catch (error) {
          return {
            content: [
              { type: "text", text: "Error al obtener las actas del senado" },
            ],
          };
        }
      }
    );
  • Core implementation: fetches senate actas for a specific year from the Argentina Datos API.
    export const getSenadoActasPorAnio = async (anio: number) => {
      const actas = await fetch(`${BASE_URL}/senado/actas/${anio}`);
      const data = await actas.json();
      return data;
    };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xKoller/mcp-argentina-datos'

If you have feedback or need assistance with the MCP directory API, please join our Discord server