Skip to main content
Glama

ddev_import_db

Import a SQL dump into your DDEV project database, supporting compressed and archive formats with options for extraction path and target database selection.

Instructions

Import a SQL dump file into the project. Supports .sql, .sql.gz, .sql.bz2, .sql.xz, .mysql, .zip, .tgz, .tar.gz. For archives, use extractPath for path inside archive. Target DB via targetDb (default "db"). Usage: ddev import-db [project] [flags] MCP args → ddev: src → --file, targetDb → --database, extractPath → --extract-path For full options and examples: ddev help import-db

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
srcNoPath to SQL dump file (ddev --file). Relative to project or absolute.
targetDbNoTarget database name (ddev --database, default "db")
extractPathNoPath to extract within archive (ddev --extract-path)
projectPathNoPath to the DDEV project directory
Behavior3/5

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

With no annotations, the description carries the burden of disclosing behavior. It reveals supported formats, archive extraction behavior, and the default targetDb. However, it omits critical behavioral aspects such as whether an existing database is overwritten, permissions needed, or what the command outputs on success/failure.

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?

The description is compact and front-loaded: the main action is stated first, followed by a concise list of supported formats and usage details. Every sentence contributes useful information, though the usage line is a bit terse and tucks projectPath away.

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?

Given no output schema, the description does not explain the return value or success/failure behavior, which is a gap for an import operation. It also does not describe the projectPath parameter in the text, though it appears in the schema. The tool is relatively simple, but lacks coverage of side effects and output.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description enriches this by mapping each MCP arg to the corresponding ddev flag (src → --file, targetDb → --database, extractPath → --extract-path), and clarifies the default for targetDb ('default "db"') and the purpose of extractPath. This adds practical value beyond the 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 uses a specific verb and resource: 'Import a SQL dump file into the project.' It clearly distinguishes from sibling ddev_export_db by the action (import vs export) and lists supported file formats, leaving no ambiguity about the tool's purpose.

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

Usage Guidelines4/5

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

Provides explicit usage syntax ('Usage: ddev import-db [project] [flags]') and an MCP arg-to-flag mapping. Gives conditional guidance for archives ('For archives, use extractPath'). Does not explicitly state when not to use this tool versus alternatives, but the context is clear and actionable.

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

Install Server

Other Tools

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/codingsasi/ddev-mcp'

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