Skip to main content
Glama

cell_tool_regex

Read-only

Every match with its groups, replace, split, or the pattern explained part by part.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>",
      "flags": {
        "i": false,
        "m": false,
        "s": false,
        "x": false
      },
      "action": "Find",
      "flavor": "Rust",
      "pattern": "<pattern>"
    },
    "name": "cell_tool_regex"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
flagsYes
actionYes
flavorYes
patternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "action": "Find",
      +    "flags": {
      +      "i": false,
      +      "m": false,
      +      "s": false,
      +      "x": false
      +    },
      +    "flavor": "Rust",
      +    "pattern": "<pattern>",
      +    "text": "<text>"
      +  }
      +]
  2. Added

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnly=true, destructive=false, idempotent=false, openWorld=true, so the safety profile is covered. The description adds two genuinely useful facts: results include capture groups, and one action returns a part-by-part explanation of the pattern. It omits behaviorally significant details, notably that two regex flavors (Rust vs Fancy) are supported and that they differ in syntax support.

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

Conciseness3/5

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

It is a single compact sentence with no filler, which is good, but the compression has gone past concise into cryptic — the opening fragment reads awkwardly and the parallel items are not clearly labeled as the available actions.

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 five required parameters, a nested flags object, an action union, and a dialect enum, and no output schema, the definition should do far more work. An agent cannot determine what the flags mean, how flavor changes matching, or how input text is returned — the description leaves the hard parts entirely to an undocumented schema.

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 description coverage is 0%, so the description carries the full burden. It maps loosely onto the action values but says nothing about `pattern`, `text`, the four boolean `flags` (i/m/s/x), or the `flavor` choice between Rust and Fancy dialects — all of which are required and ambiguous without documentation.

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

Purpose3/5

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

The sentence gestures at the tool's capabilities — matching with capture groups, replace, split, and explain — and the name supplies the 'regex' subject. But it is written as an elliptical fragment ('Every match with its groups') rather than a clean verb+resource statement, and it never says plainly 'apply a regular expression to text'.

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?

No when-to-use guidance and no alternatives named (none of the siblings overlap, so that omission is minor). More importantly, it does not indicate which of the four actions to choose for which goal beyond listing them; the agent must infer that 'Replace' requires a replacement string and 'Explain' is for understanding a pattern.

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