Skip to main content
Glama

AegisQuant MCP

Compute Optimal Execution

compute_optimal_execution

KKT water-filling multi-pool split solver, Almgren-Chriss volatility-adjusted tranching, and MEV sandwich profitability bound with optimal slippage ceiling.

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": {
      "chain": "<chain>",
      "token_in": "<token_in>",
      "token_out": "<token_out>",
      "amount_in": "<amount_in>",
      "amount_in_usd": "<amount_in_usd>"
    },
    "name": "compute_optimal_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesTarget blockchain network
token_inYesInput token address or mint
amount_inYesInput amount in base units (wei / lamports)
token_outYesOutput token address or mint
amount_in_usdYesApproximate input trade value in USD
sender_addressNoOptional sender wallet address for live aggregator quotes
max_slippage_bpsNoUser maximum slippage tolerance in basis points

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not say whether this is a pure read/compute operation with no state change, whether 'sender_address' triggers live network calls, whether it executes anything, or what the output contains. The only behavioral hint, live aggregator quotes, appears in the schema rather than the description.

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?

It is a single sentence with no filler, but the structure is an opaque jargon pile-up that does not front-load a plain-language capability statement. The density does not earn its place because the agent learns techniques rather than purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex seven-parameter solver with no output schema, yet the description says nothing about the return value (split across pools, tranche schedule, expected slippage/MEV bound) or about when the computation is appropriate. For a tool this complex, the definition is not complete enough for an agent to invoke it confidently.

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 all seven parameters are already documented in the schema. The description contributes no additional parameter meaning, for example how max_slippage_bps interacts with the 'optimal slippage ceiling.' Baseline 3 is appropriate when the schema does the work.

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

Purpose2/5

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

The description is a dense list of techniques ('KKT water-filling multi-pool split solver', 'Almgren-Chriss volatility-adjusted tranching', 'MEV sandwich profitability bound') rather than a plain statement of what the tool does or returns. An agent can infer it computes some execution plan, but there is no specific verb-plus-resource phrasing such as 'compute an optimal multi-pool swap route and tranching schedule.' It does not distinguish itself from siblings like build_verified_swap.

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?

There is no when-to-use guidance, no preconditions, and no mention of alternatives such as build_verified_swap or audit_execution_shortfall. The agent is left to infer entirely from the name that this is for pre-trade execution optimization rather than actual swap construction or post-trade auditing.

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.