Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

spotMarginSwitchMode

Enable or disable spot cross margin trading mode on Bybit to control margin usage for spot positions. Set the mode directly to manage risk and align with your trading strategy.

Instructions

Enable or disable spot cross margin trading mode, rate limit 5/user/path/s

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spotMarginModeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

B3.1/5.0
Behavior3/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, so the description need not restate that this mutates state. The description adds the useful rate limit detail '5/user/path/s'. However, it does not disclose the broader behavioral impact, such as whether disabling the mode affects existing margined positions or requires specific account states.

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 a single concise sentence with no filler. It front-loads the core action and includes the rate limit as a compact addition. Every word earns its place.

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

Completeness3/5

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

For a simple one-parameter mutation tool, the description covers the primary action and rate limit. However, it omits the enum value mapping and gives no context about return values, side effects, or prerequisites. These gaps reduce completeness, though the tool's simplicity mitigates the severity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is responsible for explaining the parameter. It says 'enable or disable' but does not map the enum values '0' and '1' to enable or disable. The parameter name spotMarginMode and enum values are suggestive but not explicitly clarified, leaving room for misinterpretation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description states a specific verb and resource: 'Enable or disable spot cross margin trading mode.' It clearly identifies the tool's function. It does not explicitly differentiate from siblings like setMarginMode or switchPositionMode, but the phrase 'spot cross margin trading mode' distinguishes it from general margin mode or position mode.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as setMarginMode, setAutoRepayMode, or spotMarginSetLeverage. There are no explicit conditions, prerequisites, or exclusions. The usage context must be inferred from the name and the sibling list.

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