Skip to main content
Glama
task-checkpoint

task-checkpoint

tc_import

Import a task package from another workspace or machine to continue work in a new directory, validating paths and rolling back failed imports.

Instructions

Import a package produced by tc_export and continue the task in another directory or on another machine. Use it on the receiving side of a handoff; to resume in the same workspace, tc_resume is enough and needs no package. It validates the task id and the workspace path, and refuses duplicate tasks, .. traversal and symlink targets; if anything fails it rolls back the files it already wrote.

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": {
      "root": "<root>",
      "package": "<package>"
    },
    "name": "tc_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootYesWorkspace root
packageYesPackage directory, i.e. the path returned by tc_export

Output Schema

NameRequiredDescriptionDefault
task_idYesTask id after import

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.8
    • changedInput schema / properties / package / description
      Previous value: -"交接包目录,即 tc_export 返回的 path"New value: +"Package directory, i.e. the path returned by tc_export"
    • changedInput schema / properties / root / description
      Previous value: -"工作区根目录"New value: +"Workspace root"
    • changedOutput schema / properties / task_id / description
      Previous value: -"导入后的任务 id"New value: +"Task id after import"
  2. Addedv0.1.7

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the tool writes files, validates the task id and workspace path, rejects duplicate tasks, '..' traversal and symlink targets, and performs an atomic rollback on any failure. It does not say what happens to pre-existing content at the destination root, whether a package must be locally accessible, or what permissions are required, so it stops short of complete.

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 sentences: purpose and handoff framing first, the sibling alternative second, safety/rollback contract last. No filler, and the most decision-relevant information is front-loaded.

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?

An output schema exists and annotations are absent, so the description only needs to cover intent and side-effect behavior — which it does, including failure atomicity and rejection conditions. For a two-parameter import tool, nothing an agent needs in order to call it safely is missing.

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 baseline is 3; the description still adds meaning by tying 'package' to tc_export's return path and by explaining that 'root' is validated against traversal and symlink attacks rather than used blindly. The added security semantics for the path parameter go beyond the bare 'Workspace root' label.

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 ('Import a package produced by tc_export') plus the intended outcome ('continue the task in another directory or on another machine'), and explicitly pairs it with the sibling that produces the input. An agent can distinguish this from tc_resume or tc_restore without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit placement ('Use it on the receiving side of a handoff') and an explicit alternative with its selection condition: 'to resume in the same workspace, tc_resume is enough and needs no package.' Both when-to-use and when-not-to-use are stated.

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