get_api_key_information
Retrieve detailed API key information for managing and configuring Bybit cryptocurrency trading accounts. Use this tool to access essential data for integration, security, and trading automation.
Instructions
Get API key information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/bybit-service.ts:181-183 (handler)Core implementation of getApiKeyInformation tool - makes authenticated API request to Bybit /v5/user/query-api endpoint to retrieve API key details.async getApiKeyInformation(): Promise<BybitResponse<ApiKeyInfo> | { error: string }> { return this.makeBybitRequest('/v5/user/query-api', 'GET', {}); }
- src/index.ts:926-936 (handler)MCP server tool handler (switch case) that executes the tool by calling the BybitService method and returns JSON-formatted response.case 'get_api_key_information': { const result = await this.bybitService.getApiKeyInformation(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:450-456 (registration)Registration of the MCP tool in the tools list, including name, description, and empty input schema (no parameters required).name: 'get_api_key_information', description: 'Get API key information', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:453-456 (schema)Input schema definition for the tool (empty object, no input parameters).type: 'object', properties: {}, }, },