Skip to main content
Glama

Jokes Search Jokes

jokes_search_jokes
Read-onlyIdempotent

Search jokes by keyword or phrase. Returns matching jokes with categories, types, 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": {
      "query": "programmer",
      "amount": 10,
      "category": "Programming"
    },
    "name": "jokes_search_jokes"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesKeyword or phrase to search for within joke text.
amountNoNumber of jokes to return. Defaults to 5.
categoryNoLimit search to a category. One of: Any, Programming, Misc, Dark, Pun, Spooky, Christmas. Defaults to "Any".
safe_modeNoWhen true (the default), only return jokes JokeAPI flags as safe. Set false to include Dark and other unsafe-flagged categories.

Output Schema

NameRequiredDescriptionDefault
jokesYesArray of matching jokes
queryYesSearch query used
totalYesTotal number of matching jokes
categoryYesCategory searched

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, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds the shape of the result (categories, types, content flags), which is mild extra context, but says nothing about filtering behavior, rate limits, or what happens with zero matches.

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?

Two short sentences with the action front-loaded and no filler. It is lean to the point of being terse, but nothing is wasted.

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?

An output schema exists, so return values need not be spelled out, and every parameter is documented in the schema. For a simple four-parameter search tool with full annotation coverage, the definition is essentially sufficient; only sibling routing is missing.

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% and all four parameters carry their own descriptions, including enum-like category values and the safe_mode default. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ('Search jokes by keyword or phrase') plus what comes back ('categories, types, and content flags'). It does not explicitly distinguish itself from sibling 'jokes_get_joke' or 'get_joke_categories', so it stops short of the top band.

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 only implied by the word 'Search' — an agent can infer it should be used when it has a keyword or phrase. There is no explicit when-not guidance, no mention of the single-joke or category-list siblings, and no note on paging vs. requesting more via 'amount'.

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.