Skip to main content
Glama

Wrendex

get_duplicate_code_regions

Page through the duplicated code regions of one DUPLICATE_JS_CODE or DUPLICATE_CSS_CODE alert, each with the two source locations, the measured shared bytes, and the code snippet. Use this to read the actual duplicated code: the crawl-wide duplicate-code report carries no snippets at all, because it returns every finding in the crawl at once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoZero-based page index (default 0).
sizeNoRegions per page (default 10, max 50).
alertIdYesPath parameter alertId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it delivers: it discloses the per-region payload (two source locations, shared bytes, snippet) and that results are paged. It does not mention auth needs, error behavior for a non-duplicate alertId, or ordering guarantees.

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

Conciseness5/5

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

Two tight sentences: the first carries the purpose and payload, the second carries the routing rationale. No filler, and the most important information (what this returns) is front-loaded.

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

Completeness5/5

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

There is no output schema, so the description must convey return content, and it does: source locations, shared bytes, and code snippet per region, plus pagination. An agent has everything needed to call it and interpret results.

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%, so page, size, and alertId are already documented in the schema (including defaults and max 50). The description adds no parameter syntax or constraints beyond that, so the baseline 3 applies.

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?

States a specific verb (page through) and resource (duplicated code regions) and scopes it to two named alert types (DUPLICATE_JS_CODE, DUPLICATE_CSS_CODE). It also implicitly separates itself from the crawl-wide report, which no sibling name alone would convey.

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?

"Use this to read the actual duplicated code" gives a clear use condition and contrasts it with an alternative (the crawl-wide duplicate-code report that has no snippets). It stops short of explicit when-not-to-use or prerequisite conditions (e.g. what alert types are invalid).

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