Skip to main content
Glama

drupal_config_get

Retrieve Drupal configuration values by site and key or prefix from the sync directory or database to inspect project settings.

Instructions

Get Drupal configuration from sync directory or database

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

Input Schema

NameRequiredDescriptionDefault
siteYesDDEV site name
sourceNoConfig source
keys_or_prefixYesConfig key or prefix

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. 'Get' implies a read-only operation, but it says nothing about behavior when a key is missing, whether prefix matching returns multiple configs, or what the response contains. For a tool with zero annotation coverage this leaves a meaningful gap.

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?

One short, front-loaded sentence with no wasted words. It is efficient, though the terseness is close to under-specification rather than ideal conciseness.

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?

The tool is simple (3 params, no nesting), but with no output schema the description should say what a retrieval returns — a config object, an array of matches for a prefix, or an error shape. That return-behavior gap plus the absent source-selection guidance leaves the definition incomplete for correct invocation.

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%, with each of the three parameters described in the schema and the enum values for source documented there. The description's mention of 'sync directory or database' loosely reinforces the source parameter but adds no syntax, format, or prefix-vs-exact-key semantics beyond the schema.

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?

States a specific verb ('Get') and resource ('Drupal configuration') with the source scope ('sync directory or database'), so the agent knows exactly what is retrieved. It doesn't differentiate itself from siblings like drupal_view_export or drupal_drush, which is the only thing keeping it from a 5.

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 phrase 'sync directory or database' signals that a source choice exists, but it never says when to prefer sync over db, nor when to use this instead of drupal_drush or drupal_view_export. There are no exclusions, prerequisites, or context cues.

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