Skip to main content
Glama

import-data

Destructive

Applies a bundle to a tool root, either as a dry-run plan or a live import, with optional secret-store and asset writes.

Instructions

dbabrain common.cli import-data: Which bundle to apply to which tool root, as a plan or for real. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • bundle: The bundle file to read. Required.

  • root: The tool root to write into; default the one resolved.

  • plan_only: Report what would be written and change nothing.

  • force: Replace files that exist with different content.

  • include_secrets: Write the secret store if the bundle carries one; default true.

  • include_assets: Write assets/ and data/ssh_keys/; default true.

  • format: json (the envelope, default) or txt (the lines a person reads).

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": "import-data"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the description's 'Changes or removes something' is consistent rather than additive. Beyond the annotations it discloses genuinely new risk context: the emergency-operations gating requiring `confirm`: "yes" plus a `reason`, that `force` replaces existing files with differing content, and that `include_secrets` writes the secret store by default. The one gap is that it does not quantify scope (what a bundle can overwrite wholesale) or describe failure/rollback behavior.

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

Conciseness3/5

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

The bulleted field list is well structured and each bullet earns its place, but the opening sentence is a fragment that describes arguments before establishing the action, and 'as on the command line' adds little for an agent caller. The hedged phrase 'Changes or removes something' is also less precise than the space it consumes. Length is appropriate overall, but front-loading is weak.

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?

An output schema exists, so the description needn't explain return values, and it correctly focuses on the risky behaviors and the request payload — the two things an agent most needs for a destructive, open-world import. The defaults for `include_secrets` and `include_assets` are especially valuable since the schema leaves the request object fully opaque. It is nearly complete; the missing pieces are a clear statement of the action verb and of what `root` resolution means in practice.

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 description coverage is 0% and the single input parameter is a generic `request` object, so the description carries essentially the entire parameter burden — and it does so, enumerating six sub-fields with required status and defaults (`bundle` required, `root` default resolved, `plan_only`, `force`, `include_secrets` default true, `include_assets` default true, `format` default json vs txt). It stops short of stating value syntax or types for the boolean flags, and `confirm`/`reason` are referenced in prose rather than listed among the request fields.

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 conveys the action concretely: applying a bundle file to a tool root, either as a preview plan or as a real write, and states outright that it 'Changes or removes something'. It never names a specific verb+resource pairing like 'imports data' and its opening sentence is phrased as a fragment about arguments rather than an action statement, but the resource (bundle into a tool root) is unambiguous. Sibling differentiation from export-data is only implied by the direction of data flow, not stated.

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?

Usage context is implied through the `plan_only` option ('Report what would be written and change nothing') and the observation that emergency-operations commands require `confirm`/`reason`, which tells an agent how to operate safely. There is no explicit when-to-use framing, no when-not-use conditions, and no named alternative such as export-data or a preview-only tool. The guidance is present but requires inference.

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

Deploy Server

Other Tools