Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

addReduceMargin

Adjust margin on isolated positions by specifying a positive value to add margin or a negative value to reduce margin. Returns updated position details including new liquidation price.

Instructions

Add or reduce margin for a position in isolated margin mode. Use a positive value to add margin, or a negative value to reduce margin. Returns updated position details after the margin adjustment.

Agent hint: Use this to manually adjust margin on isolated margin positions. Pass positive margin to add, negative to reduce (e.g., "10" or "-10"). Max 4 decimal places. In hedge mode, specify positionIdx. Returns full updated position info including new liqPrice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
symbolYes
marginYes
positionIdxNo
Behavior4/5

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

With no annotations, the description discloses return of updated position details including liqPrice, constraints on decimal places, and hedge mode requirement. No contradictions.

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?

Four sentences plus agent hint, front-loaded with action and mode, efficient and no redundant wording.

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?

Covers all essential aspects: purpose, parameter usage, return value, and constraints. Complete for a margin adjustment tool with no output schema.

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?

Given 0% schema coverage, description adds significant meaning: sign convention for margin, decimal limit, hedge mode for positionIdx, and example values.

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 adds or reduces margin for a position in isolated margin mode. It distinguishes from the sibling 'addMargin' by explicitly including both add and reduce operations.

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?

Provides clear instructions on using positive/negative values, decimal places, and hedge mode. Does not explicitly mention when not to use or alternative tools, but agent hint gives practical context.

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/bybit-exchange/trading-mcp'

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