Skip to main content
Glama
Manavarya09

DarkLens MCP Server

by Manavarya09

detect_dark_patterns

Identify dark patterns in UI text, HTML, or URLs. Get a list of detected patterns with pattern type, confidence, and evidence.

Instructions

Detect dark patterns in UI text, HTML, or URL.

Args: input_type: "html", "text", or "url" content: The HTML content, plain text, or URL to analyze

Returns: List of detected patterns with pattern_id, pattern_type, confidence, evidence

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
input_typeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Since no annotations are provided, the description carries the behavioral disclosure burden. It does reveal the return shape (list with pattern_id, pattern_type, confidence, evidence), which is useful, but it does not disclose error behavior, input constraints, or whether the operation is read-only in any explicit way.

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?

The description is concise, front-loaded with the main purpose, and uses a compact Args/Returns structure. Every sentence earns its place with no redundancy or filler.

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?

For a two-parameter detection tool, the description covers the purpose, both parameters, and the return format. An output schema exists, reducing the need to explain return values further. It could be more complete by addressing how invalid input_type values are handled or how to choose between this and sibling tools, but it is largely sufficient.

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

Parameters5/5

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

Schema description coverage is 0%, but the description fully compensates by explaining both parameters: input_type values ('html', 'text', or 'url') and what content contains. This adds meaning well beyond the bare schema, which only names the parameters.

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

Purpose4/5

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

The description clearly states the tool detects dark patterns in UI text, HTML, or URL, specifying a concrete verb and resource. It is understandable, though it does not explicitly differentiate itself from related siblings like classify_pattern or analyze_text beyond its dark-pattern focus.

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?

The description gives a clear sense of what input types are accepted, but it provides no guidance on when to use this tool versus alternatives such as classify_pattern or analyze_text. There are no exclusions, prerequisites, or explicit usage conditions beyond the basic input_type/content split.

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

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/Manavarya09/DarkLens-MCP-Server'

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