Skip to main content
Glama
xiaobenyang-com

Random-Generator

随机数生成服务器 Random Generator

一款符合MCP协议的加密安全随机数生成服务器,适用于AI应用、LLM及其他需要高质量随机数的系统。 An encrypted and secure random number generation server that complies with the MCP protocol, suitable for AI applications, LLMS, and other systems that require high-quality random numbers.## 工具列表 Tool List

本MCP服务封装下列工具,可让模型通过标准化接口调用以下功能。 本MCP服务封装下列工具,可让模型通过标准化接口调用以下功能。

工具 Tool

描述 Description

generate_random_integer

Generate cryptographically secure random integers within a specified range

generate_random_float

Generate cryptographically secure random floating-point numbers

generate_random_bytes

Generate cryptographically secure random bytes

generate_uuid

Generate a cryptographically secure UUID (v4)

generate_random_string

Generate a cryptographically secure random string

generate_random_choice

Randomly select items from a given list using cryptographically secure randomness

generate_random_boolean

Generate cryptographically secure random boolean values

检查服务 ## Inspector

工具在线测试: https://mcp.xiaobenyang.com/inspector/1777316659559427

Online Tool test https://mcp.xiaobenyang.com/inspector/1777316659559427

Related MCP server: Random Value MCP Server

服务配置 MCP Server Config

如何获取 XBY-APIKEY ? How to get XBY-APIKEY ?

访问小笨羊科技网站 https://xiaobenyang.com,注册用户即可获得APIKEY Visit XiaoBenYang website https://xiaobenyang.com, register and get the APIKEY.

SSE

{
  "mcpServers": {
    "随机数生成服务器": {
      "headers": {
        "XBY-APIKEY": "<YOUR_XBY_APIKEY>"
      },
      "type": "sse",
      "url": "https://mcp.xiaobenyang.com/1777316659559427/sse"
    }
  }
}

STREAMABLE HTTP

{
  "mcpServers": {
    "随机数生成服务器": {
      "headers": {
        "XBY-APIKEY": "<YOUR_XBY_APIKEY>"
      },
      "type": "streamable_http",
      "url": "https://mcp.xiaobenyang.com/1777316659559427/mcp"
    }
  }
}

STDIO

{
    "mcpServers": {
        "随机数生成服务器": {
          "command": "npx",
          "args": [
            "-y",
            "xiaobenyang-mcp"
          ],
          "env": {
            "XBY_APIKEY": "<YOUR_XBY_APIKEY>",
            "mcpId": "1777316659559427",
          },
          "transport": "stdio"
        }
      }
}

Available Tools

7 tools
generate_random_booleangenerate_random_booleanC

Generate cryptographically secure random boolean values

ParametersJSON Schema
NameRequiredDescriptionDefault
countNo
probabilityNo

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It mentions 'cryptographically secure', which adds some behavioral context about security, but fails to disclose other traits like performance, error handling, or output format. For a tool with parameters, this is insufficient to guide effective use.

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 a single, efficient sentence with no wasted words. It's appropriately sized and front-loaded, directly stating the core functionality without unnecessary elaboration.

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?

Given the complexity (two parameters, no annotations, no output schema), the description is incomplete. It lacks parameter explanations, usage context, and details on return values, making it inadequate for an agent to reliably invoke this tool without guesswork.

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 0%, so the description must compensate. It doesn't explain the 'count' or 'probability' parameters at all, leaving their purpose and effects undocumented. This is a significant gap given the two parameters and low schema coverage.

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?

The description clearly states the verb ('generate') and resource ('cryptographically secure random boolean values'), making the purpose evident. However, it doesn't explicitly differentiate from sibling tools like 'generate_random_choice' or 'generate_random_integer', which could also produce boolean-like outputs, so it doesn't achieve full sibling distinction.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention scenarios where boolean generation is preferred over other random generation tools, nor does it specify prerequisites or exclusions, leaving usage context ambiguous.

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

generate_random_bytesgenerate_random_bytesC

Generate cryptographically secure random bytes

ParametersJSON Schema
NameRequiredDescriptionDefault
lengthNo
encodingNo

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions 'cryptographically secure' (a valuable behavioral trait), it doesn't address other important aspects like performance characteristics, rate limits, error conditions, or what happens with invalid parameters. For a tool that generates random data, more behavioral context would be helpful.

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 extremely concise - a single sentence that states the core purpose without any wasted words. It's front-loaded with the essential information. Every word earns its place, making it efficient for an agent to parse.

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?

Given the complexity of generating random bytes (cryptographic security implications), 2 parameters with 0% schema coverage, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the tool returns, how to interpret the output, or provide guidance on parameter usage. The 'cryptographically secure' qualifier is helpful but doesn't compensate for other gaps.

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?

With 0% schema description coverage for both parameters, the description provides no information about what 'length' and 'encoding' mean or how they should be used. The schema shows length is an integer with wide bounds but no context about typical values, and encoding is a string with no guidance about supported formats. The description doesn't compensate for this lack of parameter documentation.

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?

