Skip to main content
Glama

Joke By Category

joke_by_category
Read-onlyIdempotent

Get a random Chuck Norris joke from a specific category. Returns joke text and ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYesCategory to fetch a joke from. Use list_categories to see valid values.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique joke identifier
urlYesURL to the joke on chucknorris.io
jokeYesThe joke text
categoriesYesList of categories

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "categories": {
      +      "description": "List of categories",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "id": {
      +      "description": "Unique joke identifier",
      +      "type": "string"
      +    },
      +    "joke": {
      +      "description": "The joke text",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "URL to the joke on chucknorris.io",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "joke",
      +    "categories",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "category": "nerdy"
      +  },
      +  {
      +    "category": "sport"
      +  }
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false, which convey safety and non-mutating behavior. The description adds a small behavioral detail by stating the return includes joke text and ID. No contradictions with annotations, but it does not disclose error handling or other runtime behaviors beyond what annotations cover.

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

Conciseness5/5

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

The description is a single, concise sentence that front-loads the core purpose and return value. No wasted words, and it fits the simple nature of the tool.

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

Completeness5/5

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

Given the tool has only one parameter, 100% schema coverage, an output schema, and comprehensive annotations, the description fully covers the essential information. It states what the tool does and what it returns. Nothing critical is missing for an agent to select and invoke it correctly.

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 coverage is 100% with the parameter 'category' fully described as 'Category to fetch a joke from. Use list_categories to see valid values.' The description adds no extra parameter semantics beyond confirming it is a specific category, so the schema carries the burden adequately. Baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly states the tool gets a random Chuck Norris joke from a specific category and returns the joke text and ID. The verb ('Get'), resource ('random Chuck Norris joke'), and scope ('from a specific category') are all explicit, distinguishing it from sibling tools like random_joke or search_jokes.

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

Usage Guidelines4/5

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

The description implies when to use this tool (when a joke from a specific category is needed) and the schema parameter description explicitly instructs to use list_categories for valid values. However, it does not mention alternatives like random_joke for unfiltered jokes or search_jokes for searching, so it lacks explicit exclusions or named alternatives.

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.