Skip to main content
Glama

drupal_db_schema

Inspect a DDEV Drupal site's database schema to list tables, columns, indexes, foreign keys, and PII tags, or drill into a single table for targeted review.

Instructions

Inspect database schema: tables, columns, indexes, FK, PII tags

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_db_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesDDEV site name
tableNoTable name (omit to list all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. "Inspect" implies a read-only operation and the enumerated outputs (tables, columns, indexes, FK, PII tags) tell the agent what to expect, but there is no statement about permissions, cost, or whether schema metadata is cached or live.

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 compact fragment with zero waste and the resource front-loaded. It is efficient, though the fragment style leaves it slightly under-specified rather than polished prose.

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?

For a two-parameter read tool with no annotations or output schema, the enumeration of returned elements effectively covers the return surface. However, it omits read-only confirmation, matching semantics for the table filter, and any note on scope or permissions, leaving minor gaps.

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 both parameters (site, table) are already documented in the schema, including the "omit to list all" behavior. The description adds no additional parameter semantics, so the baseline of 3 applies.

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 uses a specific verb ("Inspect") plus resource ("database schema") and enumerates the elements returned: tables, columns, indexes, FK, PII tags. It is clear on its own, but it never distinguishes itself from the closely related sibling drupal_entity_schema_summary, leaving overlap ambiguity.

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?

There is no when-to-use, when-not-to-use, or alternative guidance. The agent must infer from the verb that this is the tool for raw schema inspection, and must guess how it differs from drupal_entity_schema_summary or drupal_config_get.

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