get_api_key_information
Retrieve API key details for Bybit exchange to manage trading account access and permissions.
Instructions
Get API key information
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_api_key_information"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/bybit-service.ts:181-182 (handler)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: {}, }, }, - src/index.ts:926-936 (handler)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), }, ], }; } - src/types.ts:182-216 (schema)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;