Skip to main content
Glama

Backup database

backup_database

Back up an app's D1 database now: {app, binding?} (binding defaults to the single declared binding). Returns the stored backup id, time and size. Owner only.

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": {
      "app": "<app>"
    },
    "name": "backup_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
bindingNoThe D1 binding. Omit to use the app's only declared binding.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses that the call returns the stored backup id, time and size, that the binding defaults when omitted, and that owner permission is required. That is meaningful added context; it stops short of saying whether repeated calls accumulate extra backups or how long a snapshot takes, which matters given idempotentHint=false.

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?

One dense leading clause carries the action, the argument tuple and the defaulting rule, followed by short sentences for return values and permission scope. No filler, and the operation itself is front-loaded.

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

Completeness4/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 correctly compensates by naming the returned fields (id, time, size), and for a two-parameter tool at full schema coverage it is nearly complete. The one gap is timing behavior: "now" is ambiguous about whether the call blocks until the snapshot is written or returns immediately.

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 `app` and `binding` are already documented in the schema, including the default. The description merely restates that `binding` defaults to the single declared binding, adding no format, slug-resolution or error-case detail beyond the schema's own wording.

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 gives a specific verb and resource ("Back up an app's D1 database now") plus the exact argument shape {app, binding?}, so the agent knows precisely what the call does and against what resource. It never names a sibling for contrast, so the differentiation is left to the verb alone ("back up" vs. the obvious restore/rollback flavor of the action).

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?

The word "now" implies an on-demand, synchronous snapshot, and "Owner only" excludes non-owner callers, which is real scoping guidance. However, there is no statement of when to prefer this over an alternative (e.g., a scheduled backup or a staging/rollback flow), so the when-to-use rule is only implied.

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.