Skip to main content
Glama

crx-permission-risk

Analyze a Chrome extension manifest

analyze_manifest

Static privilege analysis of a Chrome MV3 manifest.json. Returns a 0-100 risk score, the permissions and host patterns that drive it, dangerous permission combinations, and MV3 policy problems (remote code, unsafe-eval, web_accessible_resources). Content-script matches are counted as host access even when host_permissions is empty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
manifestYesThe manifest.json content, as a JSON object or a JSON string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It explains the tool is static (read-only), lists the key outputs, and adds a nuanced behavioral detail: content-script matches count as host access even when host_permissions is empty. This goes beyond a simple purpose statement, though it does not cover edge cases like invalid manifest handling.

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 two sentences long, front-loaded with the core purpose, and provides essential details without fluff. The second sentence adds an important nuance, making every word earn its place. No unnecessary or repetitive content.

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?

Without an output schema, the description enumerates the primary outputs (risk score, permissions, host patterns, combinations, policy problems), which is sufficient to set expectations. It also notes a special counting behavior for content scripts. It does not discuss error handling or the exact response structure, but for a static analysis tool with a single parameter, it covers the essential context well.

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 schema provides 100% coverage with a clear description of the 'manifest' parameter as JSON object or string. The tool description adds further semantic meaning by specifying the expected input is a Chrome MV3 manifest, which imposes domain constraints on the parameter value. This raises the value above the schema-alone baseline.

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 performs static privilege analysis of a Chrome MV3 manifest.json and enumerates its outputs (risk score, permissions, host patterns, dangerous combinations, MV3 policy problems). This is specific enough to distinguish it from siblings like compare_permission_sets and explain_permission, which serve different purposes.

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 clearly implies when to use this tool—when analyzing a Chrome MV3 manifest for privilege-related risks. It provides strong contextual cues and does not exclude any specific scenarios, but it does not explicitly mention alternatives or state 'use this instead of X'. Thus it has clear context without explicit exclusions.

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