Skip to main content
Glama
Agent Trading Desk

Agent Trading Desk

evaluate_trap_shield

Verify a candidate LONG or SHORT trade before DEX/CEX entry by checking VPIN order-flow toxicity, fake L2 spoof walls, CVD divergence, and rejection wicks to block adversarial market traps.

Instructions

Run Layer 4 Adversarial AI Trap Shield verification on a candidate trade (LONG or SHORT): evaluates VPIN order flow toxicity (>= 0.35 toxic), resting L2 fake ask/bid spoof walls, CVD delta divergence, and aggressive rejection wicks before entering DEX or CEX positions. Zero-hallucination institutional trap defense.

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": {
      "symbol": "<symbol>"
    },
    "name": "evaluate_trap_shield"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNoAlias for action ("LONG" or "SHORT")
actionNoThe candidate trade direction to evaluate ("LONG" or "SHORT")
symbolYesThe asset pair symbol (e.g. "SOL/USD", "BTC/USD", "SUI/USD")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose one concrete threshold ('VPIN >= 0.35 toxic') and the general detection categories, which is real added context. But it never states whether the call is read-only, what the verdict/return looks like, whether it is expensive or rate-limited, or what happens on a failed check; 'Zero-hallucination institutional trap defense' is slogan, not disclosure.

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 verb-and-scope is front-loaded and the enumeration of checks is information-dense, which is good. But it is one run-on sentence ending in marketing filler ('Zero-hallucination institutional trap defense') that consumes space without helping an agent decide or call the tool.

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?

For a three-parameter, single-required-field verification tool with no output schema, the description covers what is checked and when to use it, which is most of what an agent needs. The remaining gap is the absence of any statement about the result shape or pass/fail semantics, which the missing output schema leaves entirely undocumented.

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%, including explicit enum documentation and even a note that 'side' is an alias for 'action', so the schema already does the heavy lifting. The description only hints at the direction parameter via 'LONG or SHORT' and adds no meaning beyond the schema (e.g., precedence when both 'side' and 'action' are supplied). Baseline 3 applies.

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?

The description names a specific verb ('Run ... verification') and resource ('Adversarial AI Trap Shield') on a candidate trade, and enumerates the four checks (VPIN toxicity, L2 spoof walls, CVD divergence, rejection wicks). It stops short of distinguishing this gate from plausible siblings like pre_trade_check or get_market_microstructure, which appear to overlap in scope.

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?

It gives a clear timing/context cue: run this 'before entering DEX or CEX positions.' That tells the agent where in the workflow the tool belongs. However, there are no explicit exclusions, no named alternative tool, and no statement of what to do when the check fails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.