fun_fact
Learn a fascinating fact about science, history, nature, or the universe. Free and interesting.
Instructions
Learn a genuinely fascinating fact about science, history, nature, or the universe. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:203-217 (handler)The tool definition and handler for 'fun_fact'. The server.tool() call registers the tool name 'fun_fact', provides a description, has no input schema (empty object {}), and the async handler picks a random fact from the funFacts array, picks a random category label, and returns the formatted text response.
// ── Tool: Fun Fact ────────────────────────────────────────────────────────── server.tool( "fun_fact", "Learn a genuinely fascinating fact about science, history, nature, or the universe. Free.", {}, async () => { return { content: [{ type: "text", text: `🧠 Fun Fact\n\n${pick(funFacts)}\n\nCategory: ${pick(["science", "history", "nature", "biology", "space"])}\n${storePromo()}`, }], }; } ); - server.js:205-216 (registration)Registration of the 'fun_fact' tool via server.tool() with name, description, empty schema, and handler.
server.tool( "fun_fact", "Learn a genuinely fascinating fact about science, history, nature, or the universe. Free.", {}, async () => { return { content: [{ type: "text", text: `🧠 Fun Fact\n\n${pick(funFacts)}\n\nCategory: ${pick(["science", "history", "nature", "biology", "space"])}\n${storePromo()}`, }], }; } - server.js:73-89 (helper)The funFacts data array containing 15 fascinating facts about science, history, nature, biology, and space that the 'fun_fact' tool randomly selects from.
const funFacts = [ "Honey never spoils. Archaeologists found 3,000-year-old honey in Egyptian tombs that was still edible.", "Octopuses have three hearts, blue blood, and nine brains — one central and one in each arm.", "A group of flamingos is called a 'flamboyance.'", "Bananas are berries, but strawberries aren't.", "There are more possible chess games than atoms in the observable universe.", "Cleopatra lived closer in time to the Moon landing than to the construction of the Great Pyramid.", "Scotland's national animal is the unicorn.", "A bolt of lightning is five times hotter than the surface of the sun.", "Cows have best friends and get stressed when separated from them.", "Sharks have been around longer than trees. Sharks: ~450 million years. Trees: ~350 million years.", "Humans share 60% of their DNA with bananas.", "The dot over the letters 'i' and 'j' is called a 'tittle.'", "Oxford University is older than the Aztec Empire.", "If you shuffle a deck of cards properly, the resulting order has almost certainly never existed before in history.", "A teaspoon of a neutron star would weigh about 6 billion tons.", ];