Skip to main content
Glama

Multi-market arbitrage loops (buy here, sell there, repeat)

find_arbitrage_chains
Read-onlyIdempotent

[Market] Multi-market arbitrage loops (buy here, sell there, repeat). The loops on rust.wiki/skins/chains: buy a skin on market X, sell it on Y, use that balance to buy something to sell back on X (up to four markets), where the after-fee rates multiply to more than 1. Each loop: markets in order, legs (the skin bought on each market and what it fetches on the next), factor, cap (the most starting money it carries at these top-of-book prices, cents - an estimate) and profit at that size (cents). Prices move: check every leg before trading. Rebuilt with every marketplace poll. Prices move: tell the user to check every leg before trading.

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": "find_arbitrage_chains"
  }
}

Input Schema

NameRequiredDescriptionDefault
hopsNoOnly loops with exactly this many legs (2-4).
modeNo`instant` = every sell leg goes into a buy order or buyback now; `all` also allows listing and waiting (slower, less certain).all
pageNo1-based page number.
sortNo`profit` at capacity, `factor` (money multiplier), `size` (capacity), or fewest `hops`.profit
startNoOnly loops through this marketplace, rotated to start there.
per_pageNoResults per page (max 200).
min_profitNoOnly loops making at least this many US DOLLARS at their capacity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this as a safe, idempotent, closed read, so the description is not carrying the safety burden. It does add genuinely useful behavior: the dataset is rebuilt with every marketplace poll (freshness), `cap` is an estimate bounded by top-of-book prices, and results are perishable, which is exactly the context an agent needs before quoting numbers to a user.

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?

The opening restates the title verbatim and the warning 'Prices move: check every leg before trading' appears twice in slightly different forms, once as 'tell the user to check every leg'. The core content is front-loaded and readable, but roughly a sentence of duplication could be cut with no loss.

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, the description correctly takes on the return-value burden by enumerating each loop field (`markets`, `legs`, `factor`, `cap`, `profit`) and their units. What is missing is the response envelope - result counts, page metadata - and any statement of what an empty result means.

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

Parameters5/5

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

Schema coverage is 100% with enums and defaults documented, so baseline 3 applies; the description pushes past that by explaining the domain meaning behind the outputs and constraints - `factor` as a money multiplier, `cap` and `profit` denominated in cents at capacity, and the four-market ceiling that bounds `hops`. It adds interpretive value even where the schema already names the fields.

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 names a specific resource (multi-market arbitrage loops) and defines it operationally: buy on market X, sell on Y, recycle the balance back into X, up to four markets, where after-fee rates multiply above 1. That definition lets an agent separate this from deal-hunting siblings like find_skin_deals or find_where_to_sell without opening a schema.

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

Usage Guidelines3/5

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

There is a clear operational caveat (check every leg before trading, prices move) and the `mode` parameter implicitly frames the instant-vs-listing tradeoff, but the text never says when to pick this tool over the sibling deal/sell-option tools. Guidance is implied rather than stated.

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