Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getSpotMarginTradeRepaymentAvailableAmount

Read-only

Check how much of a borrowed cryptocurrency you can repay in spot margin trading. Returns the minimum of your available spot coin balance and outstanding borrow amount for unified accounts.

Instructions

Retrieve the available amount that can be repaid for a specific cryptocurrency in spot margin trading.

  • Unified account only

  • Repayment amount = min(spot coin available balance, coin borrow amount)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

A3.6/5.0
Behavior3/5

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

With readOnlyHint=true, the safety profile is already covered by annotations. The description adds useful behavioral context: the repayment amount is min(spot coin available balance, coin borrow amount) and is limited to unified accounts. No contradiction with annotations exists.

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 extremely concise and front-loaded with the main action, followed by two scoped bullet points. Every sentence carries meaningful information with no redundancy.

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 read-only tool, the description covers the core calculation and the unified-account restriction. However, it leaves the currency parameter format unspecified and has no output schema, so an agent may still be uncertain about exact input formatting and response interpretation.

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 must compensate for the undocumented 'currency' parameter. It only says 'a specific cryptocurrency,' which adds minimal meaning beyond the parameter name itself. It does not clarify expected format, valid values, or examples.

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 states a specific verb ('Retrieve'), a clear resource ('available amount that can be repaid'), and a specific context ('in spot margin trading'). It is easy to distinguish this from sibling tools like getSpotMarginTradeMaxBorrowable, which concerns borrowing rather than repayment.

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

Usage Guidelines3/5

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

The description provides important usage context such as 'Unified account only' and the repayment formula, but it does not explicitly mention when to prefer this tool over related siblings or when not to use it. The intended use is implied rather than directly contrasted with alternatives.

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