{"openapi":"3.0.3","info":{"title":"Gnist Context — Country Information","description":"Detailed information on world countries — codes, capitals, population, currencies, languages, and more.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/country-info/`\n- **Toolkit page:** `/toolkits/country-info`\n- **Full API spec:** `/api/openapi.json`\n- **Get an API key:** `/signup`","version":"1.0.0","contact":{"name":"GnistAI","url":"https://gnist.ai"}},"servers":[{"url":"https://context.gnist.ai","description":"Production"}],"paths":{"/rest/country-info/get_country":{"post":{"tags":["Reference"],"summary":"get_country","description":"Get detailed information about a country by ISO code (alpha-2 or alpha-3).\n\nArgs:\n    code: ISO 3166-1 alpha-2 (e.g. \"NO\") or alpha-3 (e.g. \"NOR\") country code.\n\nReturns:\n    Dictionary with country details including capital, population, currencies, and more.","operationId":"country_info_get_country","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"type":"string"}},"required":["code"],"type":"object"}}}}}},"/rest/country-info/search_countries":{"post":{"tags":["Reference"],"summary":"search_countries","description":"Search countries by name (case-insensitive partial match).\n\nArgs:\n    query: Search string to match against country names.\n    limit: Maximum number of results to return (default 10).\n\nReturns:\n    Dictionary with count and list of matching countries.","operationId":"country_info_search_countries","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"query":{"type":"string"},"limit":{"default":10,"type":"integer"}},"required":["query"],"type":"object"}}}}}},"/rest/country-info/list_countries_by_region":{"post":{"tags":["Reference"],"summary":"list_countries_by_region","description":"List all countries in a given region.\n\nArgs:\n    region: Region name — one of Africa, Americas, Asia, Europe, Oceania.\n\nReturns:\n    Dictionary with region, count, and list of countries.","operationId":"country_info_list_countries_by_region","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"region":{"type":"string"}},"required":["region"],"type":"object"}}}}}},"/rest/country-info/get_country_stats":{"post":{"tags":["Reference"],"summary":"get_country_stats","description":"Get summary statistics about countries in the database.\n\nReturns:\n    Dictionary with total countries, UN members, landlocked count, breakdown by region, and total population.","operationId":"country_info_get_country_stats","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}]}},"/rest/country-info/report_feedback":{"post":{"tags":["Reference"],"summary":"report_feedback","description":"Report a bug, feature request, or general feedback for this data source.\n\nUse this when something doesn't work as expected, when you'd like\na new feature, or when you have suggestions for improvement.\n\nArgs:\n    feedback: Describe the issue or suggestion.\n    feedback_type: One of 'bug', 'feature_request', or 'general'.","operationId":"country_info_report_feedback","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"feedback":{"type":"string"},"feedback_type":{"default":"general","type":"string"}},"required":["feedback"],"type":"object"}}}}}}},"tags":[{"name":"Reference","description":"Data sources: Reference"}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"gnist-api-key","description":"API key passed via request header."},"ApiKeyQuery":{"type":"apiKey","in":"query","name":"gnist_api_key","description":"API key passed via query parameter."}}}}