Home / Servers / Text Toolkit / random_string

Random string

An MCP tool from the Text Toolkit server, hosted on mcp.hjlabs.in.

Generate a cryptographically random string or password of a given length from a chosen alphabet: alphanumeric, letters, digits, hex, or "password" (letters, digits and symbols, with at least one of each).

Name on the gateway: text__random_string · read-only.

Parameters

NameTypeDescription
lengthintegerLength, 1 to 1024. Default 32.
alphabetalphanumeric | letters | digits | hex | password | lowercaseDefault "alphanumeric".
countintegerHow many, 1 to 50. Default 1.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "text__random_string",
  "arguments": {}
}

Or connect the Text Toolkit server directly, which lists 43 tools including this one:

Run in your terminal
claude mcp add --transport http hj-text https://mcp.hjlabs.in/mcp/text \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the random string tool with length set to ….

More from Text Toolkit