Skip to main content
Glama

TinyFn

random_bytes_2

Generate cryptographically secure random bytes.

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: hex, base64, urlsafehex
lengthNoNumber of bytes to generate

Output Schema

NameRequiredDescriptionDefault
bytesYes
valueYes
formatYes
secureYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomBytesResponse"New value: +"app__routers__random_utils__RandomBytesResponse"
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__random_utils__RandomBytesResponse"New value: +"RandomBytesResponse"
  3. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomBytesResponse"New value: +"app__routers__random_utils__RandomBytesResponse"
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__random_utils__RandomBytesResponse"New value: +"RandomBytesResponse"
  5. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomBytesResponse"New value: +"app__routers__random_utils__RandomBytesResponse"
  6. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__random_utils__RandomBytesResponse"New value: +"RandomBytesResponse"
  7. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomBytesResponse
      Removed value: -{
      -  "properties": {
      -    "bytes": {
      -      "title": "Bytes",
      -      "type": "integer"
      -    },
      -    "format": {
      -      "title": "Format",
      -      "type": "string"
      -    },
      -    "secure": {
      -      "title": "Secure",
      -      "type": "boolean"
      -    },
      -    "value": {
      -      "title": "Value",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "value",
      -    "bytes",
      -    "format",
      -    "secure"
      -  ],
      -  "title": "RandomBytesResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__random_utils__RandomBytesResponse
      Added value: +{
      +  "properties": {
      +    "bytes": {
      +      "title": "Bytes",
      +      "type": "integer"
      +    },
      +    "format": {
      +      "title": "Format",
      +      "type": "string"
      +    },
      +    "secure": {
      +      "title": "Secure",
      +      "type": "boolean"
      +    },
      +    "value": {
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "value",
      +    "bytes",
      +    "format",
      +    "secure"
      +  ],
      +  "title": "RandomBytesResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomBytesResponse"New value: +"app__routers__random_utils__RandomBytesResponse"
  8. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations provided; description carries the burden. It discloses cryptographic security but lacks details on idempotency or side effects. Partial transparency.

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?

Eleven words, one sentence, front-loaded with essential information. No filler.

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?

Given output schema and simple parameters, the description is adequate. However, lacks usage guidance for a tool with many siblings.

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%, and the description does not add extra meaning beyond what the schema already provides (format and length with defaults). Baseline score of 3.

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?

Description uses specific verb 'generate' and resource 'cryptographically secure random bytes', clearly stating the tool's function. It distinguishes from sibling tools like 'random_bytes' by emphasizing security.

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 on when to use this tool versus alternatives like 'random_bytes' or 'random_hex'. The description does not mention exclusions or contexts.

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.