Skip to main content
Glama

TinyFn

generate_password_2

Generate a secure random password.

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

Input Schema

NameRequiredDescriptionDefault
digitsNoInclude digits
lengthNoPassword length
specialNoInclude special characters
lowercaseNoInclude lowercase letters
uppercaseNoInclude uppercase letters
exclude_charsNoAdditional characters to exclude
exclude_ambiguousNoExclude ambiguous chars (0O1lI)

Output Schema

NameRequiredDescriptionDefault
errorNo
lengthNo
passwordNo
charset_sizeNo
entropy_bitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / $defs / GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"GeneratePasswordResponse"New value: +"app__routers__password_utils__GeneratePasswordResponse"
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__password_utils__GeneratePasswordResponse"New value: +"GeneratePasswordResponse"
  3. Changed3 schema fields changed
    • removedOutput schema / $defs / GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"GeneratePasswordResponse"New value: +"app__routers__password_utils__GeneratePasswordResponse"
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__password_utils__GeneratePasswordResponse"New value: +"GeneratePasswordResponse"
  5. Changed3 schema fields changed
    • removedOutput schema / $defs / GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"GeneratePasswordResponse"New value: +"app__routers__password_utils__GeneratePasswordResponse"
  6. Changed3 schema fields changed
    • addedOutput schema / $defs / GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__password_utils__GeneratePasswordResponse"New value: +"GeneratePasswordResponse"
  7. Changed3 schema fields changed
    • removedOutput schema / $defs / GeneratePasswordResponse
      Removed value: -{
      -  "properties": {
      -    "charset_size": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Charset Size"
      -    },
      -    "entropy_bits": {
      -      "anyOf": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Entropy Bits"
      -    },
      -    "error": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Error"
      -    },
      -    "length": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Length"
      -    },
      -    "password": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Password"
      -    }
      -  },
      -  "title": "GeneratePasswordResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__password_utils__GeneratePasswordResponse
      Added value: +{
      +  "properties": {
      +    "charset_size": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Charset Size"
      +    },
      +    "entropy_bits": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Entropy Bits"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "length": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Length"
      +    },
      +    "password": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Password"
      +    }
      +  },
      +  "title": "GeneratePasswordResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"GeneratePasswordResponse"New value: +"app__routers__password_utils__GeneratePasswordResponse"
  8. First observed

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided. The description says 'secure random' but doesn't detail the randomness source or behavior when all character types are disabled. Leaves agent to infer from defaults.

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

Conciseness3/5

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

Single sentence, concise, but fails to add value beyond the name. Could include usage hints or differentiation without being verbose.

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 7 parameters and no output schema details in description, it lacks completeness. For a security tool, more context (e.g., CSPRNG usage) and edge-case behavior are needed.

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 parameters are well-documented in schema. The description adds no additional parameter insights, making it neutral.

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 states it generates a 'secure random password', which clearly identifies the tool's purpose and distinguishes it from siblings like generate_passphrase (passphrase) or generate_pin (numeric pin).

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?

No guidance on when to use this tool versus other password/passphrase generators. No mention of prerequisites or scenarios where more complex passwords are needed. Minimal advice.

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.