Skip to main content
Glama

Security and quality scan

project_scan
Read-onlyIdempotent

Scan the preview for the mistakes AI-written apps make: SQL built from strings, HTML injected from variables, secrets in code or in files browsers download, API routes that change data without an auth check, dependencies with known vulnerabilities (lockfiles against OSV), keys, passwords and salts written into the code (data.secrets_in_code: file, line, kind, whether you can generate it, the environment variable to read; never the value; ask the user before moving them to the secrets tool), markup that fights a change in the project's own HTML and CSS files (duplicate_markup: the same id or section twice; inline_important: !important in inline styles and stylesheets; conflicting_rules: a selector setting the same property to different values in two places), and an accessibility pass (contrast, labels, alt text, landmarks) on pages of the running app. Every finding has the file and line and the fix to make. Run it before publishing and after adding sign-in, payments or forms. pages: paths to check for accessibility (default /).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "project_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNo
projectYesProject slug or id.
dependenciesNoCheck dependencies (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the description's added value is in return shape and safety: every finding carries file, line and the fix, secrets findings expose file/line/kind and never the value, and one check hits the network (lockfiles against OSV), which explains the openWorldHint. It omits scan duration, limits on pages, and whether the preview must already be running.

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

Conciseness2/5

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

The whole definition is one sprawling sentence with a nested parenthetical that dumps internal field names (data.secrets_in_code: file, line, kind, generateable, env var) mid-scan-list. Operational guidance ('Run it before publishing') is buried at the end rather than front-loaded, and the enumeration crowds out the few facts an agent needs to select and call it.

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?

With no output schema, the description does the work of describing findings (file, line, kind, suggested fix) and names each check category, which is substantial coverage for a complex multi-check tool. Missing are practical call details such as whether the preview must be deployed first and how many pages the accessibility pass can handle beyond the schema's maxItems of 10.

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 coverage is 67%, so the schema already documents project, dependencies and pages. The description only clarifies pages ('paths to check for accessibility, default /') and never explains the required project parameter or that the dependencies check can be switched off. Baseline 3 is appropriate.

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 verb and resource are specific ('Scan the preview' for security/quality mistakes) and the enumerated check categories (SQL injection, XSS, secrets, missing auth, vulnerable dependencies, duplicate markup, accessibility) leave no doubt about scope. It does not, however, explicitly differentiate itself from siblings like design_check or secrets, beyond the passing mention of 'the secrets tool'.

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?

'Run it before publishing and after adding sign-in, payments or forms' gives concrete trigger conditions, and the parenthetical instructs the agent to ask the user before moving secrets into the secrets tool. There is no explicit when-not-to-use guidance or statement of what this tool does not cover versus design_check.

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