Skip to main content
Glama

Jokes Get Joke

jokes_get_joke
Read-onlyIdempotent

Get a random joke, optionally filtered by category (e.g., 'general', 'programming') or type ('single' or 'twopart'). Returns joke text, category, and content flags.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "single",
      "category": "Programming",
      "safe_mode": true
    },
    "name": "jokes_get_joke"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoJoke type. One of: single, twopart. Omit to allow either type.
categoryNoJoke category. One of: Any, Programming, Misc, Dark, Pun, Spooky, Christmas. Defaults to "Any".
safe_modeNoWhen true, only return jokes that are flagged safe by JokeAPI. Defaults to true.

Output Schema

NameRequiredDescriptionDefault
jokeNoFull joke text for single-part jokes
safeYesWhether joke is flagged as safe
typeYesJoke type
setupNoSetup text for two-part jokes
categoryYesJoke category
deliveryNoPunchline for two-part jokes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so safety and repeatability are covered. The description adds that results are randomly selected and lists the returned fields, but says nothing about rate limits, failure modes when a category is empty, or how randomness interacts with idempotency.

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?

A single front-loaded sentence with no filler; the filter axes are stated before the return description. The final clause listing return fields is slightly redundant given an output schema exists, but it is brief and not harmful.

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?

With an output schema present, full parameter documentation, and rich annotations, the description needs only to state purpose and filters, which it does. The remaining gap is routing guidance relative to the sibling joke tools, which is not addressed.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented, including the allowed type values and the safe_mode default. The description only repeats the category examples and type values, adding no meaning beyond the schema — the baseline of 3 is appropriate.

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 names a specific verb and resource ("Get a random joke") and states the optional filtering axes (category, type) plus the returned fields. The word "random" implicitly distinguishes it from the sibling jokes_search_jokes, but no sibling is named explicitly, so it stops short of full differentiation.

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?

Usage is implied: fetch one random joke, optionally narrowing by category or type. There is no explicit guidance on when to prefer jokes_search_jokes or the category/flag siblings, and no stated prerequisites, so the agent must infer the routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.