Get Joke
Get Joke MCP Server
Minimal Model Context Protocol (MCP) server (Node.js) that exposes one tool: get_joke.
Setup
npm installRelated MCP server: Jokes MCP Server
Run
node index.jsOr:
npm startTest (without Inspector)
This repo includes a tiny SDK-based client that spawns the server over stdio, lists tools, and calls get_joke:
npm run test:mcpTool response shape
The get_joke tool returns JSON like:
{
"joke": "Why do programmers prefer dark mode? Because light attracts bugs."
}Publish to the MCP Registry (official)
The official MCP Registry stores metadata only, so you must publish the package to npm first.
Publish to npm (once):
npm adduser
npm publish --access publicPublish metadata to the MCP Registry:
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publishNotes:
package.jsonincludesmcpNameandserver.jsonuses the samename(required for verification).If you change the version, bump it in both
package.jsonandserver.json(and republish to npm).
Available Tools
1 toolget_jokeB
Return a random programming joke as JSON.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the output format ('as JSON') but lacks details on randomness behavior, potential errors, rate limits, or other operational traits. This leaves the agent with incomplete information about how the tool behaves.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without any wasted words. It is appropriately sized and front-loaded, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate but lacks depth. It explains the output format but doesn't cover behavioral aspects like error handling or performance, leaving gaps in context for the agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately does not discuss parameters, earning a baseline score of 4 for not adding unnecessary information beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Return') and resource ('a random programming joke as JSON'), making the purpose specific and understandable. However, with no sibling tools mentioned, there's no opportunity to distinguish from alternatives, so it cannot achieve a perfect score of 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or contextual constraints. It simply states what the tool does without any usage context, which is a significant gap in guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.1- First observed
get_joke
TDQS
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'get_joke' has a clear and distinct purpose, making it impossible for an agent to misselect among non-existent alternatives.
The single tool name 'get_joke' follows a consistent verb_noun pattern (get + joke). Since there is only one tool, there is no inconsistency in naming conventions to evaluate, and it adheres to a predictable style.
A single tool is too few for most server purposes, as it limits functionality and scope. While it might suffice for a minimal joke service, it feels thin and lacks depth, potentially hindering more complex agent interactions or broader use cases.
Inferring the domain as joke retrieval, the tool 'get_joke' provides a basic operation. However, there are notable gaps: no ability to filter jokes by category, search for specific jokes, or manage a joke collection (e.g., create, update, delete), which limits the surface's utility for varied agent needs.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Get a random dad joke or search by keyword to fit any moment. Retrieve specific jokes by ID for re…
Jokes MCP — wraps JokeAPI v2 (free, no auth)
Dad Jokes MCP — wraps icanhazdadjoke.com (free, no auth)
Greet people warmly or roast them with playful banter. Explore the origin of 'Hello, World' for qu…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch random jokes from multiple sources including Chuck Norris jokes, Dad jokes, and Yo Mama jokes through integration with popular joke APIs.MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables users to retrieve various types of jokes including Chuck Norris and Dad jokes through natural language requests. Demonstrates MCP integration with Microsoft Copilot Studio and GitHub Copilot for humor-focused AI interactions.-
- -licenseNot gradedqualityNot gradedmaintenanceEnables developers to retrieve short jokes in multiple categories and languages during task processing. Provides fast offline fallbacks and configurable joke providers for entertainment during development workflows.-
- AlicenseNot gradedqualityDmaintenanceEnables users to fetch jokes from various categories including Chuck Norris jokes and dad jokes. Provides a humor-focused experience through natural language requests integrated with Microsoft Copilot Studio.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Hamzaaamin/Get-Joke'
If you have feedback or need assistance with the MCP directory API, please join our Discord server