Skip to main content
Glama
0xKoller
by 0xKoller

diputados

Access comprehensive data on Argentine deputies with this tool. Retrieve legislative information for research, analysis, or decision-making directly through the MCP Argentina Datos API.

Instructions

Devuelve los diputados.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.ts:473-495 (handler)
    Handler function that registers and executes the 'diputados' tool. Fetches data using getDiputados(), handles empty results and errors, returns JSON response.
    server.tool("diputados", "Devuelve los diputados.", {}, async ({}) => { try { const data = await getDiputados(); if (data.length === 0) { return { content: [{ type: "text", text: "No se encontraron diputados" }], }; } return { content: [ { type: "text", text: JSON.stringify(data, null, 2), mimeType: "application/json", }, ], }; } catch (error) { return { content: [{ type: "text", text: "Error al obtener los diputados" }], }; } });
  • main.ts:82-85 (schema)
    Tool schema definition declaring the 'diputados' tool with name, description, and empty parameters schema.
    name: "diputados", description: "Devuelve los diputados.", parameters: {}, },
  • Helper function getDiputados that performs the actual API fetch from https://api.argentinadatos.com/v1/diputados/diputados and returns the JSON data.
    export const getDiputados = async () => { const diputados = await fetch(`${BASE_URL}/diputados/diputados`); const data = await diputados.json(); return data; };

Other Tools

Related Tools

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