Skip to main content
Glama

TinyFn

get_url_pattern

Get regex pattern for URL validation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
require_protocolNoRequire http/https protocol

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
formatNo
strictNo
countryNo
patternYes
versionNo
examplesNo
card_typeNo
descriptionNo
case_insensitiveNo
require_protocolNo
format_descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description provides minimal behavioral context. It does not state whether the regex includes protocol, case sensitivity, or any special behavior. The agent is left guessing about the output format beyond the input schema.

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?

Extremely concise (one sentence) with no filler. However, it could be slightly more detailed without harming conciseness. Still efficient.

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?

Given the presence of an output schema and high schema coverage, the description does not need to detail return values. However, it lacks context on the pattern's purpose or how it differs from similar pattern tools. Adequate but not rich.

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% (single parameter with description). The description adds no value beyond the schema, so baseline score of 3 is appropriate.

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?

Clearly states it retrieves a regex pattern for URL validation. The verb 'Get' and resource 'regex pattern for URL validation' are specific, distinguishing it from sibling tools that get other patterns (e.g., get_email_pattern, get_phone_pattern) or validate URLs directly (e.g., validate_url, is_valid_url).

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 guidance on when to use this tool versus alternatives like validate_url or is_valid_url. The description does not mention prerequisites, typical use cases, or exclude scenarios where other tools are more appropriate.

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.