Skip to main content
Glama
grandMA2 MCP
by drohi-r

abort_task

Halt a running task session mid-way or retroactively void a completed session, returning its aborted status with completed and failed steps.

Instructions

    Mark a task session as aborted and return its completion status.

    Looks up the session in long-term memory and surfaces its completed/failed
    step list with an aborted label. Use this when a running task must be halted
    mid-way or when a completed session needs to be retroactively voided.

    Args:
        session_id: 8-char session ID from list_agent_sessions or run_task output.
        reason:     Abort reason string (default "user_requested").

    Returns:
        str: JSON with aborted, session_id, reason, steps_completed, steps_failed.
    

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": {
      "session_id": "<session_id>"
    },
    "name": "abort_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNouser_requested
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add real context: it discloses the long-term-memory lookup, the aborted label, and the returned fields (aborted, reason, steps_completed, steps_failed). However, it is ambiguous whether aborting actually terminates a running task or merely marks the stored session record, and it says nothing about permissions, irreversibility, or rate limits for a destructive-sounding mutation.

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?

Front-loaded with the action and effect, then usage, then args and returns. The Args block earns its place given 0% schema coverage; the Returns block is somewhat redundant with the output schema but is short and confirms the shape in one line.

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 two-parameter mutation, the definition covers purpose, both parameters, sources for the ID, and the return shape. The one missing piece an agent needs is whether the abort has real execution-level effect and whether it is reversible; otherwise it is complete.

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 description coverage is 0%, so the description must compensate, and it does: session_id is specified as an 8-character ID sourced from list_agent_sessions or run_task output, and reason is documented with its default of 'user_requested'. Only the format/validation expectations for reason are left unspecified.

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?

The first sentence gives a specific verb ('Mark ... as aborted') plus resource ('a task session') and a secondary effect ('return its completion status'). The second sentence clarifies that it operates on records in long-term memory and surfaces the step list, which distinguishes it from run_task (execution) and list_agent_sessions (enumeration).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly names two triggering situations: halting a running task mid-way and retroactively voiding a completed session. It also points to where the session_id comes from (list_agent_sessions or run_task output). It lacks an explicit when-not / do-not-use-this-instead clause, so it falls short of full routing guidance.

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

Deploy Server

Other Tools