Skip to main content
Glama

Random Gif

random_gif
Read-onlyIdempotent

Get a random GIF, optionally filtered by tag (e.g., "cats"). Returns title, URL, rating, and image URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoOptional tag to filter by, e.g. "dogs" or "anime"

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesGIF ID
urlYesGIF page URL on Giphy
titleYesGIF title
widthYesOriginal GIF width in pixels
heightYesOriginal GIF height in pixels
ratingYesContent rating (e.g., 'g', 'pg', 'pg-13', 'r')
gif_urlYesOriginal GIF URL
downsized_urlYesDownsized GIF URL
fixed_height_urlYesFixed-height GIF URL

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "downsized_url": {
      +      "description": "Downsized GIF URL",
      +      "type": "string"
      +    },
      +    "fixed_height_url": {
      +      "description": "Fixed-height GIF URL",
      +      "type": "string"
      +    },
      +    "gif_url": {
      +      "description": "Original GIF URL",
      +      "type": "string"
      +    },
      +    "height": {
      +      "description": "Original GIF height in pixels",
      +      "type": "number"
      +    },
      +    "id": {
      +      "description": "GIF ID",
      +      "type": "string"
      +    },
      +    "rating": {
      +      "description": "Content rating (e.g., 'g', 'pg', 'pg-13', 'r')",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "GIF title",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "GIF page URL on Giphy",
      +      "type": "string"
      +    },
      +    "width": {
      +      "description": "Original GIF width in pixels",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "title",
      +    "url",
      +    "rating",
      +    "gif_url",
      +    "fixed_height_url",
      +    "downsized_url",
      +    "width",
      +    "height"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "tag": "dogs"
      +  }
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering safety. The description adds useful behavioral context by enumerating the return fields (title, URL, rating, image URLs), which complements the annotations and gives the agent an idea of what to expect.

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 efficient sentence that front-loads the main action and includes an example and return values. Every word is informative, with no filler or redundancy.

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 simplicity (one optional parameter, no required fields, output schema present), the description fully covers purpose, filtering option, and return structure. The presence of an output schema means return values are already documented, and the description adds value without being verbose.

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 for the single parameter 'tag' is 100%, with a clear description and example. The description's mention of tag filtering also reinforces its purpose, but it does not add additional semantic detail beyond what the schema already provides, so a baseline score of 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's function with a specific verb ('Get') and resource ('random GIF'), and explicitly mentions optional filtering by tag. The word 'random' effectively distinguishes it from sibling tools like search_gifs and trending_gifs, which have different purposes.

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 random GIF is needed, with optional tag filtering. It does not explicitly contrast with alternatives such as search_gifs or trending_gifs, but the random selection nature provides sufficient context for basic usage without requiring exclusions.

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.