The description clearly states the tool's purpose: 'Generate cryptographically secure random bytes'. It specifies the verb ('generate') and resource ('random bytes') with the important qualifier 'cryptographically secure'. However, it doesn't explicitly differentiate from sibling tools like generate_random_string or generate_random_integer, which all generate random data but of different types.

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?

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like generate_random_string and generate_random_integer available, there's no indication of when bytes generation is appropriate versus string or integer generation. No context about use cases or exclusions is provided.

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

generate_random_choicegenerate_random_choiceA

Randomly select items from a given list using cryptographically secure randomness

ParametersJSON Schema
NameRequiredDescriptionDefault
choicesYes
countNo
allow_duplicatesNo

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It adds valuable context about the randomness quality ('cryptographically secure'), but doesn't describe important behavioral aspects like whether the selection is weighted, what happens when count exceeds choices length, default behaviors, or error conditions. The description provides some behavioral insight but leaves significant gaps.

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 a single, efficient sentence that communicates the core functionality without unnecessary words. It's appropriately sized for a simple selection tool and front-loads the essential information. Every word earns its place in conveying the tool's purpose and quality characteristic.

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?

Given 3 parameters with 0% schema coverage, no annotations, and no output schema, the description is insufficiently complete. While it clearly states what the tool does, it provides no guidance on how to use it effectively - missing parameter explanations, return value information, error handling, and practical usage examples that would help an agent invoke it correctly.

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?

With 0% schema description coverage and 3 parameters, the description provides no information about any parameters. It doesn't mention the 'choices' array, 'count' integer, or 'allow_duplicates' boolean parameter at all. The description fails to compensate for the complete lack of schema documentation, leaving all parameters semantically undefined.

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 clearly states the tool's purpose with a specific verb ('Randomly select') and resource ('items from a given list'), and distinguishes it from siblings by focusing on list selection rather than generating specific data types like booleans or integers. It adds the important detail of 'cryptographically secure randomness' which differentiates it from basic random selection tools.

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?

The description implies usage context through 'cryptographically secure randomness' which suggests security-sensitive applications, but doesn't explicitly state when to use this tool versus the sibling tools. No alternatives or exclusions are mentioned, leaving the agent to infer appropriate usage scenarios based on the tool's name and description alone.

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

generate_random_floatgenerate_random_floatB

Generate cryptographically secure random floating-point numbers

ParametersJSON Schema
NameRequiredDescriptionDefault
minNo
maxNo
countNo
precisionNo

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'cryptographically secure,' which adds some context about security and randomness quality, but fails to cover other critical aspects like performance, rate limits, error handling, or output format. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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 a single, efficient sentence with zero waste—it directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, making it easy to grasp quickly.

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?

Given the complexity (4 parameters, no annotations, no output schema), the description is incomplete. It lacks details on parameter usage, behavioral traits beyond security, and output expectations. For a tool with rich input schema but no structured support, the description should do more to guide effective use.

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?

The input schema has 0% description coverage, so parameters (min, max, count, precision) are undocumented in the schema. The description does not compensate by explaining what these parameters mean, their roles in generating floats, or any constraints beyond the schema's numeric types. This results in poor semantic clarity for users.

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 clearly states the specific action ('generate'), resource type ('cryptographically secure random floating-point numbers'), and distinguishes it from siblings by specifying the numeric type (float vs boolean, bytes, integer, string, etc.). It precisely communicates what the tool does without being vague or tautological.

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?

The description provides no guidance on when to use this tool versus its siblings (e.g., generate_random_integer for integers, generate_random_choice for selections) or any alternatives. It lacks context about appropriate scenarios, prerequisites, or exclusions, offering only a basic functional statement.

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

generate_random_integergenerate_random_integerC

Generate cryptographically secure random integers within a specified range

ParametersJSON Schema
NameRequiredDescriptionDefault
minNo
maxNo
countNo

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden. It mentions 'cryptographically secure,' which is a key behavioral trait, but fails to disclose other aspects like performance (e.g., speed, rate limits), error handling (e.g., what happens if min > max), or output format (e.g., single integer vs. list). This leaves significant gaps for a tool with three parameters.

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 a single, efficient sentence with zero waste. It's front-loaded with the core purpose and includes the key qualifier 'cryptographically secure.' Every word earns its place without redundancy or fluff.

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?

Given the complexity (3 parameters, no annotations, no output schema), the description is incomplete. It lacks details on parameter usage, behavioral traits beyond security, and output expectations. For a random generation tool with multiple siblings, more context is needed to guide effective use.

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 0%, so the description must compensate. It implies parameters for range ('within a specified range') but doesn't explain min, max, or count. No details on default values, constraints (e.g., min <= max), or that count might generate multiple integers. The description adds minimal value beyond the bare schema.

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?

The description clearly states the verb ('Generate') and resource ('cryptographically secure random integers') with scope ('within a specified range'). It distinguishes from siblings like generate_random_boolean or generate_random_float by specifying integer generation, though it doesn't explicitly contrast with generate_random_choice which might also involve integers.

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?

