Skip to main content
Glama
montecbmd

agent-treats-mcp

by montecbmd

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()}`,
          }],
        };
      }
  • 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.",
    ];
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description must disclose behavior. It implies a read-only operation (returns a fact) and notes it is free. However, it omits details like randomness, curation, or rate limits, which is acceptable for a simple tool but not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, concise and front-loaded with the main purpose. Every word serves a purpose, though it lacks structure beyond the sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool with no output schema, the description provides sufficient context: what it does and that it's free. It covers the essential information without missing critical details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist, and schema coverage is 100%. Description adds no parameter info, which is appropriate. Baseline score of 4 for zero-parameter tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns a fact about specified topics using the verb 'Learn' and resource 'fact'. It distinguishes from siblings by topic focus (science, history, nature, universe), though it doesn't explicitly differentiate from other simple output tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool vs alternatives. However, for a zero-parameter, single-purpose tool, usage is self-evident. Lacks explicit exclusion or alternative recommendations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/montecbmd/agent-treats-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server