Skip to main content
Glama

Token / password generator

generate_token
Read-only

Generate cryptographically secure random tokens or passwords from selected character sets, with controls for length, count, and excluding ambiguous characters.

Instructions

Generate random tokens or passwords from chosen character sets (cryptographically secure). (Same as IT-Tools /token-generator.)

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": "generate_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
lengthNo
numbersNo
symbolsNo
lowercaseNo
uppercaseNo
excludeAmbiguousNoLeave out look-alike characters such as 0/O and 1/l/I

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, idempotentHint=false, so safety is covered. The description adds one genuine behavioral trait beyond them — 'cryptographically secure' — but says nothing about the entropy source, predictability guarantees, or how the non-idempotent output differs across calls.

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

Conciseness4/5

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

The first sentence is dense and front-loaded with the core action and the security qualifier. The trailing '(Same as IT-Tools /token-generator.)' is a provenance note that adds little for an agent deciding whether to call the tool.

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

Completeness2/5

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

Seven parameters with minimal schema documentation, no output schema, so the return shape (single string vs. array of count strings) is undefined anywhere. For a generator whose whole value is the output, this leaves a real gap the description does not close.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 14% (just excludeAmbiguous), so the description needs to compensate and largely does not. 'Chosen character sets' gestures at the numbers/symbols/lowercase/uppercase toggles, but count vs. length, defaults (count=1, length=32), and the 1-100 / 1-512 caps are left entirely unaddressed.

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?

States a concrete verb+resource: 'Generate random tokens or passwords from chosen character sets.' The phrase 'chosen character sets' signals a configurable generator, which distinguishes it in spirit from fixed-format siblings like generate_uuid or generate_ulid, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Use case is only implied by the nouns 'tokens or passwords' and the security qualifier; there is no when-to-use/when-not statement and no routing to alternatives such as generate_uuid for a plain identifier. An agent can infer intent but must guess at boundaries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.