Skip to main content
Glama

qmax

Check an asset for QX/QSwap arbitrage

qmax_check_arbitrage
Read-onlyIdempotent

Searches, live and at full depth, for a profitable buy-on-one-market, sell-on-the-other loop after every venue fee, and returns the most profitable size or null. It is two separate transactions, so the second leg can fill worse than shown; this is a snapshot, not a guarantee. Only assets on both markets can have one. A found result may be billed to the caller's QMax key (50 QU).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesAsset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one.
max_cost_quNoMost QU to put in (a budget); the search returns the best loop that fits
min_profit_quNoOnly an opportunity with at least this profit (QU)
min_profit_pctNoOnly one with at least this profit as a percentage of the QU put in

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses that the loop is two separate transactions so the second leg can fill worse, that the result is a snapshot and not a guarantee, and that a found result may be billed 50 QU to the caller's key. These are exactly the execution-risk and cost facts an agent needs and that structured fields cannot carry.

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

Conciseness4/5

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

Three tight sentences, front-loaded with the core action and return value, then the caveats and the billing note. Each sentence carries distinct information, with only mild compression in the parenthetical billing clause.

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 still conveys the shape of the result (most profitable size or null) and the key limitations and cost. It stops short of describing what a successful result object contains, but for a single-value search return that is a minor gap.

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 description coverage is 100%, so each of the four parameters is already documented in the schema (including the asset lookup pointer to qmax_list_assets). The description adds no format, unit, or interaction guidance beyond that, so the baseline 3 applies.

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?

Precise verb and resource: searches live and at full depth for a buy-one-market/sell-the-other loop net of every venue fee and returns the most profitable size or null. This is clearly distinct from sibling tools like qmax_swap_quote and qmax_get_quote, which only price a single venue.

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?

It states a real precondition - only assets listed on both markets can produce a result - which implies when the tool applies, but it never names an alternative or says when not to call it (e.g., when you only need one venue's price). Usage is implied rather than spelled out.

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.