Skip to main content
Glama

Algofinix Quant Desk — Blind Swarm, Trade Audit & Portfolio VaR

Behavioral Trading Coach & Leak Detector

audit_trading_behavior
Read-onlyIdempotent

Costs 2 credits. Audits closed trades OR raw BUY/SELL broker fills (automatically FIFO-paired) across 7 quantitative behavioral engines: Revenge Trading (re-entry <=30 min after a loss), Hold-Time Asymmetry (holding losers longer than winners), Overtrading, Symbol Obsession, Drawdown Tilt, Time-of-Day Win Windows, and Best Statistical Edge Setup. LLM EXTRACTION RULE: If the user uploads a broker CSV, PDF, or screenshot (Robinhood, IBKR, Webull, Topstep, Schwab, etc.), parse their rows into the trades array and call this tool directly—no broker account linking required.

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": {
      "trades": "<trades>"
    },
    "name": "audit_trading_behavior"
  }
}

Input Schema

NameRequiredDescriptionDefault
tradesYesClosed round-trip trades or raw BUY/SELL execution fills.
input_modeNoauto
account_equityNoOptional current portfolio equity in USD for drawdown tilt & % sizing alerts.
prefer_deterministicNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description adds real value beyond them: a 2-credit cost, automatic FIFO pairing of raw fills, and the exact seven engines used. It stops short of describing what the audit returns (report shape, scoring scale), which matters since no output schema exists.

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?

Front-loads cost and then scope, and the labeled 'LLM EXTRACTION RULE' block makes the parsing directive skimmable. The engine enumeration is long but functional; minor density cost without wasted sentences.

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

Completeness3/5

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

The input side is covered well, but with no output schema the description should say what an audit yields (per-engine findings, severity, trade-level flags). Unexplained params like `prefer_deterministic` also leave holes for a tool with this much surface area.

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?

At 50% schema coverage the description partially compensates by explaining that `trades` accepts either closed round-trips or raw BUY/SELL legs and that raw legs are FIFO-paired. But `input_mode`, `account_equity`, and `prefer_deterministic` are never mentioned, and `prefer_deterministic` has no schema description at all, leaving that flag opaque.

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?

States a specific verb (audits) and two accepted resource forms (closed trades or raw BUY/SELL broker fills), then enumerates the seven behavioral engines by name. An agent knows exactly what analysis this produces without opening the schema.

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 a concrete activation condition: if the user uploads a broker CSV/PDF/screenshot from Robinhood, IBKR, Webull, Topstep, Schwab, etc., parse rows into `trades` and call directly with no account linking. It does not contrast against siblings like stress_test_portfolio_hedge or run_blind_swarm, and offers no explicit when-not guidance.

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.

Resources