Skip to main content
Glama
Hydrata

Hydrata MCP Server

Official
by Hydrata

Cancel a run

cancel_run
DestructiveIdempotent

Cancels an in-flight simulation run in built, queued, or computing status and terminates its compute resources. Use it to stop costly jobs; already-finished runs return a 409 conflict.

Instructions

Cancel an in-flight simulation run.

Needs a launch-level agent key; a read or draft key gets 403 AGENT_LEVEL_INSUFFICIENT.

Works on runs in built, queued, or computing status. Cleans up compute resources (terminates EC2 instance, Celery task, or Batch job).

Returns 409 if the run is already in a terminal state (complete, cancelled, or error).

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run ID to cancel

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the required key scope with the exact error code (launch-level agent key, else 403 AGENT_LEVEL_INSUFFICIENT), what side effects occur (compute teardown of EC2/Celery/Batch resources), and the terminal-state conflict behavior (409). Annotations only say destructive=true and idempotent=true; the description supplies the operational consequences and failure modes.

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?

Four short lines, each front-loaded with a distinct fact: auth requirement, valid states, side effects, and failure code. No restatement of the title or name and nothing decorative.

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?

For a one-param destructive mutation, it covers permissions, preconditions, side effects, and error responses, and an output schema already handles return values. Nothing an agent needs to invoke it safely and predict failure is missing.

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?

Only one parameter (run_id) and the schema already documents it at 100% coverage. The description adds no format, sourcing, or lookup guidance for run_id beyond the schema, so it sits at the baseline for high-coverage schemas.

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 ('Cancel an in-flight simulation run') and scopes it narrowly with 'in-flight', implicitly separating it from get_run, get_run_status, list_runs, and retry_run. An agent can tell immediately this is the termination path, not a status or retry path.

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?

Gives explicit eligibility ('built, queued, or computing status') and an explicit when-not ('409 if the run is already in a terminal state'). It stops short of naming a sibling alternative (e.g., retry_run for failed runs or get_run_status to check state first), so it is clear context without full routing guidance.

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