Skip to main content
Glama
brentspore

buildutilities-mcp

by brentspore

Generate Random Token

generate_token
Read-only

Generate cryptographically secure random tokens for API keys, session IDs, nonces, and salts. Choose from hex, base64url, or alphanumeric encodings with configurable byte length.

Instructions

Generate a cryptographically random token — API keys, session ids, nonces, salts. Choose hex, base64url or alphanumeric encoding. Web version: https://buildutilities.com/random-string-generator

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bytesNoBytes of entropy before encoding
countNo
encodingNohex

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds the critical behavioral trait 'cryptographically random', which conveys non-determinism and security properties beyond the annotations. No contradiction exists.

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?

The description is two concise sentences with no wasted words. The core purpose and encoding options are front-loaded, and the additional web link is a minor but acceptable appendage.

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?

For a simple token generator with no output schema and only three parameters, the description covers the essential purpose and encoding behavior. It lacks explicit mention of return format (e.g., a string), but that is implied by the tool name and typical usage. The description is sufficient for an agent to call it correctly without ambiguity.

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 low (33%), only 'bytes' has a schema description. The description explains the 'encoding' parameter by naming the three options, but does not elaborate on 'bytes' (entropy) or 'count' (number of tokens). Given the low coverage, the description should compensate more fully; it partially does by explaining encoding but leaves the other two parameters underdocumented.

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?

The description uses a specific verb ('Generate') and resource ('random token'), and immediately enumerates concrete use cases (API keys, session ids, nonces, salts). It also lists the encoding options, making the tool's role unambiguous and distinct from siblings like generate_uuid or generate_password.

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?

The description provides clear context on when to use this tool (API keys, session ids, nonces, salts) but does not explicitly state when NOT to use it or name alternative tools. The listed use cases help an agent select it over generate_uuid or generate_password, but exclusions are absent.

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