Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

get_instruments

Fetch active instruments for a currency and instrument type; filter options by strike range or expiry and request compact output to avoid oversized responses.

Instructions

Get active instruments for a currency and type. For options, this can return hundreds of instruments — use strike_min/strike_max and/or expiry_date to filter, and compact=true for minimal output. Without filters, the response can be very large (200KB+).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "currency": "<currency>",
      "instrument_type": "<instrument_type>"
    },
    "name": "get_instruments"
  }
}

Input Schema

NameRequiredDescriptionDefault
compactNoIf true, return only essential fields (instrument_name, strike, expiry, option_type, tick_size, minimum_amount, amount_step) instead of full instrument details. Recommended when you just need to know what's available.
expiredNoInclude expired instruments
currencyYesUnderlying currency (e.g., ETH, BTC)
strike_maxNoFor options: maximum strike price filter. Combine with strike_min to focus on a specific price range (e.g., ±30% from current spot).
strike_minNoFor options: minimum strike price filter. Reduces response size dramatically — use this to avoid huge responses.
expiry_dateNoFor options: filter to a single expiry (YYYYMMDD). Reduces response from hundreds of instruments to just one expiry.
instrument_typeYesInstrument type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden and does disclose the key behavioral risk: unfiltered option queries return hundreds of instruments and 200KB+ responses, and compact=true yields a reduced field set. It omits auth requirements, rate limits, and pagination behavior, which are the remaining gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with purpose followed by the filter strategy and the size warning. The 'hundreds of instruments' and 'large response' points are effectively made twice, a minor redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter read tool with no annotations and no output schema, the description covers the main operational hazard (response size) and the mitigation path. What an agent would still lack is the default returned field set and any permission or rate-limit constraints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so baseline would be 3. The description adds value by telling the agent how to combine params (strike range and/or expiry) and by quantifying the payoff of compact=true, context the schema fields do not provide on their own.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get active instruments') plus the two required scoping dimensions (currency, type). It does not name or distinguish itself from the sibling get_all_instruments, so an agent cannot tell from this text alone when the 'active-only' behavior is the deciding factor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear conditional guidance for options (use strike_min/strike_max and/or expiry_date, use compact=true for minimal output) and explains the consequence of omitting them. It lacks explicit direction toward alternative tools such as get_all_instruments or get_options_chain, but the when-to-use context for this tool's own parameters is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.