Skip to main content
Glama

contract_rules

Retrieve trading rules for a contract by ID, including minimum tick, size increment, valid exchanges, and supported order types to validate orders before submission.

Instructions

Get trading rules for a contract: min tick, size increment, valid exchanges, order types.

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": {
      "conId": "<conId>"
    },
    "name": "contract_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
conIdYesContract ID
exchangeNoExchange

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden alone. It usefully discloses the return payload (tick size, increments, exchanges, order types), which substitutes for the missing output schema, but says nothing about permissions, whether rules differ by exchange, caching, or behavior on an invalid conId.

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?

A single sentence, front-loaded with the verb and resource, followed by the enumerated payload. No filler or 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 two-parameter read-only lookup with no output schema, enumerating the returned fields covers what an agent most needs. The remaining gap is scoping of the exchange parameter and error behavior.

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%, so both conId and exchange are already documented. The mention of "valid exchanges" faintly implies rules can be exchange-scoped, but the description adds no real meaning about whether the exchange parameter filters or narrows the returned rules.

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 trading rules for a contract") and enumerates the exact rule types returned: min tick, size increment, valid exchanges, order types. This is clearly distinct from contract_details or contract_qualify by content, though no sibling is named explicitly.

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?

No statement of when to call this versus contract_details, contract_qualify, or contract_search, and no prerequisites given. The only cue is implicit: listing order types and valid exchanges hints at pre-trade validation, but the agent must infer that.

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