Skip to main content
Glama

Lightbringer

Cancel a Lightbringer agent conversation

cancel_task
Destructive

Stops a conversation whose agent is running and ends it as cancelled; what the agent already wrote stays on the platform. Only when the user asks to stop it. A conversation waiting for answers has nothing running to cancel, and a feedback task cannot be cancelled (delete_task removes its record). Returns the conversation task.

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": "cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYestask_id of a conversation that is running

Output Schema

NameRequiredDescriptionDefault
urlYes
nameYes
typeYes
statusYes
journeyNoThe journey this conversation follows; null for a conversation that is not a journey.
outputsYes
task_idYes
activityNoWhile running, what the agent is doing now; null otherwise. Relay it to the user rather than guessing.
next_stepNoWhat to do next with this conversation
questionsYes
created_atNo
expires_atNo
updated_atYes
model_classNoThe model class the conversation is set to. Out of credits a turn still runs on basic.
invention_idYes
last_messageNo
reasoning_effortNoThe reasoning effort the conversation is set to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / journey / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "journey_id": {
      -        "type": "string"
      -      },
      -      "outcome": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "coverage": {
      -                "description": "Each source the journey read, and whether it found something, nothing, or could not check",
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "note": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "source": {
      -                      "type": "string"
      -                    },
      -                    "state": {
      -                      "enum": [
      -                        "found",
      -                        "nothing_found",
      -                        "couldnt_check"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "source",
      -                    "state",
      -                    "note"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "done": {
      -                "description": "Each done criterion of the journey, from list_journeys, and whether it was met",
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "id": {
      -                      "type": "string"
      -                    },
      -                    "met": {
      -                      "type": "boolean"
      -                    },
      -                    "note": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "id",
      -                    "met",
      -                    "note"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "state": {
      -                "enum": [
      -                  "reached",
      -                  "not_reached"
      -                ],
      -                "type": "string"
      -              },
      -              "summary": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "summary",
      -              "coverage",
      -              "done"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Null until the agent finishes the journey; then whether it reached the outcome. Relay couldnt_check sources to the user."
      -      }
      -    },
      -    "required": [
      -      "journey_id",
      -      "outcome"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "journey_id": {
      +        "type": "string"
      +      },
      +      "outcome": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "coverage": {
      +                "description": "Each source the journey read, and whether it found something, nothing, or could not check",
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "note": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "source": {
      +                      "type": "string"
      +                    },
      +                    "state": {
      +                      "enum": [
      +                        "found",
      +                        "nothing_found",
      +                        "couldnt_check"
      +                      ],
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "source",
      +                    "state",
      +                    "note"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "done": {
      +                "description": "Each done criterion of the journey, and whether it was met",
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "id": {
      +                      "type": "string"
      +                    },
      +                    "met": {
      +                      "type": "boolean"
      +                    },
      +                    "note": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "met",
      +                    "note"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "state": {
      +                "enum": [
      +                  "reached",
      +                  "not_reached"
      +                ],
      +                "type": "string"
      +              },
      +              "summary": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "summary",
      +              "coverage",
      +              "done"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Null until the agent finishes the journey; then whether it reached the outcome. Relay couldnt_check sources to the user."
      +      }
      +    },
      +    "required": [
      +      "journey_id",
      +      "outcome"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=false, so the bar is lower; the description still adds meaningful scope detail by saying already-written agent output persists, and constrains which tasks are cancellable. It does not address what happens when cancelling an already-terminal task, which is the one behavior an idempotentHint=false agent would want spelled out.

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 core action and tightly packed, with every clause carrying either a constraint or an exclusion. The parenthetical and the trailing 'Returns the conversation task' sentence are slightly loose, but nothing is genuinely wasteful.

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

Completeness5/5

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

A single-parameter mutation with annotations and an output schema; the description covers the action, the guard conditions, the alternative tool, and the non-cancellable edge cases. Return-value detail is unnecessary because an output schema exists.

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?

There is a single parameter at 100% schema coverage, and the schema already says 'task_id of a conversation that is running'. The description reinforces the running requirement but adds no format, sourcing, or discovery guidance (e.g., where to obtain the task_id), so it lands at the baseline.

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?

States a specific verb and resource ('stops a conversation... ends it as cancelled') and immediately scopes it to a running agent. It also distinguishes itself from delete_task by noting the record survives cancellation, so an agent can pick between the two without opening a 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?

Gives an explicit trigger ('Only when the user asks to stop it'), two explicit non-applicable cases (a conversation waiting for answers, a feedback task), and names the alternative for the second case (delete_task removes its record). This is the full when/when-not/alternative set.

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.