Skip to main content
Glama

get_country_info

Retrieve general country information about Colombia, including capital, flag, currency, and other key details for geographical reference.

Instructions

Obtiene información general sobre Colombia como país.

Returns: Información del país incluyendo nombre, capital, bandera, moneda, etc.

Ejemplo de uso:

  • "¿Cuál es la capital de Colombia?"

  • "Dame información general de Colombia"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the tool logic by fetching data from the '/Country/Colombia' API endpoint using the shared apiRequest function, formats the country information (name, capital, population, symbols, etc.), and returns it as a text content response in MCP format. Handles errors gracefully.
    async () => { try { const country = await apiRequest<any>("/Country/Colombia"); const resultado = { nombre: country.name, capital: country.stateCapital, superficie_km2: country.surface, poblacion: country.population, idioma: country.languages, moneda: country.currency, codigo_iso: country.isoCode, codigo_telefono: country.phonePrefix, dominio_internet: country.internetDomain, bandera: country.flags, escudo: country.coatOfArms, himno: country.nationalAnthem, ave_nacional: country.nationalBird, flor_nacional: country.nationalFlower, arbol_nacional: country.nationalTree, }; return { content: [ { type: "text", text: JSON.stringify(resultado, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: `Error al obtener información del país: ${error instanceof Error ? error.message : "Error desconocido"}`, }, ], }; } }
  • Defines the tool schema with Spanish title and description, empty inputSchema indicating no parameters required, and annotations specifying the tool is read-only, non-destructive, idempotent, and suitable for open-world usage.
    { title: "Obtener Información de Colombia", description: `Obtiene información general sobre Colombia como país. Returns: Información del país incluyendo nombre, capital, bandera, moneda, etc. Ejemplo de uso: - "¿Cuál es la capital de Colombia?" - "Dame información general de Colombia"`, inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, },
  • src/index.ts:497-558 (registration)
    Registers the 'get_country_info' tool with the MCP server using server.registerTool, passing the schema object and inline handler function.
    server.registerTool( "get_country_info", { title: "Obtener Información de Colombia", description: `Obtiene información general sobre Colombia como país. Returns: Información del país incluyendo nombre, capital, bandera, moneda, etc. Ejemplo de uso: - "¿Cuál es la capital de Colombia?" - "Dame información general de Colombia"`, inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, }, async () => { try { const country = await apiRequest<any>("/Country/Colombia"); const resultado = { nombre: country.name, capital: country.stateCapital, superficie_km2: country.surface, poblacion: country.population, idioma: country.languages, moneda: country.currency, codigo_iso: country.isoCode, codigo_telefono: country.phonePrefix, dominio_internet: country.internetDomain, bandera: country.flags, escudo: country.coatOfArms, himno: country.nationalAnthem, ave_nacional: country.nationalBird, flor_nacional: country.nationalFlower, arbol_nacional: country.nationalTree, }; return { content: [ { type: "text", text: JSON.stringify(resultado, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: `Error al obtener información del país: ${error instanceof Error ? error.message : "Error desconocido"}`, }, ], }; } } );

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/crexative/colombia-mcp-server'

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