Skip to main content
Glama

Vega Developer Utilities

Regex test

regex_test
Read-onlyIdempotent

Test a regex; return matches + groups.

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
textYesText to run the regular expression against.
patternYesRegular expression in Python syntax.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / pattern / description
      Added value: +"Regular expression in Python syntax."
    • addedInput schema / properties / text / description
      Added value: +"Text to run the regular expression against."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds that matches and groups come back, but leaves key semantics unstated — whether matching is search-style or find-all, what happens on zero matches, and what an invalid pattern returns. Useful but thin beyond the annotations.

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

Conciseness5/5

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

A single front-loaded clause with zero filler; every word (test, regex, matches, groups) carries information. Nothing could be removed without losing content.

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 an output schema present, return format needn't be explained, and the safety profile is fully annotated. However, for a regex engine wrapper the matching mode, flag support, and error behavior are material gaps that a slightly longer description could close cheaply.

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 100% and both parameters are required and documented, so the schema carries the semantics. The description adds little beyond it, but with full coverage that baseline is appropriate and the mention of groups hints at capture-group handling.

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 and resource ("Test a regex") plus the result content ("matches + groups"), so the agent knows exactly what the tool does. It doesn't name a sibling or contrast itself with any alternative, but none of the listed siblings are regex-related, so differentiation is implicit.

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?

The definition offers no when-to-use or when-not-to-use guidance, no prerequisites, and no alternatives. An agent must infer from the name alone that this is the tool for validating a pattern or extracting groups from text.

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