Skip to main content
Glama

Regex Tester

dev_regex_tester

Test a regular expression against text and see every match: the matched substring, its index, and all capture groups. Deterministic — the same pattern and text always produce the same result, unlike LLM-simulated regex matching. Use this when an agent needs to pattern + text → every match, group and index. x402 price $0.01/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to test
flagsYesFlags
patternYesPattern

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral burden, and it does add real value: it explicitly promises determinism and contrasts this with LLM-simulated regex matching, and it discloses the x402 price model ($0.01/call, USDC, eip155:8453). It omits failure behavior entirely – what happens on an invalid pattern, or how catastrophic backtracking is handled – which is the most relevant edge case for a regex tool.

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?

Three sentences, output semantics front-loaded, no padding; the pricing sentence is commercial boilerplate but is real information. The only mild redundancy is the 'Use this when...' sentence, which re-encodes the first sentence as an arrow expression rather than adding new content.

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?

There is no output schema and no annotations, so the description must cover returns and safety, and it does describe the return shape well. Against that gap it is still missing invalid-pattern/error behavior and any flag format, which leaves a competent agent slightly under-informed for a tool whose main failure mode is a bad pattern.

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 the baseline is 3, and the description adds nothing parameter-specific. The 'flags' parameter in particular is an unconstrained string the schema labels only 'Flags', so a sentence on accepted flag syntax would have been genuinely useful and is missing.

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?

States a specific verb and resource ('Test a regular expression against text') and goes further by enumerating what the caller gets back: matched substring, index, and capture groups. No sibling among the listed utilities is a regex engine, so it is trivially distinguishable, and an agent knows exactly what this does without opening the schema.

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?

It offers a trigger ('Use this when an agent needs to pattern + text → every match, group and index'), but that phrasing largely restates the purpose rather than adding selection criteria. There is no guidance on when NOT to use it, no mention of related tools like dev_text_extract or dev_scrape_selector that could overlap, and no prerequisites.

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.

Resources