Skip to main content
Glama

Complete procedure step

complete_step

Write: successfully finish your attempt_id (scenario:execute). For failure/blocker use block_step instead. report = short human-readable summary; outputs = flat key/values (string|number|boolean|null) only. Grant required unless replaying an already-recorded outcome. If next_action=wait_human: do NOT stop — run the await_human ladder: one mode=block, then up to 3 mode=poll spaced by sleep(retry_after), then tell the user. Never a second block. Never poll without sleeping retry_after first. On changed=true follow the new next_action.

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

Input Schema

NameRequiredDescriptionDefault
grantNoRaw grant token; optional if already in procedure id (#grant= or ?grant=)
reportNoShort human-readable summary of what was done
outputsNoFlat structured results (string|number|boolean|null); not nested objects
attempt_idYesattempt UUID from take_step/resume_step
procedure_idNoOptional; used only to extract #grant=

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare non-readOnly, non-destructive, non-idempotent; the description adds the substantive behavior an agent actually needs: the grant/auth requirement, the exception for replaying recorded outcomes, the retry ladder after wait_human, and the instruction to follow the new next_action when changed=true. These are operational rules no annotation or schema field conveys.

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?

Front-loaded with purpose then alternatives, then the wait_human decision tree, so the highest-value information comes first and each clause carries a rule. It is telegraphic in places ("Never a second block") and dense enough that a first-time reader may need a pass, but there is little outright waste.

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 5-parameter mutation tool with no output schema, the description covers invocation prerequisites, error routing, and follow-up handling well, implying that next_action and changed come back in the response. It never states the actual success payload or what the call returns, which is the remaining gap given no output schema exists.

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 descriptions of attempt_id, report, outputs, grant and procedure_id already exist in the schema. The description still adds constraint-level meaning, notably that report is a short human-readable summary and outputs must be flat scalar key/values only, reinforcing the no-nesting rule from a second angle.

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?

Opens with an explicit verb-and-resource statement: "successfully finish your attempt_id", identifying this as the success-termination write for a procedure step. It immediately contrasts with block_step for failure/blocker cases, so an agent can distinguish the two without consulting either 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?

Explicitly routes the agent: use this on success, use block_step for failure/blocker, and grant is required unless replaying an already-recorded outcome. It also gives a full when-then playbook for next_action=wait_human (one block, up to 3 polls with sleep(retry_after), then tell the user) including the prohibitions on a second block and on polling without sleeping.

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