Skip to main content
Glama

Regex Test

regex_test
Read-onlyIdempotent

Test a regular expression against sample strings. FREE.

Typical input {"pattern": "v(\d+)", "samples": ["v12", "beta"]} returns {"pattern": ..., "results": [{"sample": "v12", "match": true, "matched_text": "v12", "groups": ["12"]}, {"sample": "beta", "match": false, ...}], "match_count": 1}.

Use to confirm a pattern matches what you expect before shipping it. Not for validating JSON (json_validate). Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "invalid regex: "}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesA Python-flavor regular expression as a string, e.g. "v(\\d+)".
samplesYesStrings to test the pattern against; only the first 50 are evaluated.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description reinforces these by stating 'Every call is read-only and idempotent.' It additionally discloses error behavior ('never raises a protocol error — it returns {"error": ...}'), which is beyond what annotations provide. No contradiction with annotations.

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?

The description is well-structured with a concise summary followed by example, usage, and error behavior. It is front-loaded but slightly long; however, every sentence adds value. A minor trim could improve conciseness, but it is effective.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (2 parameters, output schema exists, annotations present), the description is complete. It covers purpose, usage, error handling, retry safety, and the sample limit. The output schema handles return values, so no further explanation is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds a typical input example that demonstrates how to use the parameters, including escaping. It also specifies the limit on samples (first 50) from the schema. This adds practical context beyond the schema's descriptions.

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 explicitly states the tool's purpose: 'Test a regular expression against sample strings.' It provides a concrete example and distinguishes itself from a sibling ('Not for validating JSON (json_validate)'). The verb-resource pairing is clear and specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear guidance: 'Use to confirm a pattern matches what you expect before shipping it.' It explicitly states when not to use it (JSON validation) and points to the alternative tool. It also explains error handling and retry safety, aiding the agent in deciding when to invoke the tool.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool addresses a distinct concern: cron expressions, text diffs, JSON validation, SKILL.md linting, zip packaging, and regex testing. There is no overlap in purpose or output, so an agent can unambiguously select the right tool for a given task.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (cron_explain, diff_texts, json_validate, lint_skill, packaging_check, regex_test). The pattern is uniform and predictable, making the API easy to navigate.

Tool Count5/5

Six tools is well within the ideal 3-15 range for a focused server. Each tool serves a clear purpose, and the count feels neither bloated nor sparse for a linting and validation toolkit.

Completeness4/5

The core domain of validating SKILL.md files is well covered by lint_skill and packaging_check, and the generic utilities (cron, diff, JSON, regex) support auxiliary validation needs. A minor gap is the lack of a tool to fetch or write files directly, but the read-only linting workflow is complete.

Resources