Skip to main content
Glama
0xKoller
by 0xKoller

senado-actas

Access official Senate session records from Argentina to research legislative proceedings and track parliamentary activities.

Instructions

Devuelve las actas del senado

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.ts:397-421 (handler)
    The MCP tool handler for 'senado-actas' that invokes getSenadoActas(), processes the response, handles empty results and errors, and formats as JSON content.
    server.tool("senado-actas", "Devuelve las actas del senado", {}, async ({}) => { try { const data = await getSenadoActas(); if (data.length === 0) { return { content: [{ type: "text", text: "No se encontraron actas" }], }; } 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" }, ], }; } });
  • main.ts:69-73 (schema)
    Schema definition for the 'senado-actas' tool in the server constructor, specifying name, description, and empty parameters.
    { name: "senado-actas", description: "Devuelve las actas del senado", parameters: {}, },
  • Helper function that performs the actual API fetch for senate actas from 'https://api.argentinadatos.com/v1/senado/actas'.
    export const getSenadoActas = async () => { const actas = await fetch(`${BASE_URL}/senado/actas`); const data = await actas.json(); return data; };
  • main.ts:397-421 (registration)
    Registration of the 'senado-actas' tool using server.tool, including schema inline and handler.
    server.tool("senado-actas", "Devuelve las actas del senado", {}, async ({}) => { try { const data = await getSenadoActas(); if (data.length === 0) { return { content: [{ type: "text", text: "No se encontraron actas" }], }; } 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" }, ], }; } });

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