Skip to main content
Glama

Control instruction task

control_instruction_task
DestructiveIdempotent

Pause, resume, cancel, retry or clarify a selected instruction task. The control record lets the executing agent acknowledge the change.

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": {
      "projectId": "<projectId>",
      "taskId": "<taskId>",
      "expectedVersion": "<expectedVersion>",
      "action": "<action>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "control_instruction_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText accompanying the task control action, such as a clarification.
actionYesRequested control operation for the selected instruction task.
taskIdYesExisting instruction task ID from the project inbox or a task creation result; distinct from a queue item or session ID.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
executionIdNoExecution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
expectedVersionYesCurrent version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / executionId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Execution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID."
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
    • changedInput schema / properties / taskId / description
      Previous value: -"Existing instruction task ID returned by inbox_list or task creation; distinct from a queue item or session ID."New value: +"Existing instruction task ID from the project inbox or a task creation result; distinct from a queue item or session ID."
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "idempotencyKey",
      -  "taskId",
      -  "expectedVersion",
      -  "action",
      -  "idempotencyKey"
      -]New value: +[
      +  "projectId",
      +  "taskId",
      +  "expectedVersion",
      +  "action",
      +  "idempotencyKey"
      +]
  3. Changed5 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"Requested control operation for the selected instruction task."
    • changedInput schema / properties / executionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
    • changedInput schema / properties / taskId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Existing instruction task ID returned by inbox_list or task creation; distinct from a queue item or session ID."
    • addedInput schema / properties / text / description
      Added value: +"Text accompanying the task control action, such as a clarification."
  4. Changed6 schema fields changed
    • addedInput schema / properties / executionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / taskId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  5. Added

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true. The description supplements this with useful context that a control record is produced so the executing agent can acknowledge the change, which hints at the return behavior. However, it never states that cancel is irreversible or what side effects pause/resume have on running work, which is significant for a tool the description itself calls destructive.

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 tightly written sentences with the action list front-loaded and no redundant wording. Nothing in it is filler.

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?

With eight parameters, five required, and no output schema, the definition relies heavily on the schema's own documentation, which is complete. The description is adequate but leaves the meaning of the control record and the consequences of each action under-specified for a destructive mutation tool.

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 description coverage is 100%, so every parameter, including the action enum, the idempotency key semantics, and expectedVersion conflict behavior, is already documented in the schema. The description adds no meaning beyond restating the action vocabulary, so the baseline of 3 applies.

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 uses a specific verb set and names the resource: "Pause, resume, cancel, retry or clarify a selected instruction task." It distinguishes this tool from the sibling acknowledge_instruction_control by noting the executing agent acknowledges via the control record, but it does not explicitly name the alternative tool.

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 by the enumerated actions and by the phrase "a selected instruction task," which signals this tool operates on an already-selected task. However, there is no explicit guidance on when to choose pause versus cancel, no mention of the prerequisite that the task be selected first, and no routing to related tools for task creation or acknowledgment.

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