Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_all_instruments

Retrieve available financial instruments like options, perpetuals, or ERC20 tokens from Derive.xyz market data, with filters for type, currency, and expiration status.

Instructions

Get all available instruments (options, perps, or ERC20 tokens)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expiredYesIf true, include expired instruments
instrument_typeYesInstrument type
currencyNoFilter by currency, e.g. ETH, BTC
pageNoPage number (default 1)
page_sizeNoResults per page (default 100, max 1000)

Implementation Reference

  • The handler function that executes the 'get_all_instruments' tool by making a POST request to the API.
    getAllInstruments(params: GetAllInstrumentsParams): Promise<unknown> {
      return this.post('public/get_all_instruments', params);
    }
  • src/tools.ts:39-51 (registration)
    Registration of the 'get_all_instruments' tool with its schema definition in src/tools.ts.
      name: 'get_all_instruments',
      description: 'Get all available instruments (options, perps, or ERC20 tokens)',
      inputSchema: {
        type: 'object',
        properties: {
          expired: { type: 'boolean', description: 'If true, include expired instruments' },
          instrument_type: { type: 'string', enum: INSTRUMENT_TYPE_ENUM, description: 'Instrument type' },
          currency: { type: 'string', description: 'Filter by currency, e.g. ETH, BTC' },
          ...paginationParams,
        },
        required: ['expired', 'instrument_type'],
      },
    },

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/aadarshvelu/derive-mcp'

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