Skip to main content
Glama

get_arbitrage

Premium between Hyperliquid perp (mid) and KRX price, its usual level (5-day regular-session median) and the net left after costs on the gap beyond that level. net.netPct subtracts fees, tax, FX, funding, order-book slippage for notionalKrw (net.costs.slippage, net.fills: volume-weighted fill prices per leg) and the price move during the gap between the two orders (net.costs.latency = 1-minute volatility × √(lagSec/60)). net.depthLimited / net.maxNotionalKrw: the visible book can fill less than notionalKrw. oracle.active: oracle-anomaly window (thin print moved the oracle); numbers stay on the real book, oracle.warning flags liquidation risk. All assets if asset is omitted

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_arbitrage"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoSMSN=Samsung Electronics, SKHX=SK hynix, HYUNDAI=Hyundai Motor, SKHY=SK hynix ADR (vs 0.1 common share)
lagSecNoSeconds between the two orders (default 3)
notionalKrwNoTrade size per leg in KRW (default 10000000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lagSec
      Added value: +{
      +  "description": "Seconds between the two orders (default 3)",
      +  "type": "number"
      +}
    • addedInput schema / properties / notionalKrw
      Added value: +{
      +  "description": "Trade size per leg in KRW (default 10000000)",
      +  "type": "number"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does substantial work: it enumerates exactly which cost components net.netPct deducts (fees, tax, FX, funding, slippage, latency), discloses the latency model (1-minute volatility x sqrt(lagSec/60)), and warns about depth limiting (net.depthLimited / net.maxNotionalKrw) and oracle-anomaly windows with liquidation risk. That is genuinely beyond-the-basics behavioral disclosure. It does not explicitly state side-effect-freeness, but the read-only nature is unambiguous.

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

Conciseness3/5

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

There is essentially no filler - every clause carries information - but it is delivered as one dense run-on paragraph mixing purpose, formulas, and field semantics, with no front-loaded verb and no formatting to separate the three concerns. An agent must parse field paths like net.costs.slippage inline to find the point. Compression is high; readability is not.

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 no output schema and no annotations, the description must cover return semantics, and it does: it documents the net.*, costs.*, fills, and oracle.* fields plus the default-all-assets behavior. For a 3-parameter read tool this is close to sufficient. What is missing is any statement of what bounds the result (one row per asset, snapshot vs. time series), which matters because a sibling is explicitly a history tool.

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 100%, so the baseline is 3, but the description earns more: it explains that notionalKrw drives both the slippage calculation and the depth-limit check, that lagSec feeds the sqrt(lagSec/60) latency term, and that omitting asset returns all assets. These are real semantics the schema does not convey. A 5 is withheld only because the asset enum's per-symbol mapping is entirely schema-side and the 'notionalKrw' unit interplay with maxNotionalKrw could be tighter.

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?

The description names the specific computation: the premium between the Hyperliquid perp mid and the KRX price, its 5-day regular-session median baseline, and the net remaining after costs beyond that baseline. That is concrete and distinguishable from the sibling names (get_convergence_history, preview_pair_order, predict_open). It falls short of a 5 because it opens with a noun phrase rather than a verb and never explicitly contrasts itself with preview_pair_order, the tool an agent might confuse it with.

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 only usage instruction is 'All assets if asset is omitted.' There is no guidance on when to call this versus get_convergence_history (historical view) or preview_pair_order (execution preview), and no prerequisites or exclusions are stated. Usage must be inferred from the sibling names alone.

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.