The description provides no guidance on when to use this tool versus alternatives like generate_random_float for decimals or generate_random_choice for selections from a list. It lacks context about scenarios where integers are preferred over other random types, leaving usage decisions to inference.

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

generate_random_stringgenerate_random_stringC

Generate a cryptographically secure random string

ParametersJSON Schema
NameRequiredDescriptionDefault
lengthNo
charsetNo
countNo

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'cryptographically secure' which is valuable context about security quality, but doesn't address other important behaviors like performance characteristics, error conditions, or what happens when parameters are omitted. For a tool with 3 parameters and no annotation coverage, this is insufficient.

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 a single, efficient sentence that states exactly what the tool does without any wasted words. It's appropriately sized for a simple utility tool and gets straight to the point with no unnecessary elaboration.

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?

For a tool with 3 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what the parameters do, what format the output takes, or provide any examples. While the tool's function is simple, the complete lack of parameter documentation and behavioral context makes this description insufficient for proper tool selection and invocation.

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?

With 0% schema description coverage and 3 parameters (length, charset, count), the description provides no information about what these parameters mean or how they affect the output. The schema only shows types and ranges without explaining that 'length' determines string length, 'charset' defines allowed characters, or 'count' specifies how many strings to generate. The description fails to compensate for the complete lack of schema documentation.

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?

The description clearly states the verb ('generate') and resource ('cryptographically secure random string'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like generate_random_bytes or generate_random_choice, which also generate random data but with different output formats.

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?

The description provides no guidance on when to use this tool versus alternatives like generate_random_bytes (for raw bytes) or generate_random_choice (for selecting from a list). There's no mention of use cases, prerequisites, or exclusions, leaving the agent to infer usage context from the tool name alone.

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

generate_uuidgenerate_uuidC

Generate a cryptographically secure UUID (v4)

ParametersJSON Schema
NameRequiredDescriptionDefault
countNo
formatNo

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'cryptographically secure' which hints at quality/security, but doesn't describe output format, performance characteristics, error conditions, or side effects. For a tool with parameters and no annotation coverage, this is insufficient.

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 a single, efficient sentence with zero waste. It's appropriately sized for a simple tool and front-loads the essential information. Every word earns its place without unnecessary elaboration.

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?

Given 2 parameters with 0% schema coverage, no annotations, and no output schema, the description is incomplete. It doesn't explain what the tool returns, how parameters affect output, or behavioral constraints. For a parameterized tool without structured documentation, the description should provide more context.

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 0%, so the schema provides no parameter documentation. The description mentions nothing about the 'count' or 'format' parameters, leaving their purpose, valid values, and effects completely undocumented. The description fails to compensate for the schema's lack of parameter information.

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?

The description clearly states the verb ('Generate') and resource ('cryptographically secure UUID (v4)'), making the purpose specific and unambiguous. It distinguishes from siblings by specifying UUID generation rather than other random data types. However, it doesn't explicitly contrast with all sibling tools beyond the UUID focus.

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?

The description provides no guidance on when to use this tool versus alternatives like generate_random_string or other sibling tools. It lacks context about typical use cases, prerequisites, or exclusions, leaving the agent with no usage direction beyond the basic purpose.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv1.0.0
    • First observedgenerate_random_boolean
    • First observedgenerate_random_bytes
    • First observedgenerate_random_choice
    • First observedgenerate_random_float
    • First observedgenerate_random_integer
    • First observedgenerate_random_string
    • First observedgenerate_uuid

TDQS

A3.5/5.0

Scored across 7 tools

Disambiguation5/5

Every tool has a clearly distinct purpose targeting specific random generation tasks (boolean, bytes, choice, float, integer, string, UUID). There is no overlap or ambiguity between tools, as each handles a different data type or selection method with cryptographically secure randomness.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with 'generate_random_' prefix (or 'generate_uuid'), using snake_case throughout. The naming is highly predictable and readable, making it easy to understand each tool's function at a glance.

Tool Count5/5

With 7 tools, this is well-scoped for a random generation server, covering common use cases without bloat. Each tool earns its place by addressing a specific random generation need, making the set comprehensive yet manageable.

Completeness5/5

The tool surface provides complete coverage for random generation in a typical programming context, including booleans, bytes, choices, floats, integers, strings, and UUIDs. There are no obvious gaps, and agents can handle most random generation tasks without dead ends.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Production-ready MCP server that provides LLMs with essential random generation abilities, including random integers, floats, choices, shuffling, and cryptographically secure tokens.
    7
    50
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Generates random integers within a specified range and random alphanumeric strings of specified length through MCP protocol integration.
    2
    -
  • A
    license
    B
    quality
    D
    maintenance
    drand-mcp-server is a service that provides verifiable random numbers for model-driven processes in AI applications, supporting the acquisition of random numbers by time or round.
    3
    2
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that generates random numbers by using national weather data as entropy seeds. It provides a unique way to generate random values through weather API integration within the Model Context Protocol.
    Apache 2.0