Skip to main content
Glama

AegisQuant MCP

Audit Execution Shortfall

audit_execution_shortfall

Audits an executed transaction via public RPC, decomposes implementation shortfall (delay, impact, MEV leakage, fee drag), and updates persistent EWMA telemetry.

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>",
      "tx_hash": "<tx_hash>",
      "pool_address": "<pool_address>",
      "quoted_price": "<quoted_price>",
      "expected_net_price": "<expected_net_price>",
      "realized_price": "<realized_price>"
    },
    "name": "audit_execution_shortfall"
  }
}

Input Schema

NameRequiredDescriptionDefault
dexNoDEX or aggregator nameaggregator
chainYesBlockchain network where tx was executed
tx_hashYesExecuted transaction hash or Solana signature
fee_drag_bpsNoPool/aggregator fee in bps
pool_addressYesPrimary liquidity pool address or route ID
quoted_priceYesBenchmark quoted output/input price
delay_cost_bpsNoBlock delay price drift in bps
realized_priceYesActual realized fill price (out / in)
expected_net_priceYesExpected net price after fees/impact
modeled_impact_bpsNoModeled price impact in bps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose two important traits: it reaches out over public RPC (external dependency) and it mutates persistent EWMA telemetry (a durable side effect beyond the read-only audit). It says nothing about failure modes, rate limits, permission requirements, or whether the audit result is stored or returned, leaving significant gaps for a 10-parameter tool.

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?

A single dense sentence that front-loads the action, states the mechanism (public RPC), then the analysis output and the side effect. No filler sentences and no repetition of the title.

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?

The tool exists to produce an audit, yet there is no output schema and the description never says what the audit returns — shortfall in bps, per-component attribution, totals, pass/fail thresholds. For a 10-parameter mutation-plus-analysis tool with zero annotations, that is a major omission the agent cannot recover from structured fields.

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 every parameter is already documented, and the description does not add syntax, units, or defaulting guidance beyond it. The decomposition terms loosely map to delay_cost_bps, modeled_impact_bps, and fee_drag_bps, but MEV leakage is computed rather than supplied, which is not clarified.

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?

Names a specific verb and resource: 'Audits an executed transaction via public RPC', then enumerates the decomposition dimensions (delay, impact, MEV leakage, fee drag) and the telemetry side effect. It is clearly a post-trade analysis tool, implicitly contrasting with the pre-trade siblings, but never names or explicitly distinguishes itself from compute_optimal_execution or 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 Guidelines3/5

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

Usage is only implied by the word 'executed' — the agent can infer this runs after a fill rather than before one. There are no explicit when-to-use/when-not conditions, no statement that this is not a pre-trade simulator, and no guidance on when to prefer an alternative sibling.

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.