Skip to main content
Glama

Pattern Scan

pattern_scan
Read-only

Scan URLs for vulnerability patterns, optionally fetch response bodies, and group matches by bug class to surface candidates for validator proof.

Instructions

Scan URLs (and optionally their response bodies) with vetted gf patterns.

Classifies each URL by its query parameters and path segments, and — when scan_bodies is true — fetches it once and scans the response for sink shapes. Results are grouped by bug class, each candidate naming the validator that would prove or kill it. Nothing here files a finding: a pattern match is a lead, and the validators exist because leads are usually wrong.

target names URLs, or "auto" to inherit the live URLs an earlier phase recorded. The pattern library lives in rules/gf/; if it failed to load, this returns UNTESTED rather than an empty scan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
max_urlsNo
scan_bodiesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations (readOnlyHint: true, destructiveHint: false) align with the description. The description explicitly states that fetching occurs only when scan_bodies is true, and emphasizes that no findings are filed—only leads. This provides clear transparency about no persistent side effects while acknowledging network requests.

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 concise but includes necessary details. It is organized into multiple sentences but each provides relevant information—no fluff. The structure is clear, though it could be slightly more compact by merging some clauses without losing meaning.

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

Completeness4/5

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

The description gives a high-level overview of the output (results grouped by bug class, each candidate naming validator). While the context indicates an output schema exists, it is not provided in the tool definition, so the description offers enough context for an agent to understand the expected result shape. Slightly lacking in specifying output format details.

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?

The description explains the target parameter (URLs or 'auto') and scan_bodies (fetches and scans response when true). However, max_urls is not described, and the schema has no descriptions. Since most parameters are covered, it earns a 4, but the lack of explanation for max_urls prevents a perfect score.

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 purpose: scanning URLs (and optionally response bodies) with vetted gf patterns. It specifies the exact actions (classifies URLs by query parameters/path segments, scans response for sink shapes) and differentiates itself from other scanning tools by mentioning 'vetted gf patterns' and the fact that results are leads, not findings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides guidance on when to use the tool, explaining that results are grouped by bug class and each candidate names a validator, implying it is for reconnaissance rather than confirmation. It also mentions the 'auto' option for inheriting URLs from earlier phases. However, it does not explicitly compare to alternative scanning tools (e.g., nuclei_scan), so the when-to-use guidance is implicit rather than direct.

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/iamsecure1920/Cordon-AI'

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