Skip to main content
Glama
blurryface1

tradingagents-mcp

by blurryface1

cancel_analysis

DestructiveIdempotent

Cancel a queued or running financial analysis task to stop execution and mark it as cancelled, freeing resources and preventing unwanted outputs.

Instructions

Cancel a queued or running analysis task.

Cancellation stops the task and puts it in the 'cancelled' terminal state. The task and its partial results remain available for deletion. Cancellation of a succeeded or failed task has no effect.

Args: run_id: Task identifier to cancel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Goes beyond annotations by explaining the task transitions to a 'cancelled' terminal state, partial results remain available, and no effect on succeeded/failed tasks. This enriches the destructiveHint and idempotentHint annotations without contradiction.

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?

Description is front-loaded with the purpose, followed by concise behavioral notes and a single parameter explanation. No unnecessary verbosity.

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?

Given the simple one-parameter schema, provided annotations, and output schema, the description fully covers the tool's behavior, state transitions, and parameter semantics. No need to describe return values since output schema exists.

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?

The input schema has 0% description coverage, but the description defines run_id as 'Task identifier to cancel,' which is sufficient for a single, simple string parameter.

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 clearly states 'Cancel a queued or running analysis task,' using a specific verb and resource. It distinguishes itself from siblings like start_analysis and delete_analysis.

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?

The description provides clear context for when cancellation applies (queued/running) and when it has no effect (succeeded/failed). It does not explicitly name alternative tools like delete_analysis, but the guidance is still useful.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/blurryface1/tradingagents-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server