Skip to main content
Glama

Agent Data Tools: Utilities

Password generator: generate a strong random password

random_password
Read-only

Generate strong random passwords or passphrase-style strings: choose length and character sets, from a cryptographic random source. Generated on demand; nothing is stored or logged. Use when creating accounts or secrets. Example: length=20. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many (1-20, default 1)
lengthNo8-128 characters (default 20)
symbolsNofalse to leave out symbols

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +20
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
    • changedInput schema / properties / length / maximum
      Previous value: -9007199254740991New value: +128
    • changedInput schema / properties / length / minimum
      Previous value: --9007199254740991New value: +8
  2. Changed1 schema field changed
    • changedInput schema / properties / symbols / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "boolean"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the entropy source (cryptographic), that nothing is stored or logged, the price point and payment paths, the 10-free-call allowance, and that failed calls are free. The repeat-charge warning adds real behavioral context for a non-idempotent tool. Only "changes nothing" restates readOnlyHint.

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 core purpose is front-loaded, but the final two sentences interleave billing and safety facts awkwardly, and "Reads or computes only and changes nothing" duplicates readOnlyHint. The mention of "passphrase-style strings" is not backed by any parameter, which adds noise.

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?

Covers purpose, safety, entropy quality, and cost, which is most of what an agent needs for a no-required-parameter tool. With no output schema, it should say what is returned (e.g., a list when count > 1), and that gap keeps it below a 5.

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%, so the baseline is 3. The description adds "choose length and character sets" and an example (length=20), but does not explain count, the 8-128 bounds, or what value the loosely-typed symbols parameter accepts beyond what the schema already states.

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?

States a specific verb and resource ("Generate strong random passwords or passphrase-style strings") with scope detail (length, character sets, cryptographic source). This is clearly distinguishable from random_color, random_number, and random_pick siblings by naming the artifact produced.

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?

"Use when creating accounts or secrets" gives a clear triggering context, and the cost note ("each call is charged, so repeats are not free") implicitly warns against retry loops for a non-idempotent tool. It stops short of naming when-not-to-use or pointing to an alternative 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.

Resources