{"openapi":"3.0.3","info":{"title":"Gnist Context — ECB FX Rates","description":"Simple currency conversion — quick FX lookups with auto-detected latest ECB reference rates.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/ecb-fx/`\n- **Toolkit page:** `/toolkits/ecb-fx`\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/ecb-fx/get_rate":{"post":{"tags":["Finance"],"summary":"get_rate","description":"Get the current exchange rate between two currencies.\n\nUses ECB daily reference rates (updated ~16:00 CET). EUR is used as pivot\nfor cross-currency conversions.\n\nArgs:\n    base: ISO 4217 currency code for the base currency (e.g. \"USD\", \"EUR\", \"NOK\").\n    target: ISO 4217 currency code for the target currency (e.g. \"GBP\", \"JPY\").\n\nReturns:\n    Exchange rate: 1 unit of base = rate units of target, plus the ECB publication date.","operationId":"ecb_fx_get_rate","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":{"base":{"description":"ISO 4217 currency code for the base currency (e.g. \"USD\", \"EUR\", \"NOK\").","type":"string"},"target":{"description":"ISO 4217 currency code for the target currency (e.g. \"GBP\", \"JPY\").","type":"string"}},"required":["base","target"],"type":"object"}}}}}},"/rest/ecb-fx/get_rates":{"post":{"tags":["Finance"],"summary":"get_rates","description":"Get current exchange rates for all ECB-covered currencies against a base currency.\n\nUses ECB daily reference rates (updated ~16:00 CET). Covers ~30 major currencies.\n\nArgs:\n    base: ISO 4217 currency code (e.g. \"USD\", \"EUR\", \"NOK\").\n\nReturns:\n    Dictionary of all available currencies and their rates against the base,\n    plus the ECB publication date.","operationId":"ecb_fx_get_rates","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":{"base":{"description":"ISO 4217 currency code (e.g. \"USD\", \"EUR\", \"NOK\").","type":"string"}},"required":["base"],"type":"object"}}}}}},"/rest/ecb-fx/get_history":{"post":{"tags":["Finance"],"summary":"get_history","description":"Get daily exchange rates for a currency pair over the past N days (up to 90).\n\nUses ECB 90-day historical reference rates.\n\nArgs:\n    base: ISO 4217 currency code for the base currency (e.g. \"USD\", \"EUR\").\n    target: ISO 4217 currency code for the target currency (e.g. \"NOK\", \"GBP\").\n    days: Number of days of history to return (1–90, default 30).\n\nReturns:\n    Time series of daily exchange rates, newest first.","operationId":"ecb_fx_get_history","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":{"base":{"description":"ISO 4217 currency code for the base currency (e.g. \"USD\", \"EUR\").","type":"string"},"target":{"description":"ISO 4217 currency code for the target currency (e.g. \"NOK\", \"GBP\").","type":"string"},"days":{"default":30,"description":"Number of days of history to return (1–90, default 30).","type":"integer"}},"required":["base","target"],"type":"object"}}}}}},"/rest/ecb-fx/report_feedback":{"post":{"tags":["Finance"],"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":"ecb_fx_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":"Finance","description":"Data sources: Finance"}],"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."}}}}