Skip to main content
Glama

task_resume

Resume a long-running task from its last checkpoint so completed steps are not rerun; use force only when the worker is confirmed disconnected.

Instructions

断点续跑:从检查点续跑指定任务,已完成步骤不重跑(留痕不重复)。 force 仅在工位已确认失联时使用;活工位强制续跑会被拒绝。

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": {
      "task_id": "<task_id>"
    },
    "name": "task_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
task_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the key behaviors: checkpoint-scoped resume, no re-execution of finished steps, no duplicated traces, and a documented rejection case for force on a live worker. It stops short of stating permissions, what happens when no checkpoint exists, or how the rejection surfaces to the caller.

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?

Two tight sentences with zero filler; the resume semantics come first and the force caveat is placed after, matching the order an agent would reason about them.

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 return values need not be explained, and the description covers the mutation's risk profile and idempotency. It is only slightly short of complete in not covering the no-checkpoint case or how a rejected force attempt is reported.

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%, so the description must compensate, and it does so for the non-obvious parameter by defining force's precondition and failure mode. The required task_id is left to its self-explanatory name and schema title.

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?

Names a specific verb and resource ('断点续跑:从检查点续跑指定任务') and states the core semantic that distinguishes it: already-completed steps are not re-run. It never names a sibling like task_submit or task_status, so differentiation is implied by behavior rather than stated explicitly.

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 a concrete when-to-use rule for the risky path: 'force 仅在工位已确认失联时使用' with the consequence that forcing a live worker is rejected. That is a genuine usage constraint, but it only governs the force parameter and offers no guidance on when to resume versus submit a new task.

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