Skip to main content
Glama

Skyvern Cancel Run

skyvern_cancel_run
Read-onlyIdempotent

Cancel a Skyvern run that is still queued or running, to stop further per-step billing. Requires your own Skyvern API key as _apiKey.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "run_id": "tsk_123456789",
      "_apiKey": "your-skyvern-api-key"
    },
    "name": "skyvern_cancel_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run_id to cancel.
_apiKeyNoYour Skyvern API key (from your Skyvern account settings). Every run is billed to your Skyvern account.

Output Schema

NameRequiredDescriptionDefault
nextNo
outputNo
run_idNo
sourceNo
statusNo
app_urlNo
warningNo
finishedNo
max_stepsNo
succeededNo
created_atNo
step_countNo
finished_atNo
recording_urlNo
failure_reasonNo
screenshot_urlsNo
cancel_requestedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior1/5

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

The description describes a state-changing cancellation that stops per-step billing, yet annotations declare readOnlyHint=true and destructiveHint=false. A cancel operation modifies server-side run state and is not a read-only operation, so the description and annotations give an agent directly conflicting signals about side effects. Everything the description does disclose beyond annotations (the API-key requirement, the billing motivation) is undercut by this inconsistency.

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?

Two short sentences, front-loaded with the action and the billing motivation. The second sentence largely repeats the _apiKey field description, so it earns slightly less than full marks, but nothing is padded.

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?

An output schema exists, so return values need not be explained, and the core intent is clear. What is missing is behavioral detail an agent would want for a mutation: whether cancellation is immediate, what happens to billing already incurred, and whether the run must belong to the caller's account — and the readOnly annotation actively misleads on side effects.

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 coverage is 100% and both run_id and _apiKey carry their own descriptions, so the schema already does the parameter work. The description only restates the API-key requirement, adding no syntax, format, or auth nuance beyond what the schema says. Baseline 3 applies.

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 a Skyvern run') plus a scope qualifier ('that is still queued or running'), which cleanly separates it from skyvern_get_run (inspect) and skyvern_run_task (start). An agent can pick this tool without opening the schema.

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?

The 'still queued or running' clause functions as an implicit precondition, and the billing rationale hints at why you would call it. But there is no explicit statement of what to do if the run already completed or failed, and no named alternative for those cases.

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.