Skip to main content
Glama
BitingSnakes

silkworm-mcp

by BitingSnakes

generate_regex

Generate a regular expression from sample strings. Provide test cases and adjust options like anchors, case sensitivity, and groups to build a matching pattern.

Instructions

Generate a regular expression from sample strings using grex.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_casesYes
verbose_modeNo
convert_wordsNo
convert_digitsNo
anchors_enabledNo
capturing_groupsNo
case_insensitiveNo
escape_non_asciiNo
convert_repetitionsNo
minimum_repetitionsNo
use_surrogate_pairsNo
minimum_substring_lengthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYes
test_casesNo
verbose_modeNo
convert_wordsNo
convert_digitsNo
anchors_enabledNo
capturing_groupsNo
case_insensitiveNo
escape_non_asciiNo
convert_repetitionsNo
minimum_repetitionsNo
use_surrogate_pairsNo
minimum_substring_lengthNo
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 burden of behavioral disclosure. It only mentions 'using grex,' which hints at an underlying library, but does not explain output behavior, limitations, error conditions, or side effects. The description fails to add meaningful behavioral context beyond the basic action.

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?

The description is a single, front-loaded sentence that efficiently states the core action. However, given the tool's parameter complexity (12 parameters), it is likely too terse to be fully useful, but structurally it is concise and earns its place.

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?

The tool has 12 parameters and an output schema, yet the description provides only the basic action. There is no usage context, parameter meaning, or expected behavior. While the output schema may clarify return values, the description is inadequate for an agent to select and configure the tool correctly.

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

Parameters1/5

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

Schema description coverage is 0%, and the description names none of the 12 parameters. It only implies the 'test_cases' input via 'sample strings' but leaves all boolean options (e.g., convert_words, anchors_enabled) undefined. The description does not compensate for the schema's lack of documentation at all.

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

Purpose5/5

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

The description clearly states the tool's function: 'Generate a regular expression from sample strings using grex.' It uses a specific verb ('Generate'), identifies the resource ('regular expression from sample strings'), and is distinct from sibling tools like HTML parsing and selector extraction, so there is no ambiguity about its purpose.

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 guidance on when to use this tool versus alternatives. The description only states what the tool does, without any context about prerequisites, typical use cases, or exclusions. For a tool with many siblings, explicit usage guidance is missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BitingSnakes/silkworm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server