Skip to main content
Glama
pbajkovic-hub

tv-cdp-mcp

tv_cancel_order

Destructive

Cancel a working paper trading order by ID on TradingView. Returns the cancelled order and remaining working orders.

Instructions

MUTATES the connected TradingView broker: cancel one working order by id (entry orders; bracket orders belong to their position). PAPER ONLY. Returns the cancelled order and the remaining working orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layoutNochart layout id or index; default active
order_idYesorder id from tv_trading_status
expect_layoutNolayout id the tab is expected to show right now; the call refuses if it differs (a tab keeps its target id when the user opens another layout in it)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructive behavior, and the description adds context: it mutates the broker, is paper-only, and returns both the cancelled order and remaining working orders. This goes beyond the annotation by describing the return value and scope.

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?

Two sentences, front-loaded with the key action 'MUTATES' and the specific resource. No redundancy; every clause carries meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the operation, scope, constraints, and return value. It lacks error handling details or prerequisites, but for a cancel operation with clear annotations and full schema coverage, it is sufficiently complete.

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% with parameter descriptions for all three fields. The description adds minimal parameter-level detail beyond restating that it cancels by id, which the schema already implies. Baseline of 3 is appropriate.

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 the tool cancels a working order by id, specifies it's for entry orders, and differentiates from bracket orders. It also mentions the connected TradingView broker and that it's paper-only, making the purpose unambiguous and distinct from siblings like tv_close_position.

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?

It explicitly states when to use this tool (cancel entry orders) and implicitly when not to (bracket orders belong to position). It doesn't name specific alternatives but provides clear scoping. The 'PAPER ONLY' constraint is a useful usage guard.

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