Skip to main content
Glama

drupal_drush

Executes Drush commands on a specified DDEV-managed Drupal site while safe mode enforces an allowlist to restrict allowed operations.

Instructions

Execute a drush command (safe_mode enforces allowlist)

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": {
      "site": "<site>",
      "command": "<command>"
    },
    "name": "drupal_drush"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments
siteYesDDEV site name
commandYesDrush command
safe_modeNoEnforce allowlist (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that safe_mode enforces an allowlist, but that fact is already repeated in the schema, and nothing is said about which commands are permitted, whether execution has side effects or is read-only, execution timeouts, required permissions, or what the output looks like for an arbitrary-command-execution tool.

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 single sentence is front-loaded and free of waste, but for a tool capable of running arbitrary drush commands it is under-specified rather than truly concise, leaving no room for the safety and scoping details an agent needs.

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 a powerful execute-anything tool with zero annotations and no output schema, the definition should explain the allowlist scope, expected command forms, and result behavior. None of that is present, so an agent has to discover the constraints by trial.

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%, with all four parameters (site, command, args, safe_mode) documented in the schema itself, so the baseline is 3. The description adds no meaning beyond the schema, merely restating the safe_mode allowlist behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: execute a drush command. That is unambiguous about what the tool does, but it makes no attempt to distinguish this general escape hatch from the surrounding drupal_* task-specific tools such as drupal_config_get or drupal_db_schema.

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 only usage signal is the parenthetical about safe_mode enforcing an allowlist, which implies this tool is restricted rather than a full shell. There is no statement of when to prefer this over the more specific sibling tools, nor any warning about when not to use it.

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