Skip to main content
Glama
Bybit MCP Server

Bybit MCP Server

by trenerok

get_borrow_history

Retrieve authenticated margin trading borrow records by currency and time range, with pagination to review historical borrowing activity.

Instructions

Get borrow records for margin trading. Auth required.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_borrow_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results (default: 20)
cursorNoPagination cursor
endTimeNoEnd timestamp in ms
currencyNoCurrency filter
startTimeNoStart timestamp in ms

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses that authentication is required, which annotations would otherwise have to cover. However, it does not state the retention window of records, ordering, page-size limits, or what a returned record contains, all of which matter for a history tool with no output schema.

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?

Two short, front-loaded sentences with no filler. The auth requirement is placed where an agent will see it immediately. It is efficient, though the brevity borders on under-specification rather than being genuinely compact.

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?

There is no output schema, so the description is the only place an agent could learn what a borrow record looks like, how far back history extends, or how pagination terminates. It supplies none of this for a five-parameter history tool. The terse text leaves real gaps an agent would hit in practice.

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

Parameters3/5

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

Schema description coverage is 100%, so limit, cursor, startTime, endTime, and currency are each documented in the schema itself. The description adds no additional meaning about time-range behavior, cursor semantics, or default filtering, so it lands at the baseline rather than above it.

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?

Names a specific verb and resource: 'Get borrow records for margin trading.' The margin-trading qualifier narrows the scope well. It does not distinguish itself from near-siblings like get_borrow_quota (quota vs. actual borrow records), leaving that differentiation to be inferred from the name alone.

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?

Provides no when-to-use guidance, no exclusions, and no mention of alternatives. The only contextual hint is 'Auth required,' which is a prerequisite rather than usage guidance. An agent must guess whether this is the right tool for a given borrow-related question.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.