Skip to main content
Glama

contract_search

Search contracts or instruments by symbol, name, or partial query to get matching candidates with conId, symbol, secType, exchange. Filter by security type, currency, or exchange to narrow results.

Instructions

Search for contracts/instruments by query string. Returns matching candidates with conId, symbol, secType, exchange.

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": {
      "query": "<query>"
    },
    "name": "contract_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query (symbol, name, or partial)
secTypeNoSecurity type filter (STK, OPT, FUT, etc.)
currencyNoCurrency filter
exchangeNoExchange filter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. Calling it "Search" implies a read-only, non-destructive lookup, but the description says nothing about result caps, whether partial matches are ranked, rate limits, or how many candidates are returned — meaningful gaps for a broker-side lookup tool.

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

Conciseness5/5

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

Two tight sentences with zero waste; the purpose is front-loaded and the return fields are summarized in the second sentence. Nothing is padded or repeated.

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 simple four-parameter read lookup with full schema coverage, the description is nearly sufficient; it names the inputs and the shape of the output. It falls short only on lookup behavior (result limits, filtering semantics) that an agent might need before relying on it.

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

Parameters3/5

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

Schema coverage is 100%, with each of the four parameters documented and an enum for secType, so the schema already does the heavy lifting. The description adds only that the query accepts "symbol, name, or partial" implicitly via the schema, and clarifies nothing about how filters interact or whether they are conjunctive.

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 ("Search for contracts/instruments by query string") and even summarizes the returned fields (conId, symbol, secType, exchange). It is clear on its own but never distinguishes itself from siblings like contract_details or contract_qualify, which an agent must choose between when resolving an instrument.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use, prerequisites, or alternatives; the only hint is that it returns "candidates," which implies a resolution step before contract_details or contract_qualify. An agent gets no statement of when this tool is the right entry point versus those siblings.

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

Deploy Server

Other Tools