Skip to main content
Glama

Import a Setup Scan

import_setup_scan
Destructive

Imports a machine-generated setup scan (scan.atoms) as setup snapshot items. Creates a new snapshot with source "cli_scan", or with snapshotId updates a snapshot the user owns in place (same id, next revision); an unknown or not-owned snapshotId is refused and never creates one. Every atom needs stateClassification. Local absolute paths and secret-shaped values are refused before scanning; returns privacyWarnings, acknowledgeable terms and coverage (compacted under 50,000 chars when large). dryRun: true checks without importing. get_reference topic "snapshot_guide" documents the item types for every platform. [Bearer scope: setup_snapshot:publish]

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": {
      "scan": "<scan>"
    },
    "name": "import_setup_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
scanYes
titleNoOptional snapshot title; defaults to a generated one (create) or keeps the existing title (update).
dryRunNoWhen true, runs the boundary checks, full content scan and coverage report and returns privacyWarnings and acknowledgeable without importing (no snapshot, revision or audit entry).
summaryNoOptional snapshot summary; defaults like title.
snapshotIdNoOptional: update this owned snapshot in place instead of creating. Foreign/unknown ids refuse — never a silent create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description layers on substantial behavior beyond that: ownership enforcement with no silent create, same-id/next-revision update semantics, per-atom stateClassification requirement, pre-scan refusal of local absolute paths and secret-shaped values, returned privacyWarnings/acknowledgeable terms/coverage with a 50,000-char compaction rule, and dryRun not persisting snapshot, revision, or audit entry.

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?

Information-dense and front-loaded: the primary action and its create/update fork come first, then validation, returns, and auth scope. Some sentences pack multiple clauses with parentheticals, but almost nothing is redundant with the schema or annotations.

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?

For a destructive, nested-object tool with no output schema, the description covers return payloads (privacyWarnings, acknowledgeable terms, coverage), failure modes, update semantics, dry-run safety, and bearer scope. An agent can select and invoke it correctly without consulting other documentation, apart from the intentional pointer to get_reference for item types.

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 80%, so the schema carries most parameter meaning; the description still adds real semantics on top, particularly that snapshotId targets an owned snapshot in place and that foreign/unknown ids refuse rather than create, and that dryRun omits snapshot, revision, and audit entries. Title/summary defaults are restated from the schema rather than extended.

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 and resource ('Imports a machine-generated setup scan (scan.atoms) as setup snapshot items') and immediately disambiguates the two modes: create with source 'cli_scan' versus in-place update when snapshotId is supplied. That makes it clearly distinguishable from sibling tools like update_setup_snapshot or publish_setup_snapshot.

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 concrete when-to-use guidance: dryRun: true to check without importing, and get_reference topic 'snapshot_guide' for item-type documentation. It also states the refusal condition for unknown/not-owned snapshotId rather than silently creating. It stops short of naming a sibling alternative (e.g. update_setup_snapshot) explicitly, so it is not a full 5.

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