Skip to main content
Glama

ScorpTech x402 Tools

Regex Test

regex_test
Read-onlyIdempotent

Offline PCRE2 regex tester (JS-compatible i/m/s/u flags): match (with offsets + capture groups), replace, or split. Hard caps on backtracking/recursion and a structural ReDoS warning. Pattern max 2 KB, subject max 200 KB. Returns count, matches/result/parts and engine notes. Returns JSON with: op, pattern, flags, pcre, count, timeMs, timedOut, truncated. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/regex-test

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
patternNo
subjectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: backtracking and recursion caps, a structural ReDoS warning, 2 KB pattern and 200 KB subject limits, and the exact response fields including timedOut and truncated. The only gap is that it does not say what happens when a cap is hit (error vs partial result with timedOut=true).

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 core capability, limits, and return shape are front-loaded in the first three sentences. The trailing pricing and HTTPS endpoint sentences are useful but read as appended boilerplate rather than integrated guidance.

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 no output schema, the description compensates by enumerating the returned JSON fields (op, pattern, flags, pcre, count, timeMs, timedOut, truncated). Combined with the size caps and ReDoS note, an agent has enough to call it correctly, though the flags/schema mismatch leaves a small ambiguity.

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 0%, so the description must carry parameter meaning, and it partially does by giving size limits for pattern and subject. But it also advertises a flags parameter (i/m/s/u) that does not exist in the input schema, which muddies rather than clarifies the two real parameters.

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 specific engine (PCRE2), a specific resource (regex), and enumerates the three operations (match with offsets/captures, replace, split). It is clearly distinguishable from a sibling like regex_explain, which would explain rather than execute a pattern.

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?

The description implies usage by listing the three operations and the flag set (i/m/s/u), so an agent can infer when the tool applies. However, it never states when to prefer this over regex_explain or any other sibling, and gives no exclusions or prerequisites beyond size caps.

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