Skip to main content
Glama

Dump a site's database

db_dump

Dump a site's database (any kind list_sites shows) to a .sql.gz file on its server, with the site's own credentials (they never reach the chat). The dump stays on the user's server; do not read its contents into the chat. Runs in the background: returns job_id and the file path; follow it with job_output. Files go to /var/lib/askyourstack/dumps; to move one to another server, transfer that folder.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "db_dump"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite root folder, like /var/www/shop, or one of the site's domains. Optional when the server has one site (see list_sites).
serverNoServer name or id. Optional when the account has one server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that execution is asynchronous (returns job_id and a file path), where files land (/var/lib/askyourstack/dumps), that the site's own credentials are used and never exposed to the chat, and that the dump persists on the user's server. These are exactly the side-effect and follow-up details an agent needs for a non-readOnly, non-idempotent operation.

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

Conciseness5/5

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

Four tight sentences, front-loaded with what the tool produces, then safety constraint, then async behavior, then file location. No repetition of the title and no filler; each clause carries operational meaning.

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

Completeness5/5

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

With no output schema, the description still explains the return values (job_id plus file path) and the follow-up tool. Combined with the file location and credential handling, nothing an agent needs to invoke and chain this tool correctly is missing.

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, server) are already documented in the schema, including their optional-when-single-resource behavior. The description only adds the pointer to list_sites for discovering valid sites and implies credential scoping, which is baseline-level value over structured data.

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?

States a specific verb (dump), resource (a site's database), and concrete output artifact (.sql.gz on the site's server). The clause about the dump staying on the server and not being read into the chat functionally separates it from db_query, so an agent can pick between them without opening schemas.

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?

Gives clear operating context: use it to produce a dump file, then follow with job_output, and transfer the dumps folder to move a file to another server. It also states a when-not behavior (do not read contents into the chat) but never names db_query or db_restore as the explicit alternative for inspecting or restoring data.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources