{"openapi":"3.0.3","info":{"title":"Gnist Context — Language Detection","description":"Detect the language of text with confidence scores — supports 55 languages including CJK.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/language-detection/`\n- **Toolkit page:** `/toolkits/language-detection`\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/language-detection/detect_language":{"post":{"tags":["Utilities"],"summary":"detect_language","description":"Detect the language of a text passage with confidence scores.\n\nReturns the most likely language, its confidence score, and all candidate\nlanguages ranked by probability.\n\nArgs:\n    text: The text to analyze. Works best with at least 20 characters.","operationId":"language_detection_detect_language","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":{"text":{"type":"string"}},"required":["text"],"type":"object"}}}}}},"/rest/language-detection/get_supported_languages":{"post":{"tags":["Utilities"],"summary":"get_supported_languages","description":"List all languages that can be detected.\n\nReturns language codes and their human-readable names.","operationId":"language_detection_get_supported_languages","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/language-detection/report_feedback":{"post":{"tags":["Utilities"],"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":"language_detection_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":"Utilities","description":"Data sources: Utilities"}],"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."}}}}