Skip to main content
Glama

drupal_view_export

Lists views or exports a specific view configuration from a DDEV-managed Drupal site by machine name.

Instructions

List views or export a specific view configuration

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>"
    },
    "name": "drupal_view_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoView machine name
siteYesDDEV site name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and does not disclose whether the tool is read-only, what 'export' actually returns (a file path, a raw YAML/JSON dump, or a config object), whether an export writes anything to disk, or what permissions are needed on the target site.

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

Conciseness4/5

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

A single eight-word sentence with no filler. However, the dual-mode behavior is compressed into one clause rather than being split into an explicit two-case structure, which would have been clearer.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should explain what an export yields, and it does not — that is the main gap for a two-mode tool. Coverage of inputs is fine thanks to the fully documented schema, but the export result format remains unknown to the agent.

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% (both 'site' and 'name' are documented in the schema), so the baseline is 3. The description does add the meaningful implication that presence or absence of 'name' selects between two behaviors, but gives no format detail for the machine name.

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 names two concrete operations (list views / export a view configuration) on a specific resource type, so the agent knows what the tool acts on. It stops short of stating that the site parameter scopes the operation to a Drupal site and does not explicitly tie the mode switch to the 'name' parameter.

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?

Phrasing implies two modes — omit 'name' to list, supply 'name' to export — but that condition is never stated outright. No guidance is given on when to prefer this over siblings like drupal_config_get or drupal_drush, and no when-not guidance appears.

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