Skip to main content
Glama
Comet MCP Server

Comet MCP Server

by AdilShaikh1

comet_security_scan

Scan the current page for prompt injection patterns, CSS-hidden elements, zero-width characters, and HTML comments to verify content is safe before trusting it.

Instructions

Deep security scan of current page for prompt injection and hidden content.

Run this when: content filter flags injections, page seems suspicious, or you want to verify a page is clean before trusting its content. Checks CSS-hidden elements, zero-width chars, HTML comments, and 39 injection patterns.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "comet_security_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the disclosure burden and does so reasonably: it names the exact detection classes (CSS-hidden elements, zero-width chars, HTML comments, 39 injection patterns). It omits cost/latency despite the 'deep' label and never explicitly states the scan is read-only with no page mutation, which is the main remaining gap.

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?

One summary sentence followed by a compact 'Run this when' block and a single sentence enumerating what is checked. Every sentence earns its place and the purpose is front-loaded before the triggers.

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?

An output schema exists, so return values need no explanation, and with no parameters the surface area is small. The description covers purpose, activation triggers, and detection scope, which is everything an agent needs to select and invoke it.

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 tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly does not waste words on absent inputs.

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 opens with a precise verb+resource+scope: 'Deep security scan of current page for prompt injection and hidden content.' This clearly separates it from read-oriented siblings like comet_read_page or comet_screenshot, which retrieve content rather than vet it.

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?

It gives three concrete triggers ('content filter flags injections', 'page seems suspicious', 'verify a page is clean before trusting its content'), which is strong when-to-use guidance. It stops short of naming an alternative tool or a when-not-to-use case, so it lands at 4 rather than 5.

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