Skip to main content
Glama

mechacut

regex_test

Run a regex against text without executing anything in your own process: test/findall (text+span)/groups (named+numbered)/replace (template with backrefs). Flags closed to imsxua; 64 KB input cap. Free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pattern": "<pattern>",
      "text": "<text>"
    },
    "name": "regex_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNotest
textYes
countNo
flagsNou
patternYes
templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the sandboxing guarantee ('without executing anything in your own process'), a bounded flag set (imsxua), a hard 64 KB input cap, and that it is free. It stops short of describing error behavior, timeouts/ReDoS handling, or what each mode returns structurally.

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?

Dense and front-loaded: purpose first, then modes, then constraints. The telegraphic slash-delimited style is efficient, though the compressed phrasing of 'Flags closed to imsxua' and the trailing 'Free.' take a second read.

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?

For a 6-parameter tool with no annotations and no output schema, the description should explain return shapes per mode; it gestures at findall's text+span and groups' named+numbered, but leaves replace's output and count's effect unstated. Adequate to call correctly, not complete.

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 0%, so the description must compensate, and it largely does: it maps all four enum values of mode to meanings, pins the legal flag set, and states the text size limit. The count parameter (default 0) is never explained, and template is only obliquely covered via 'backrefs'.

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 — run a regex against text — and then enumerates the four operating modes (test, findall, groups, replace), each with its own one-phrase semantics. An agent knows exactly what the tool 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?

Usage is implied through the mode list (e.g. use findall for text+span, replace for templating), which lets an agent pick a mode. There is no explicit when-to-use/when-not guidance, no mention of alternatives, and no stated prerequisites beyond the size cap.

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.