Skip to main content
Glama

import_workspace

Destructive

Import a signed workspace export after verification. Choose a new mode that remaps IDs into a fresh workspace, or restore mode to keep original IDs, then mint new tokens.

Instructions

Verify then import a signed workspace export. mode new remaps ids into a fresh workspace; restore keeps original ids and fails if that workspace exists unless force is true. Tokens die on export: mint new tokens after import. Requires token:admin.

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": {
      "envelope": "<envelope>"
    },
    "name": "import_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNodefaults to new
forceNoerase an existing workspace when mode is restore
envelopeYesthe signed maidan.workspace.export/1 envelope

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint, idempotentHint=false) by disclosing the auth requirement ('Requires token:admin'), the destructive side effect of force ('erase an existing workspace'), and the non-obvious consequence that exported tokens are invalidated and must be re-minted. That token-invalidation note is the kind of behavioral detail an agent cannot get from structured fields.

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?

Three tight sentences, front-loaded with the core action, then mode semantics, then the operational caveats. Every clause carries distinct information with no restatement of the name or title.

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?

For a destructive, nested-envelope mutation with no output schema and no annotation detail on prerequisites, the description covers auth, failure modes, and side effects well. It stops short of saying what the caller receives back (e.g., the resulting workspace identity or old-to-new id mapping), which matters for a remapping import.

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, yet the description still adds real meaning: new remaps ids versus restore preserving them, and force as the override for the existence failure. The envelope parameter's internal structure and any id-mapping output are left unelaborated, keeping it below the top mark.

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?

States a specific compound verb plus resource: 'Verify then import a signed workspace export.' The 'Verify then' phrasing signals the verification is bundled inside, which implicitly separates it from a pure verify tool, but it never names that sibling, so the differentiation is inferred rather than stated.

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 decision criteria: mode new for a fresh remapped workspace, restore for original ids, and an explicit failure condition ('fails if that workspace exists unless force is true') plus the post-import requirement to mint new tokens. It covers when and when-not well but does not name an alternative tool to use instead in any scenario.

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