Skip to main content
Glama

TinyFn

get_password_pattern

Get regex pattern for password validation with custom requirements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
min_lengthNoMinimum length
require_digitNoRequire digit
require_specialNoRequire special character
require_lowercaseNoRequire lowercase
require_uppercaseNoRequire uppercase

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYes
descriptionYes
requirementsYes

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?

No annotations provided, so the description must carry full behavioral disclosure. It only states 'Get regex pattern' without mentioning side effects, idempotence, or that it's a safe read operation. The output schema exists but the description lacks behavioral context.

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?

Single sentence, no wasted words. It is front-loaded with the core purpose. Could be slightly more structured but it's efficient.

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?

Given the output schema existence and full parameter descriptions, the description is adequate for a simple tool. However, it does not help differentiate from similar password-related sibling tools, leaving some gap.

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 coverage is 100%, so all parameters are described in the schema. The description adds no extra meaning beyond what's already in the schema; baseline of 3 is appropriate.

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?

Description clearly states it returns a regex pattern for password validation, which is a specific verb-resource combination. It distinguishes from sibling tools like validate_password_strength or generate_password, though not explicitly, the purpose is clear.

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 alternatives like validate_password_strength or analyze_password. The description does not mention when not to use it or provide context for selection.

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.