Skip to main content
Glama

Hiringsai — Free AI Tools

tool_regex_workshop

Read-only

Test regular expressions with live highlighting, capture groups and replace previews.

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>"
    },
    "name": "tool_regex_workshop"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText to test. Longer text is allowed for simple patterns only (see guard).
flagsNoAny of d g i m s u v y.g
patternYesRegex source without slashes, for example (\d+)-(\w+).
replacementNoReplacement string with $1, $<name> and $& tokens. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds some value by naming what the results include (highlighting, capture groups, replacement previews), but with no output schema it does not describe the shape of the response or what happens with the 50k character cap mentioned only in the schema.

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?

A single front-loaded sentence with no filler and no redundancy. 'Live highlighting' is somewhat UI-flavored phrasing that adds little for an agent invoking the tool programmatically, which is the only minor waste.

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 4-parameter tool with full schema coverage and safety annotations, the essentials are present, but the absence of an output schema means the description should say more about what comes back (match list, group maps, replaced text). The character-cap behavior is left entirely to the schema's aside.

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%, so all four parameters (pattern, text, flags, replacement) are already documented with examples and limits. The description mentions capture groups and replace previews, which lightly maps to replacement and flags, but adds no syntax or formatting detail beyond the schema; baseline 3 applies.

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?

States a specific verb (test) and resource (regular expressions) and enumerates the three things the tool produces: live highlighting, capture groups, and replace previews. It does not distinguish itself from any sibling, but the purpose itself is unambiguous.

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

Usage Guidelines2/5

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

Contains no when-to-use, when-not-to-use, or alternative guidance. It never says to reach for this tool when validating a pattern before applying it elsewhere, nor does it warn about scope limits; the only constraint hint ('see guard') lives in the schema, not the description.

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.