Skip to main content
Glama

test_regex

Read-onlyIdempotent

Regex tester

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": "test_regex"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to process, plain UTF-8, for example: The quick brown fox.
flagsNoRegex flags, for example gi. Allowed: g i m s u y.
patternYesRegular expression source without slashes, for example ^\d{3}-\d{4}$.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / flags / description
      Added value: +"Regex flags, for example gi. Allowed: g i m s u y."
    • addedInput schema / properties / pattern / description
      Added value: +"Regular expression source without slashes, for example ^\\d{3}-\\d{4}$."
    • addedInput schema / properties / text / description
      Added value: +"The text to process, plain UTF-8, for example: The quick brown fox."
  2. Changed1 schema field changed
    • addedInput schema / properties / pattern / maxLength
      Added value: +2000
  3. Changed1 schema field changed
    • addedInput schema / properties / pattern / minLength
      Added value: +1
  4. First observed

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds nothing beyond that — not the regex engine/flavor, not what a result looks like (match positions, capture groups), and not how the global flag changes output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two words are technically concise, but this is under-specification rather than efficiency — there is no structure or front-loaded detail an agent can act on. The brevity costs information that the schema and annotations cannot fully supply.

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?

With three fully documented parameters and complete annotations, the structured data carries most of the load, and there is no output schema requiring explanation. The remaining gap is the return shape (match results, capture groups), which the description leaves wholly unaddressed for a tool whose output is the entire point.

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%: pattern, text, and flags each carry concrete descriptions with examples and an allowed-flag list. The description adds no parameter meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Regex tester" essentially restates the tool name and annotation title (Test Regex) with no additional specificity. It conveys the domain but not the operation's shape — whether it matches, extracts, or replaces — so an agent learns little beyond the name.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives or constraints (e.g., regex flavor supported, safety against catastrophic backtracking). At best, the word "tester" weakly implies a dry-run validation use case.

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