Skip to main content
Glama
nexus-xyz

nexus-exchange-mcp

Official
by nexus-xyz

set_cancel_on_disconnect

Manage cancel-on-disconnect (COD) for your exchange account. Enable to auto-cancel all resting orders if your WebSocket drops, or disable to keep them active.

Instructions

Enable or disable cancel-on-disconnect (COD) for the authenticated account. Pass enabled: true to arm the dead man's switch (the exchange cancels all resting orders when your authenticated WebSocket drops and does not reconnect within the grace window) or enabled: false to disable it. Off by default. enabled is required and explicit — there is no default — so every call states the intended state and an argless call is rejected rather than silently toggling. Returns the resulting COD status. Requires API credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enabledYesTrue to enable COD for the account, false to disable.
Behavior5/5

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

With no annotations, the description carries the full burden and excels: it explains the dead man's switch behavior, the grace window, the explicit state requirement, that argless calls are rejected, that API credentials are required, and that it returns the resulting status. This is complete and transparent for a state-setting tool.

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?

The description is appropriately sized—every sentence adds value. It front-loads the purpose, explains the behavior, the reason for explicitness, the return, and the requirement, all in a well-structured paragraph without any fluff or redundancy.

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-boolean-parameter tool with no output schema, the description is complete: it covers purpose, behavior, return value, authentication requirements, and edge cases (explicit value, argless rejection). Despite being simple, the description covers all relevant context needed for correct invocation.

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% with the parameter already described. The description adds meaning beyond the schema by explaining the real-world effect (cancels orders on disconnect, grace window) and the rationale for the explicit required boolean. This goes beyond a simple repetition, justifying a score above 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 clearly states the action (enable or disable cancel-on-disconnect) and the resource (COD for the authenticated account). It distinguishes from the sibling get_cancel_on_disconnect by explicitly focusing on the set operation, and explains the behavioral effect of arming the switch.

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 to use it (to arm or disarm the dead man's switch) and explicitly notes that the enabled parameter is required with no default. While it doesn't explicitly name alternatives, the sibling get_cancel_on_disconnect makes the distinction obvious, so the usage guidance is strong but could be more explicit about exclusions.

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/nexus-xyz/nexus-exchange-mcp'

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