Skip to main content
Glama

get_instruments_info

Retrieve detailed trading instrument specifications from Bybit, including category, symbol, status, and base coin data for informed cryptocurrency trading decisions.

Instructions

Get exchange information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYesCategory (spot, linear, inverse, etc.)
symbolYesSymbol (e.g., BTCUSDT)
statusNoStatus
baseCoinNoBase coin

Implementation Reference

  • Core handler function that executes the tool logic by calling Bybit's instruments-info API endpoint.
    async getInstrumentsInfo( category: string, symbol: string, status?: string, baseCoin?: string ): Promise<BybitResponse<{ list: InstrumentInfo[] }> | { error: string }> { const params: any = { category, symbol }; if (status) params.status = status; if (baseCoin) params.baseCoin = baseCoin; return this.makeBybitRequest('/v5/market/instruments-info', 'GET', params); }
  • src/index.ts:457-482 (registration)
    Tool registration in the MCP server's ListTools handler, including name, description, and input schema.
    { name: 'get_instruments_info', description: 'Get exchange information', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Category (spot, linear, inverse, etc.)', }, symbol: { type: 'string', description: 'Symbol (e.g., BTCUSDT)', }, status: { type: 'string', description: 'Status', }, baseCoin: { type: 'string', description: 'Base coin', }, }, required: ['category', 'symbol'], }, },
  • MCP server dispatch handler that receives tool call and delegates to BybitService.getInstrumentsInfo.
    case 'get_instruments_info': { const result = await this.bybitService.getInstrumentsInfo( typedArgs.category, typedArgs.symbol, typedArgs.status, typedArgs.baseCoin ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Type definition for InstrumentInfo, used in the return type of getInstrumentsInfo, defining the output structure.
    export interface InstrumentInfo { symbol: string; contractType: string; status: string; baseCoin: string; quoteCoin: string; launchTime: string; deliveryTime: string; deliveryFeeRate: string; priceScale: string; leverageFilter: { minLeverage: string; maxLeverage: string; leverageStep: string; }; priceFilter: { minPrice: string; maxPrice: string; tickSize: string; }; lotSizeFilter: { maxOrderQty: string; maxMktOrderQty: string; minOrderQty: string; qtyStep: string; postOnlyMaxOrderQty: string; }; unifiedMarginTrade: boolean; fundingInterval: number; settleCoin: string; copyTrading: string; upperFundingRate: string; lowerFundingRate: 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