Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

setMarginMode

Switch your Bybit account margin mode to isolated, regular, or portfolio margin to align risk settings with your trading strategy.

Instructions

Switch account margin mode (portfolio margin, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
setMarginModeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already indicate readOnlyHint=false, so the mutation nature is known. However, the description adds no additional behavioral context—such as impact on existing positions, reversibility, or account requirements. Despite the lower bar due to annotations, the description fails to provide any extra transparency.

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 description is a single concise sentence that gets directly to the point with no unnecessary words. The parenthetical 'etc.' is slightly vague, but overall the length is appropriate and the meaning is not obscured.

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

Completeness2/5

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

For a tool with only one parameter and no output schema, the description is incomplete. It fails to explain the parameter values or provide usage context, and the annotations do not compensate for the missing parameter semantics. An agent would be left uncertain about which mode to select and what each mode entails.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must compensate, but it does not. It mentions 'portfolio margin' in passing but does not explain the meaning of ISOLATED_MARGIN, REGULAR_MARGIN, or PORTFOLIO_MARGIN, nor the consequences of selecting each. This is a critical gap for correct invocation.

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?

The description uses a specific verb 'Switch' and identifies the resource as 'account margin mode', clearly indicating what the tool does. While it doesn't explicitly differentiate from siblings like setHedgingMode or switchPositionMode, the name and description are sufficiently specific to understand the high-level purpose.

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?

There is no guidance on when to use this tool versus alternatives. It does not mention prerequisites, conditions, or why to choose setMarginMode over related tools such as setHedgingMode or spotMarginSwitchMode. No usage context is provided at all.

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