Skip to main content
Glama

TinyFn

random_string

Generate random string(s).

Input Schema

NameRequiredDescriptionDefault
countNoHow many strings to generate
lengthNoLength of string
charsetNoCharacter set: alphanumeric, alpha, numeric, hex, base64alphanumeric

Output Schema

NameRequiredDescriptionDefault
countNo
lengthYes
stringNo
charsetYes
stringsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomStringResponse"New value: +"app__routers__generator_utils__RandomStringResponse"
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__generator_utils__RandomStringResponse"New value: +"RandomStringResponse"
  3. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomStringResponse"New value: +"app__routers__generator_utils__RandomStringResponse"
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__generator_utils__RandomStringResponse"New value: +"RandomStringResponse"
  5. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomStringResponse"New value: +"app__routers__generator_utils__RandomStringResponse"
  6. Changed3 schema fields changed
    • addedOutput schema / $defs / RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__generator_utils__RandomStringResponse"New value: +"RandomStringResponse"
  7. Changed3 schema fields changed
    • removedOutput schema / $defs / RandomStringResponse
      Removed value: -{
      -  "properties": {
      -    "charset": {
      -      "title": "Charset",
      -      "type": "string"
      -    },
      -    "count": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Count"
      -    },
      -    "length": {
      -      "title": "Length",
      -      "type": "integer"
      -    },
      -    "string": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "String"
      -    },
      -    "strings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Strings"
      -    }
      -  },
      -  "required": [
      -    "length",
      -    "charset"
      -  ],
      -  "title": "RandomStringResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__generator_utils__RandomStringResponse
      Added value: +{
      +  "properties": {
      +    "charset": {
      +      "title": "Charset",
      +      "type": "string"
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Count"
      +    },
      +    "length": {
      +      "title": "Length",
      +      "type": "integer"
      +    },
      +    "string": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "String"
      +    },
      +    "strings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Strings"
      +    }
      +  },
      +  "required": [
      +    "length",
      +    "charset"
      +  ],
      +  "title": "RandomStringResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"RandomStringResponse"New value: +"app__routers__generator_utils__RandomStringResponse"
  8. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations are absent, so the description must fully disclose behavior. It does not state any behavioral traits (e.g., randomness source, CPU cost, or side effects). The minimal description leaves critical aspects unexplained.

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

Conciseness3/5

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

The description is extremely concise (three words), which is efficient but arguably too terse. It lacks sufficient detail for an agent to fully understand the tool's operation.

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?

With an output schema present, return values are covered. Despite this, the description omits important context like default behavior or edge cases, especially given the parameter count and sibling variety.

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%, providing a baseline of 3. The description adds no extra semantics beyond the schema's parameter descriptions. It does not clarify charset meanings or how parameters interact.

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 clearly states the verb 'Generate' and the resource 'random string(s)'. It communicates the basic purpose without ambiguity, though it does not differentiate from siblings like 'random_string_2'.

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 given on when to use this tool versus alternatives such as 'random_password', 'generate_passphrase', or 'random_string_2'. The agent is left to infer usage context.

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.