Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

queryReferralCode

Retrieve active referral codes and corresponding registration links. Sub-accounts return the parent's codes, with links localized to your site and language.

Instructions

Query the referral codes owned by the current user and their corresponding referral registration links.

  • Sub-accounts will return the parent account's referral codes.

  • Only active (non-expired) referral codes are returned.

  • The referral link is generated based on the user's site and language preference.

:::tip Requires authentication via API Key (HMAC / RSA). :::

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It discloses the active-code filter, sub-account behavior, link generation based on user preferences, and the authentication requirement via API Key (HMAC/RSA), which goes beyond a minimal description.

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 compact, well-structured with bullets, and every sentence adds meaningful behavioral or usage information. The authentication tip is clearly separated and not redundant.

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

Completeness4/5

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

For a parameterless query tool with no output schema, the description covers the main points: scope, filtering, sub-account behavior, and authentication. It does not describe the exact return structure, but that is not critical for a simple parameterless call.

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?

The tool has zero parameters and the schema already covers this fully, so the baseline is 4. The description adds no parameter-specific details, but none are needed here.

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 clearly states the tool queries referral codes owned by the current user and their corresponding referral registration links. It identifies the specific resource and action, but it does not explicitly differentiate itself from the similarly named sibling tool 'queryReferrals'.

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 gives useful context: it is for the current user's referral codes, sub-accounts get the parent account's codes, and only active codes are returned. However, it does not explicitly say when to prefer this tool over alternatives such as queryReferrals, nor does it list exclusions.

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