Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_instrument

Retrieve detailed specifications for a specific trading instrument by name, such as contract terms and market data parameters.

Instructions

Get details for a specific instrument by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instrument_nameYesInstrument name, e.g. ETH-PERP, BTC-20260328-50000-C

Implementation Reference

  • The getInstrument method in DeriveClient class, which handles the tool logic by sending a POST request to the 'public/get_instrument' endpoint.
    getInstrument(params: GetInstrumentParams): Promise<unknown> {
      return this.post('public/get_instrument', params);
    }
  • The GetInstrumentParams interface, which defines the expected input structure for the get_instrument tool.
    }
    
    export interface GetInstrumentParams {
  • src/tools.ts:53-53 (registration)
    The registration of the 'get_instrument' tool in the MCP tools definition file.
    name: 'get_instrument',

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