Skip to main content
Glama

Add API Plugins

plugin_add
Destructive

Installs npm-packaged Unraid API plugins by package name, then restarts the API to load them. Requires confirm: true and CONFIG write permission; verify with plugin_list after reconnecting.

Instructions

⚠ Installs one or more Unraid API plugins by npm package name (names). This runs npm install, which executes the package's lifecycle scripts on the server (supply-chain / code-execution risk), then RESTARTS the Unraid API to load them — your connection will drop briefly. names must be bare or scoped package names (no URLs, git refs, paths, or version suffixes). Requires confirm: true and a key with CONFIG write permission (UPDATE_ANY). Reports submission; verify with plugin_list after the API reconnects. For native OS plugins (.plg files) use plugin_install_plg instead.

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": {
      "names": "<names>"
    },
    "name": "plugin_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesYesnpm package names of Unraid API plugins, bare or scoped (`@scope/name`); versions, URLs, git refs and paths are refused.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.3
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / names / description
      Added value: +"npm package names of Unraid API plugins, bare or scoped (`@scope/name`); versions, URLs, git refs and paths are refused."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true and openWorldHint=true, but the description adds critical context they cannot convey: `npm install` executes the package's lifecycle scripts (supply-chain / code-execution risk) and the Unraid API is restarted, dropping the connection. Naming the exact permission required is also beyond what the annotations supply.

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 dense paragraph, front-loaded with the warning glyph and the risk disclosure, then input constraints, preconditions, verification, and the alternative tool. Every sentence contributes a distinct fact with no 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 destructive, non-idempotent installer with no output schema, the description covers the risk, preconditions, input format, and how to confirm results. It does not describe how partial failures across multiple `names` are reported, which is a minor gap given the 'reports submission' wording.

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 100%, so parameter meaning is already documented in the schema, including the bare/scoped-name constraint and the `confirm` semantics. The description repeats the naming constraint and the `confirm` requirement in prose, adding emphasis but little new meaning; baseline 3 applies.

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 specific verb and resource: 'Installs one or more Unraid API plugins by npm package name (`names`)'. It also explicitly distinguishes itself from the sibling `plugin_install_plg` for native .plg files, so an agent can route correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the condition for use, the hard preconditions (`confirm: true`, API key with CONFIG write / UPDATE_ANY), and an explicit alternative ('For native OS plugins (.plg files) use plugin_install_plg instead'). It also tells the agent to verify with `plugin_list` after reconnect, covering the post-call path.

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