Skip to main content
Glama

x402-ai-regex

AI Regex: Generate a regex from a natural-language description.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descNoDesc to process
textNoText to process
descriptionNoDescription to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing about determinism, model/cost implications, rate limits, or whether the output is just a pattern string or includes matches against supplied text. Only the basic generation behavior is stated.

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, which is appropriate in size. It is efficient but so terse that brevity shades into under-specification rather than crispness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and three ambiguous parameters, the description should explain what is returned (pattern only? matches? explanation?) and how the three inputs relate. It leaves all of that unresolved, which is inadequate for a 3-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is nominally 100% but the schema strings are tautologies ('Desc to process', 'Text to process', 'Description to process') that convey no meaning. Worse, three near-identical optional parameters (desc, text, description) exist and the description never disambiguates which one holds the natural-language spec versus the text to match against.

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?

The description gives a clear verb+resource ('Generate a regex') plus the input modality ('from a natural-language description'), so an agent knows exactly what this does. It does not, however, differentiate itself from the nearby sibling x402-regex-explain or mention related regex utilities, so it falls short of a 5.

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 such as x402-regex-explain or x402-escape-regex. The agent must infer usage purely from the tool name and the one-line purpose.

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