{"openapi":"3.0.3","info":{"title":"Gnist Context — Random Facts","description":"Curated database of 150+ interesting facts across 12 categories — science, history, nature, space, and more.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/random-facts/`\n- **Toolkit page:** `/toolkits/random-facts`\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/random-facts/get_random_fact":{"post":{"tags":["Reference"],"summary":"get_random_fact","description":"Get a random interesting fact.\n\nReturns a fact with its category and source attribution. Optionally filter by category.","operationId":"random_facts_get_random_fact","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":false,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by category (e.g. Science, History, Space). Omit for any category."}},"type":"object"}}}}}},"/rest/random-facts/get_random_facts":{"post":{"tags":["Reference"],"summary":"get_random_facts","description":"Get multiple random facts at once.\n\nReturns a list of facts, optionally filtered by category. Facts are sampled without repeats.","operationId":"random_facts_get_random_facts","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":false,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Number of random facts to return (default: 5, max: 50)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by category (e.g. Science, History, Space). Omit for any category."}},"type":"object"}}}}}},"/rest/random-facts/search_facts":{"post":{"tags":["Reference"],"summary":"search_facts","description":"Search for facts by keyword.\n\nSearches across fact text, categories, and source attributions. Case-insensitive.","operationId":"random_facts_search_facts","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":{"description":"Search keyword — matches fact text, category, or source.","type":"string"},"max_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of results (default: 20, max: 100)."}},"required":["query"],"type":"object"}}}}}},"/rest/random-facts/list_fact_categories":{"post":{"tags":["Reference"],"summary":"list_fact_categories","description":"List all available fact categories.\n\nReturns the category names that can be used to filter random facts.","operationId":"random_facts_list_fact_categories","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/random-facts/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":"random_facts_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."}}}}