Skip to main content
Glama

BitCLI — Crypto Futures & Order Flow

cancel_alert

BEHAVIOR & SIDE EFFECTS: State-mutating and destructive. Irreversibly unregisters and removes an active trigger from both C++ HFT engine memory and Redis state. Operation is idempotent: canceling an already expired or non-existent alert safely returns an explanatory message without corrupting state.

WHEN TO USE: Call this tool as soon as a trading setup is executed, invalidated, or no longer needed, to free engine capacity.

WHEN NOT TO USE: Do not use to inspect active triggers (use list_alerts).

PREREQUISITES: Requires a valid alert_id previously returned by create_alert (e.g. 'alrt_101').

FAILURE MODES: If the alert_id is missing or expired, returns isError: true with a clear diagnostic message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alert_idYesUnique identifier of the alert returned by `create_alert`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / alert_id / description
      Previous value: -"Unique alert ID returned by create_alert (e.g. 'alrt_101')."New value: +"Unique identifier of the alert returned by `create_alert`."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: it discloses the operation is state-mutating and destructive, irreversible, idempotent for expired/non-existent alerts, requires a prior create_alert id, and returns isError:true with a diagnostic on failure. This is rich behavioral context beyond what structured fields provide.

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?

The labeled sections (BEHAVIOR, WHEN TO USE, WHEN NOT TO USE, PREREQUISITES, FAILURE MODES) are front-loaded and scannable, with no filler sentences. It is slightly verbose for a single-parameter tool, but every section carries distinct decision-relevant information.

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-parameter destructive tool with no annotations and no output schema, the description covers side effects, irreversibility, idempotency, prerequisites, and error behavior. Nothing an agent needs to invoke it safely is missing.

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 coverage is 100%, so the alert_id parameter is already documented in the schema, giving a baseline of 3. The description adds origin and format context (previously returned by create_alert, example 'alrt_101') and ties the parameter to the failure mode when missing, exceeding 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?

The description names a specific verb and resource ('cancel_alert' unregisters and removes an active trigger) and states exactly which systems are affected (C++ HFT engine memory and Redis state). It is clearly distinguishable from siblings like create_alert and list_alerts.

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?

It gives an explicit WHEN TO USE trigger condition (setup executed, invalidated, or no longer needed) and a WHEN NOT TO USE with the named alternative tool ('use list_alerts' to inspect triggers). No inference is required to route correctly.

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.

Resources