Skip to main content
Glama

TinyFn

random_color

Generate a random color.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "random_color"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
hexYes
rgbYes
rgb_stringYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomColorResponse
      Removed value: -{
      -  "properties": {
      -    "hex": {
      -      "title": "Hex",
      -      "type": "string"
      -    },
      -    "rgb": {
      -      "$ref": "#/$defs/RGBValues"
      -    },
      -    "rgb_string": {
      -      "title": "Rgb String",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hex",
      -    "rgb",
      -    "rgb_string"
      -  ],
      -  "title": "RandomColorResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__color_utils__RandomColorResponse
      Added value: +{
      +  "properties": {
      +    "hex": {
      +      "title": "Hex",
      +      "type": "string"
      +    },
      +    "rgb": {
      +      "$ref": "#/$defs/RGBValues"
      +    },
      +    "rgb_string": {
      +      "title": "Rgb String",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hex",
      +    "rgb",
      +    "rgb_string"
      +  ],
      +  "title": "RandomColorResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomColorResponse"New value: +"app__routers__color_utils__RandomColorResponse"
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomColorResponse
      Added value: +{
      +  "properties": {
      +    "hex": {
      +      "title": "Hex",
      +      "type": "string"
      +    },
      +    "rgb": {
      +      "$ref": "#/$defs/RGBValues"
      +    },
      +    "rgb_string": {
      +      "title": "Rgb String",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hex",
      +    "rgb",
      +    "rgb_string"
      +  ],
      +  "title": "RandomColorResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__color_utils__RandomColorResponse
      Removed value: -{
      -  "properties": {
      -    "hex": {
      -      "title": "Hex",
      -      "type": "string"
      -    },
      -    "rgb": {
      -      "$ref": "#/$defs/RGBValues"
      -    },
      -    "rgb_string": {
      -      "title": "Rgb String",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hex",
      -    "rgb",
      -    "rgb_string"
      -  ],
      -  "title": "RandomColorResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__color_utils__RandomColorResponse"New value: +"RandomColorResponse"
  3. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomColorResponse
      Removed value: -{
      -  "properties": {
      -    "hex": {
      -      "title": "Hex",
      -      "type": "string"
      -    },
      -    "rgb": {
      -      "$ref": "#/$defs/RGBValues"
      -    },
      -    "rgb_string": {
      -      "title": "Rgb String",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hex",
      -    "rgb",
      -    "rgb_string"
      -  ],
      -  "title": "RandomColorResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__color_utils__RandomColorResponse
      Added value: +{
      +  "properties": {
      +    "hex": {
      +      "title": "Hex",
      +      "type": "string"
      +    },
      +    "rgb": {
      +      "$ref": "#/$defs/RGBValues"
      +    },
      +    "rgb_string": {
      +      "title": "Rgb String",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hex",
      +    "rgb",
      +    "rgb_string"
      +  ],
      +  "title": "RandomColorResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomColorResponse"New value: +"app__routers__color_utils__RandomColorResponse"
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomColorResponse
      Added value: +{
      +  "properties": {
      +    "hex": {
      +      "title": "Hex",
      +      "type": "string"
      +    },
      +    "rgb": {
      +      "$ref": "#/$defs/RGBValues"
      +    },
      +    "rgb_string": {
      +      "title": "Rgb String",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hex",
      +    "rgb",
      +    "rgb_string"
      +  ],
      +  "title": "RandomColorResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__color_utils__RandomColorResponse
      Removed value: -{
      -  "properties": {
      -    "hex": {
      -      "title": "Hex",
      -      "type": "string"
      -    },
      -    "rgb": {
      -      "$ref": "#/$defs/RGBValues"
      -    },
      -    "rgb_string": {
      -      "title": "Rgb String",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hex",
      -    "rgb",
      -    "rgb_string"
      -  ],
      -  "title": "RandomColorResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__color_utils__RandomColorResponse"New value: +"RandomColorResponse"
  5. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomColorResponse
      Removed value: -{
      -  "properties": {
      -    "hex": {
      -      "title": "Hex",
      -      "type": "string"
      -    },
      -    "rgb": {
      -      "$ref": "#/$defs/RGBValues"
      -    },
      -    "rgb_string": {
      -      "title": "Rgb String",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hex",
      -    "rgb",
      -    "rgb_string"
      -  ],
      -  "title": "RandomColorResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__color_utils__RandomColorResponse
      Added value: +{
      +  "properties": {
      +    "hex": {
      +      "title": "Hex",
      +      "type": "string"
      +    },
      +    "rgb": {
      +      "$ref": "#/$defs/RGBValues"
      +    },
      +    "rgb_string": {
      +      "title": "Rgb String",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hex",
      +    "rgb",
      +    "rgb_string"
      +  ],
      +  "title": "RandomColorResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomColorResponse"New value: +"app__routers__color_utils__RandomColorResponse"
  6. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomColorResponse
      Added value: +{
      +  "properties": {
      +    "hex": {
      +      "title": "Hex",
      +      "type": "string"
      +    },
      +    "rgb": {
      +      "$ref": "#/$defs/RGBValues"
      +    },
      +    "rgb_string": {
      +      "title": "Rgb String",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hex",
      +    "rgb",
      +    "rgb_string"
      +  ],
      +  "title": "RandomColorResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__color_utils__RandomColorResponse
      Removed value: -{
      -  "properties": {
      -    "hex": {
      -      "title": "Hex",
      -      "type": "string"
      -    },
      -    "rgb": {
      -      "$ref": "#/$defs/RGBValues"
      -    },
      -    "rgb_string": {
      -      "title": "Rgb String",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hex",
      -    "rgb",
      -    "rgb_string"
      -  ],
      -  "title": "RandomColorResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__color_utils__RandomColorResponse"New value: +"RandomColorResponse"
  7. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It does not disclose the output format (e.g., hex, RGB), randomness source, or any side effects. The description is too minimal to inform the agent about behavioral traits.

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 sentence that is front-loaded and contains no unnecessary words. It is highly concise and efficient.

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

Completeness3/5

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

Given the tool has zero parameters and an output schema exists, the description provides the minimal needed information. However, it omits details about color representation and usage context, which reduces completeness.

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?

There are no parameters, and schema description coverage is 100% (trivially). The description adds no additional meaning beyond the schema, achieving the baseline for high coverage.

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 'Generate a random color.' clearly states the verb ('Generate') and resource ('a random color'). However, it does not distinguish from sibling tools like 'random_color_2' or 'generate_color', which may have similar functionality.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. There is no mention of context, prerequisites, or when not to use it.

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.