Skip to main content
Glama

regex_test

Test a regular expression against an input string. Returns all matches with their positions and capturing groups.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagsNoRegex flags (g, i, m, s, u, etc.)g
inputYesThe string to test the pattern against
patternYesThe regex pattern to test

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description takes on the transparency burden. It discloses key observable behavior: the tool returns matches, their positions, and capturing groups. It does not mention invalid-pattern or no-match behavior, but for a pure test utility the core behavior is clearly stated.

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 two sentences with no filler: the core action is front-loaded and the return behavior is stated immediately after. Every sentence contributes useful information.

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

Completeness4/5

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

For a simple utility with complete schema coverage, the description adequately supplies the missing output semantics. It would be slightly stronger with edge-case notes like invalid patterns or empty match results, but those are not essential for correct selection and invocation.

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%, with pattern, input, and flags already explained in the schema itself. The description adds no additional parameter-level meaning, so the baseline score of 3 applies.

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 names a precise action ('Test a regular expression against an input string') and specifies the output ('all matches with their positions and capturing groups'). This clearly distinguishes it from the unrelated sibling utilities such as hash_compute and csv_parse.

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

Usage Guidelines4/5

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

The description clearly establishes the tool's context: use it when you need to test a regular expression against a string. There are no competing regex-focused sibling tools, so explicit alternatives are unnecessary, though the description does not state when not to use it.

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.1/5.0
Disambiguation5/5

Each tool targets a distinct operation—encoding, color conversion, parsing, hashing, JWT validation, Markdown rendering, regex testing, SemVer operations, diffing, URL analysis, and UUID generation. The four SemVer tools are related but cleanly separated by action (bump vs compare vs max vs satisfies), and descriptions clarify their boundaries.

Naming Consistency4/5

Tools overwhelmingly follow an object_verb snake_case convention (base64_encode, csv_parse, regex_test, semver_bump). Semver_max and semver_satisfies deviate slightly from the imperative verb pattern, but the overall naming is predictable and searchable.

Tool Count4/5

At 16 tools, the server is slightly above the ideal 3–15 tool range but each utility earns its place for a general-purpose developer toolbox. No tools feel redundant, and the count remains manageable because the names and domains are highly scannable.

Completeness4/5

The toolkit covers a solid breadth of common developer utilities: encodings, common formats (JSON, CSV, Markdown), hashing/JWT, regex, SemVer, cron, URL, UUIDs, and diffing. It lacks some fringe converters such as YAML/XML parsing or HTML escape/unescape, but these are minor gaps that agents can work around rather than dead ends.