Skip to main content
Glama

complete_step

Submit a step result to mark it complete, then evaluate downstream gate conditions and return newly READY steps for continued workflow automation.

Instructions

提交步骤结果并完成该步骤;Runtime 随即自动求值下游门条件(假则跳过),并返回新的 READY 步骤。result 建议传结构化 JSON(摘要、数字、产出物路径等)。

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": {
      "id": "<id>",
      "stepId": "<stepId>"
    },
    "name": "complete_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
notesNo补充说明(可选)
resultNo任意 JSON 结构,作为该步骤的结果存档
stepIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden and does add real value here: it discloses that the runtime immediately evaluates downstream gate conditions, that false gates cause skipping, and that a new READY step is returned. It omits idempotency, permission requirements, and error/failure behavior for an operation that advances workflow state.

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?

Several compact clauses, no filler, with the core action front-loaded before the side effects and the result-format hint. Slightly dense but every clause contributes information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with no annotations and no output schema, the description covers the post-completion side effect and the result payload well. It still leaves the required identifiers ambiguous and says nothing about failure modes, which matters because completing a step advances a workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%, and the description does compensate for the least obvious parameter by recommending structured JSON for 'result' with example contents (summary, numbers, artifact paths). However, neither 'id' nor 'stepId' is clarified anywhere, leaving the run-id vs step-id distinction unresolved.

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 names a specific verb plus resource ('提交步骤结果并完成该步骤'), which reads clearly as the step-completion tool and is distinguishable from siblings like skip_step or undo_step by implication. It stops short of explicitly contrasting itself with those alternatives, so it is clear but not fully self-differentiating.

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 is implied: call this when you have a step result to record and want the step marked done, and the note about passing structured JSON hints at the expected input shape. There is no explicit when-not guidance, no mention of skip_step/next_step as alternatives, and no statement about what happens if the step is already complete.

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