Skip to main content
Glama
hlavrencic

portainer-mcp-server

by hlavrencic

portainer_cleanup_unused_images

Delete unused Docker images to reclaim storage space, with an optional force flag to remove images even if in use. Requires a Portainer environment ID.

Instructions

Delete all unused Docker images with optional force flag

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce delete even if image is in use (default: false)
environmentIdYesPortainer environment ID
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It does indicate a destructive action ('Delete all unused Docker images') and mentions the force flag, but it fails to mention irreversibility, permission requirements, the role of environmentId, or what 'unused' precisely means. This is a significant gap for a potentially destructive operation.

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 a single, front-loaded sentence with no redundant details. Every word contributes meaning, and it includes the key qualifier 'all unused' and the optional force flag.

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?

Given the tool's destructive nature, lack of annotations, and no output schema, the description is incomplete. It does not explain the scope of the deletion across environments, the meaning of 'unused', or how it differs from related tools, leaving essential context missing for safe and correct use.

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%, so the baseline is 3. The description adds 'optional force flag' which is already documented in the schema, adding no extra meaning beyond what the structured schema provides.

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 uses the specific verb 'Delete' with the resource 'all unused Docker images' and highlights the optional force flag. This clearly distinguishes it from sibling tools like delete_image (which targets a specific image) and portainer_list_unused_images (which only lists).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as delete_image or when not to use it (e.g., if images are in use). It only states what the tool does, leaving the agent to infer usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hlavrencic/portainer-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server