Skip to main content
Glama

Random By Category

random_by_category
Read-onlyIdempotent

Return a random food image URL for a specific category; valid categories: biryani, burger, butter-chicken, dessert, dosa, idly, pasta, pizza, rice, samosa.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageNoURL to a food image from the specified category

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "category": "dessert"
      +  },
      +  {
      +    "category": "pizza"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "image": {
      +      "description": "URL to a food image from the specified category",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior1/5

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

The description states the tool returns a 'random' image URL, implying non-deterministic results. This directly contradicts the annotation 'idempotentHint: true', which indicates the tool should be idempotent (same input yields same output). This is a clear annotation contradiction.

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, front-loaded sentence that efficiently conveys the tool's purpose and valid categories. Every word adds value with no redundancy or unnecessary detail.

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's low complexity (one parameter with enum, output schema exists, strong annotations), the description is complete: it states the action, input, output (URL), and valid values. The annotations cover safety and idempotency (despite the contradiction in behavior), and the description adds the remaining context.

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

Parameters2/5

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

The description lists valid categories, but this merely repeats the enum values already in the input schema. Since schema coverage is 0%, the description should add new meaning, but it does not. It provides no additional context about the parameter's format, constraints, or behavior.

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 verb 'Return' and the resource 'random food image URL for a specific category', distinguishing it from sibling 'random' which likely returns non-category-specific results. The list of valid categories further clarifies scope.

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 explicitly says 'for a specific category' and lists valid categories, giving clear usage context. However, it does not mention when not to use this tool or compare with alternatives like the sibling 'random' tool.

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.