Skip to main content
Glama

Cancel an AI evaluation run

vetkit_cancel_evaluation
Idempotent

Cancel a queued or running AI evaluation run and confirm the request when prompted. In-flight provider calls may still complete and be billed; check the final state afterward.

Instructions

Request cancellation of a queued or running AI Evaluation run. Requires the audits:write scope and a user confirmation through MCP elicitation. Provider calls already in flight may still complete and be billed. Check the final state with vetkit_get_evaluation.

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": {
      "evaluationId": "<evaluationId>"
    },
    "name": "vetkit_cancel_evaluation"
  }
}

Input Schema

NameRequiredDescriptionDefault
evaluationIdYesEvaluation run id (UUID), as returned by vetkit_list_evaluations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

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 by disclosing the required audits:write scope, a user confirmation step via MCP elicitation, and the important caveat that in-flight provider calls may still complete and be billed. The phrase "request cancellation" correctly signals the operation is asynchronous rather than immediate, which the idempotentHint alone would not convey.

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 sentences, each carrying distinct information: action and scope, prerequisites, billing caveat, and verification path. The most agent-critical constraint (queued or running) is front-loaded with no filler.

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 single-parameter mutation with no output schema, the description covers everything needed: authorization, human-confirmation friction, partial-completion risk, and where to check the resulting state. Nothing required for correct invocation 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?

Schema coverage is 100% and the single evaluationId parameter is already documented with format, pattern, and provenance ("as returned by vetkit_list_evaluations"). The description adds no meaning beyond the schema, so the 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 ("Request cancellation of a queued or running AI Evaluation run") and scopes it to two run states, which distinguishes it from vetkit_start_evaluation and vetkit_run_audit. An agent can identify the operation 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 Guidelines4/5

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

Explicitly gates usage on the run being queued or running and names the follow-up tool (vetkit_get_evaluation) for verifying the outcome. It does not enumerate a when-not condition, but the state restriction plus the scope requirement effectively bounds correct invocation.

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