Skip to main content
Glama

solidity-smart-contract-escrow-auditor

audit_quant_backtest_escrow

Idempotent

[Private] Check a trading strategy backtest in RAM for look-ahead bias, fake PnL math, low profit factor or drawdown (~70-token receipt). Call with {} for preview. Example: {"minTrades":20,"minProfitFactor":1.25}.

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

Input Schema

NameRequiredDescriptionDefault
tradesNoTrade objects.
minTradesNoMin trades.
maxDrawdownPctNoMax drawdown %.
minProfitFactorNoMin profit factor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / maxDrawdownPct / description
      Previous value: -"Maximum allowed peak-to-trough equity drawdown percentage."New value: +"Max drawdown %."
    • changedInput schema / properties / minProfitFactor / description
      Previous value: -"Minimum gross profit to gross loss ratio."New value: +"Min profit factor."
    • changedInput schema / properties / minTrades / description
      Previous value: -"Minimum required trade count for statistical validity."New value: +"Min trades."
    • addedInput schema / properties / minTrades / examples
      Added value: +[
      +  20
      +]
    • changedInput schema / properties / trades / description
      Previous value: -"Array of trade objects with entry/exit timestamps, prices, and PnL."New value: +"Trade objects."
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "trades"
      -]New value: +[]
  3. Changed5 schema fields changed
    • addedInput schema / properties / maxDrawdownPct / description
      Added value: +"Maximum allowed peak-to-trough equity drawdown percentage."
    • addedInput schema / properties / minProfitFactor / description
      Added value: +"Minimum gross profit to gross loss ratio."
    • addedInput schema / properties / minTrades / description
      Added value: +"Minimum required trade count for statistical validity."
    • changedInput schema / properties / trades / description
      Previous value: -"Array of trades with entryTime/entryTimestampMs, exitTime/exitTimestampMs, side, entryPrice, exitPrice, size, pnlUsd"New value: +"Array of trade objects with entry/exit timestamps, prices, and PnL."
    • addedInput schema / properties / trades / items
      Added value: +{
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / trades / description
      Previous value: -"Lista de trades con entryTime, exitTime, side, entryPrice, exitPrice, size, pnlUsd"New value: +"Array of trades with entryTime/entryTimestampMs, exitTime/exitTimestampMs, side, entryPrice, exitPrice, size, pnlUsd"
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, which the description does not contradict. Beyond them it adds genuinely useful traits: the analysis runs 'in RAM' (implying no persistence of the uploaded trades) and consumes roughly a 70-token receipt, which quantifies cost. It stops short of saying what the receipt's verdict format looks like or whether the call is paid/escrowed despite the tool name.

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?

Three short sentences, front-loaded with what it checks, followed by the cheapest way to invoke it. No filler, and the example is embedded rather than expanded into prose.

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 does the work of signaling the return shape (a ~70-token receipt) and that all four parameters are optional via the '{}' preview. Slight gap: an agent still cannot predict whether the receipt is a pass/fail verdict or a details listing, and the '[Private]' marker's implications are left unexplained.

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; the description earns more by showing the preview-vs-full call pattern ('{}' returns a preview) and an example using minTrades and minProfitFactor with realistic values (20, 1.25). That conveys the intended threshold semantics that the terse schema descriptions ('Min trades.') do not.

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?

States a specific verb and resource — check a trading strategy backtest — and enumerates the failure modes it screens for (look-ahead bias, fake PnL math, low profit factor, drawdown). That is far more specific than the sibling audit_* names alone, but it never explicitly contrasts itself with those siblings, so it lands just below a 5.

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

Usage Guidelines4/5

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

Gives concrete invocation guidance: 'Call with {} for preview' plus a worked example with threshold values. It does not state when to prefer this over a sibling audit tool or when not to use it, so it is clear context without exclusions.

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.