Skip to main content
Glama

regex

regex
Read-only

Regex workbench: test a pattern against up to 50 inputs (every match, index and capture group), or describe what you need with examples that must and must not match, and get a pattern that is verified against all of them. Costs $0.01 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagsNo
inputsNo
patternNo
descriptionNo
should_matchNo
should_not_matchNo

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?

Annotations cover readOnly/openWorld, and the description adds genuinely non-redundant behavior: a 50-input cap, the fact that the generator verifies the produced pattern against all examples, the match/index/capture-group detail, and the $0.01 USDC (x402) cost. It does not explain x402 payment mechanics or rate/error behavior.

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?

Two sentences, both front-loaded: capability first, cost last. Efficient with no filler, though the capability sentence is dense with two modes and a return-value clause packed together.

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?

With six optional parameters, no output schema and no schema descriptions, the description does well by outlining inputs, the 50-item limit, the verification behavior and the price. Remaining gaps are the undocumented flags parameter and how payment/authorization for the paid call is expected to be supplied.

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 0%, so the description must carry all six parameters. It effectively documents pattern, inputs (cap of 50), description, should_match and should_not_match, but 'flags' is never mentioned and no regex flavor/flag syntax or input-array constraints are given.

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?

Names a specific verb+resource ('Regex workbench') and clearly separates two modes: testing a supplied pattern against inputs, and generating a pattern from description plus must-match/must-not-match examples. No sibling tool in the list operates on regexes, so no explicit sibling differentiation is needed or given.

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 sentence structure gives an explicit fork: if you already have a pattern, pass it with inputs; if you don't, supply a description plus examples. That is a clear when-to-use-each rule, though it never states which parameters are required or what happens if both modes are attempted at once.

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