Skip to main content
Glama

UK Data: Secure generators

generate_password

Read-onlyIdempotent

Generates a cryptographically secure random password with specified length and character type requirements (uppercase, lowercase, numbers, symbols). (cost: 1 credit)

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

Input Schema

NameRequiredDescriptionDefault
lengthNointeger, required, length of password, characters, no default
include_numbersNoboolean, optional, include numeric digits, no unit, default true
include_symbolsNoboolean, optional, include special symbols, no unit, default true
include_lowercaseNoboolean, optional, include lowercase letters, no unit, default true
include_uppercaseNoboolean, optional, include uppercase letters, no unit, default true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The description does add value beyond annotations by disclosing the security property ('cryptographically secure') and a billing cost of 1 credit, neither of which appears in the structured fields. However, 'random password' is in direct tension with idempotentHint=true: repeated calls with identical parameters should yield different secrets, so the annotation mis-describes the behavior an agent should expect. It also omits what is returned (the plaintext secret) and any minimum-length constraint.

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?

Two sentences, front-loaded with the core capability, with the credit cost tucked into a parenthetical rather than dominating. No filler or restated title, though the parenthetical cost could be separated more cleanly from the functional sentence.

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?

For a five-parameter generation tool with no output schema and only generic annotations, the definition leaves real gaps: what the response contains, what happens if all four character-type flags are false, and any minimum length. Annotations carry the safety profile, which lowers the bar, but the idempotency conflict and missing edge-case behavior keep this at merely adequate.

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 description coverage is 100%, so the baseline is 3. The description does add meaning by grouping the four flags into the concept of 'character type requirements' and mapping them to uppercase/lowercase/numbers/symbols, but it does not resolve schema ambiguities such as length being typed as a string while documented as an integer and 'required' while the context reports zero required parameters.

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 specific verb and resource — 'Generates a cryptographically secure random password' — plus the controllable dimensions (length, uppercase, lowercase, numbers, symbols). It is far more specific than siblings like generate_random_string or generate_username, though it never names those siblings to distinguish itself from them explicitly.

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?

There is no when-to-use guidance, no exclusion, and no reference to the obvious alternatives (generate_random_string, generate_username, hash_text) that also produce random strings. An agent must infer from the word 'password' alone that this is the credential-grade generator.

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