Skip to main content
Glama

Get static orderbook trading rules for many markets in one call

kellian_batch_get_trading_rules
Read-onlyIdempotent

Get static per-market orderbook trading rules (price grid, size floors, fees, TIF, STP) for up to 200 markets in one call. Use this instead of polling kellian_get_market per market to renew rules — it does only the rules work, not volume, reputation, resolution surfaces, or prices.

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": {
      "chainId": "<chainId>",
      "marketAddresses": "<marketAddresses>"
    },
    "name": "kellian_batch_get_trading_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainIdYesCompiled protocol release chain ID (Base 8453).
marketAddressesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds the meaningful behavioral fact that these rules are static and can be cached rather than polled ('to renew rules'). It stops short of batch failure semantics — what happens if one address in the array is invalid or unknown — which would matter for a 200-item call.

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 sentences, front-loaded with purpose and followed by the routing/exclusion clause. Every clause carries information: scope, content, cap, alternative, and exclusions.

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?

With an output schema present, return-value detail is correctly omitted, and the description covers scope, cap, and exclusions for a simple two-parameter batch read. The only real gap is cross-chain/mixed-address behavior and partial-failure handling.

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 50%: both top-level params are documented, but the array itself carries only minItems/maxItems constraints. The description reinforces the 200-market cap, yet it never clarifies that all marketAddresses must belong to the same chainId, which is the main semantic risk in a batch call.

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

Purpose5/5

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

The description gives a specific verb and resource — 'Get static per-market orderbook trading rules' — and enumerates what those rules include (price grid, size floors, fees, TIF, STP) plus the batch scope ('up to 200 markets in one call'). That is enough to distinguish it from single-market readers like kellian_get_market without opening the schema.

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

Usage Guidelines5/5

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

It names the alternative it replaces ('instead of polling kellian_get_market per market') and states the condition that selects it. It also lists what the tool explicitly does not return (volume, reputation, resolution surfaces, prices), which routes agents to the correct sibling for those surfaces.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources