Skip to main content
Glama

get_api_key_information

Retrieve API key details for Bybit exchange to manage trading account access and permissions.

Instructions

Get API key information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that executes the tool logic by calling the Bybit API endpoint '/v5/user/query-api' to retrieve API key information.
    async getApiKeyInformation(): Promise<BybitResponse<ApiKeyInfo> | { error: string }> { return this.makeBybitRequest('/v5/user/query-api', 'GET', {});
  • src/index.ts:449-456 (registration)
    Tool registration in the MCP server's tool list, defining the name, description, and empty input schema.
    { name: 'get_api_key_information', description: 'Get API key information', inputSchema: { type: 'object', properties: {}, }, },
  • Dispatch handler in the CallToolRequestSchema that invokes the BybitService method and formats the response.
    case 'get_api_key_information': { const result = await this.bybitService.getApiKeyInformation(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • TypeScript interface defining the structure of the API key information response from Bybit.
    export interface ApiKeyInfo { id: string; note: string; apiKey: string; readOnly: number; secret: string; permissions: { ContractTrade: string[]; Spot: string[]; Wallet: string[]; Options: string[]; Derivatives: string[]; CopyTrading: string[]; BlockTrade: string[]; Exchange: string[]; NFT: string[]; Affiliate: string[]; }; ips: string[]; type: number; deadlineDay: number; expiredAt: string; createdAt: string; unified: number; uta: number; userID: number; inviterID: number; vipLevel: string; mktMakerLevel: string; affiliateID: number; rsaPublicKey: string; isMaster: boolean; parentUid: string; kycLevel: string; kycRegion: string;

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/kondisettyravi/mcp-bybit-node'

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