Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

continue_task_run

Resume a waiting scoped TaskRun using its current state version. Use only after the preceding resource and authority prerequisites are satisfied; inspect the server receipt before continuing. Required fields: organizationId, projectId, environmentId, taskRunId, expectedVersion. The authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it. Unknown fields are rejected. This changes governed state and remains fail-closed behind server authorization and an auditable receipt.

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": {
      "taskRunId": "<taskRunId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "continue_task_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoDocumented cursor input for continue_task_run; use the published type and keep customer data within the authenticated scope.
projectIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
taskRunIdYesImmutable taskRunId reference used to bind this continue_task_run operation to the correct released or persisted resource.
environmentIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
organizationIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
expectedVersionYesCurrent persisted lifecycle version; required for optimistic concurrency and must be read immediately before the transition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / cursor / description
      Added value: +"Documented cursor input for continue_task_run; use the published type and keep customer data within the authenticated scope."
    • addedInput schema / properties / environmentId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current persisted lifecycle version; required for optimistic concurrency and must be read immediately before the transition."
    • addedInput schema / properties / organizationId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / projectId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / taskRunId / description
      Added value: +"Immutable taskRunId reference used to bind this continue_task_run operation to the correct released or persisted resource."
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description adds that it changes governed state, is fail-closed behind server authorization, emits an auditable receipt, enforces tenant-scope matching, rejects unknown fields, and uses optimistic concurrency via expectedVersion. It stops short of saying what happens on a version conflict or what the receipt contains.

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 the action and its precondition, then constraints, then behavioral caveats. Four sentences with little waste, though phrases like 'governed state' and 'auditable receipt' are somewhat bureaucratic padding.

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 non-idempotent state-transition tool with no output schema, it conveys authorization, scope enforcement, optimistic concurrency, and the receipt to inspect. It would be stronger if it described the failure mode on stale expectedVersion and the shape of the returned receipt.

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

Parameters2/5

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

Schema description coverage is already 100%, and the description mostly repeats it (scope identifiers must match the session scope). Worse, it declares 'Required fields: organizationId, projectId, environmentId, taskRunId, expectedVersion' while the schema marks only taskRunId and expectedVersion as required, and it omits the cursor parameter entirely — introducing confusion rather than clarity.

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 verb and resource with a state precondition: 'Resume a waiting scoped TaskRun using its current state version.' The word 'waiting' distinguishes it from retry_task_run or cancel_task_run, though those siblings are not named explicitly.

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?

Provides a precondition ('Use only after the preceding resource and authority prerequisites are satisfied') and a post-step ('inspect the server receipt before continuing'), but 'preceding resource and authority prerequisites' is undefined and no alternative tool is named for the non-waiting or failed-state case.

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