Skip to main content
Glama
ginkida

portainer-mcp

by ginkida

portainer_stack_deploy

Deploy a Docker stack from a compose string. Specify name, YAML content, and optional environment variables to launch services on a target endpoint.

Instructions

Deploy a new stack from a docker-compose string.

Args: name: Name of the new stack compose_content: Docker Compose file content (YAML string) env: Stack environment variables (substituted into the compose file by Portainer), e.g. {"DB_PASSWORD": "..."} endpoint_id: Target endpoint ID (uses default if omitted)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNo
nameYes
endpoint_idNo
compose_contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.8.0
    • addedInput schema / properties / env
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Env"
      +}
  2. First observedv0.3.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose key behaviors: env variables are 'substituted into the compose file by Portainer' and endpoint_id 'uses default if omitted'. However, it does not mention permissions, whether the deployment is asynchronous, or if the stack is immediately started. This leaves some behavioral aspects uncovered.

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 concise and front-loaded with the core purpose in one sentence, followed by a clean, well-formatted args list. Every sentence and line adds value with no redundancy. The structure makes it easy for an agent to quickly parse the essential information.

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?

Given an output schema exists, the description need not explain return values. It covers the purpose, all parameters, and key behaviors. It could mention prerequisites like authentication or that the stack is created and started, but these are typical for a deploy operation and not critical. Overall, it is sufficient for an agent to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must fully explain each parameter. It does so clearly: name ('Name of the new stack'), compose_content ('Docker Compose file content (YAML string)'), env ('Stack environment variables... e.g. {"DB_PASSWORD": "..."}'), and endpoint_id ('Target endpoint ID (uses default if omitted)'). This adds significant meaning beyond the bare schema.

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's purpose: 'Deploy a new stack from a docker-compose string.' This identifies the verb (deploy), resource (stack), and method (from a compose string), distinguishing it from sibling operations like update, delete, or start. It is specific and unambiguous.

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

Usage Guidelines3/5

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

The description implies the tool is for creating new stacks via 'Deploy a new stack', but it does not explicitly mention when not to use it or point to alternatives such as portainer_stack_update for existing stacks. No exclusions or alternative routing are provided, leaving the agent to infer usage context from the tool name and sibling list.

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

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/ginkida/portainer-mcp'

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