Skip to main content
Glama

WritersLogic verifiable AI agents

permission-delta

Privilege expansion between two manifests: npm, Chrome extension, Android — Compares an old and a new manifest and reports every way the new one gains privilege, for agents reviewing dependency bumps and extension or app updates. npm package.json: new or changed install-time lifecycle scripts, gypfile, bin entries and URL/git/file dependencies (including overrides). Chrome manifest.json: added permissions with Chrome's own warning text, host access not covered by the old

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": {
      "kind": "<kind>",
      "before": "<before>",
      "after": "<after>"
    },
    "name": "permission-delta"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesManifest format of both documents.
afterYesNew manifest text.
beforeYesOld manifest text (package.json, manifest.json or AndroidManifest.xml).
thresholdNoany (default): every added permission fails. sensitive: ignore Chrome permissions without a warning and Android normal permissions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does substantive work here by enumerating what counts as privilege gain per ecosystem (lifecycle scripts, gypfile, bin entries, overrides for npm; added permissions plus Chrome's own warning text for Chrome) and by implying a read-only comparison. However, it says nothing about behavior on unparseable or mismatched manifests, whether warnings are attached verbatim, or ordering/deduplication of results.

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

Conciseness3/5

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

The purpose is front-loaded in the first clause, which is good, but the body is a dense run-on list of detection rules and the text is visibly truncated mid-sentence ('host access not covered by the old'), leaving a dangling fragment. It is not padded with fluff, yet the structure and completeness of the prose are compromised.

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

Completeness2/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 must explain what the tool returns, and it only partially does so and only for two of the three supported formats: the Chrome section breaks off mid-sentence and the Android format listed in the enum is never described at all. An agent calling with kind='android' has no idea what will be checked or reported, which is a real gap for a three-format comparison tool.

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% and both enums are documented in the schema itself, so the baseline of 3 applies. The description adds ecosystem-level semantics about what 'privilege' means, but that meaning describes the output rather than giving extra meaning to `before`, `after`, `kind`, or `threshold` beyond what the schema already states.

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 and resource — 'compares an old and a new manifest and reports every way the new one gains privilege' — and names the three supported formats (npm, Chrome extension, Android). An agent knows exactly what comes out of the call and can distinguish it from sibling tools like dependency-advisor or csp-audit without opening the schema.

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?

Bounds the use case explicitly: 'for agents reviewing dependency bumps and extension or app updates,' which tells the agent when this tool is the right pick. It does not state a when-not or point at a sibling tool for the adjacent questions (licensing, CVE lookup), so it stops short of full routing guidance.

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