Skip to main content
Glama

VARRD — Statistically Validated Trading Edges + AI Research Engine

varrd_ai

Talk to VARRD AI. PRICE: use is charged for what it cost (the model's usage, no surcharge); nothing has a set price. Call check_balance for the balance. Describe any trading idea in plain language and the system handles everything — loading decades of market data, charting your pattern, running statistical tests, backtesting with stops, and generating exact trade setups.

MULTI-TURN: First call creates a session. Keep calling with the same session_id, following context.next_actions each time.

  1. Your idea -> VARRD charts pattern

  2. 'test it' -> statistical test (event study or backtest)

  3. 'show me the trade setup' -> exact entry/stop/target prices

HYPOTHESIS INTEGRITY (critical): VARRD tests ONE hypothesis at a time — one formula, one setup. Never combine multiple setups into one formula or ask to 'test all' — each idea must be tested as a separate hypothesis for the statistics to be valid. Say 'start a new hypothesis' between ideas to reset cleanly.

  • ALLOWED: Test the SAME setup across multiple markets ('test this on SPY, QQQ, and IWM') — same formula, different data.

  • NOT ALLOWED: Test multiple DIFFERENT formulas/setups at once — each is a separate hypothesis requiring its own chart-test-result cycle. If ELROND council returns 4 setups, test each one separately: chart setup 1 -> test -> results -> 'start new hypothesis' -> chart setup 2 -> etc.

KEY CAPABILITIES you can ask for:

  • 'Use the ELROND council on [market]' -> 8 expert investigators

  • 'Optimize the stop loss and take profit' -> SL/TP grid search

  • 'Test this on SPY, QQQ, and IWM' -> multi-market testing

  • 'Simulate trading this with 1.5 ATR stop' -> backtest with stops

EDGE VERDICTS in context.edge_verdict after testing:

  • STRONG EDGE: Significant vs zero AND vs market baseline

  • MARGINAL: Significant vs zero only (beats nothing, but real signal)

  • PINNED: Significant vs market only (flat returns but different from market)

  • NO EDGE: Neither significant test passed

TERMINAL STATES: Stop when context.has_edge is true (edge found) or false (no edge — valid result). Always read context.next_actions.

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": {
      "message": "<message>"
    },
    "name": "varrd_ai"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesYour trading idea, research question, or instruction (e.g. 'test it', 'show trade setup').
session_idNoSession ID from a previous call. Omit to start a new research session.

Output Schema

NameRequiredDescriptionDefault
textNoAI response text
contextNoWorkflow state, edge verdict, next actions
widgetsNoChart, event study, backtest, or trade setup widgets
session_idNoSession ID for multi-turn conversation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedOutput schema / properties / context / description
      Added value: +"Workflow state, edge verdict, next actions"
    • removedOutput schema / properties / context / properties
      Removed value: -{
      -  "edge_verdict": {
      -    "description": "STRONG_EDGE, MARGINAL, PINNED, or NO_EDGE",
      -    "type": "string"
      -  },
      -  "has_edge": {
      -    "description": "true=edge found, false=no edge, null=still researching",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "next_actions": {
      -    "description": "Follow these to continue",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "workflow_state": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / errors
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / properties / session_id / description
      Previous value: -"Session ID — pass back to continue the conversation"New value: +"Session ID for multi-turn conversation"
    • changedOutput schema / properties / text / description
      Previous value: -"AI response text — read this for the research result"New value: +"AI response text"
    • removedOutput schema / properties / token_usage
      Removed value: -{
      -  "properties": {
      -    "input_tokens": {
      -      "type": "integer"
      -    },
      -    "output_tokens": {
      -      "type": "integer"
      -    }
      -  },
      -  "type": "object"
      -}
    • changedOutput schema / properties / widgets / description
      Previous value: -"Visual widgets — charts, statistical test results, trade setups, optimization results"New value: +"Chart, event study, backtest, or trade setup widgets"
    • removedOutput schema / properties / widgets / items
      Removed value: -{
      -  "properties": {
      -    "data": {
      -      "type": "object"
      -    },
      -    "type": {
      -      "description": "chart=candlestick with pattern markers, event_study=forward return analysis, backtest=SL/TP simulation, trade_setup=entry/stop/target card, research=ELROND expert council results, stop_optimizer=SL/TP grid search, parallel/batch_event_study=multi-market results",
      -      "enum": [
      -        "chart",
      -        "event_study",
      -        "backtest",
      -        "trade_setup",
      -        "research",
      -        "stop_optimizer",
      -        "sltp_config",
      -        "parallel_event_study",
      -        "batch_event_study"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "session_id",
      -  "text",
      -  "context"
      -]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "context": {
      +      "properties": {
      +        "edge_verdict": {
      +          "description": "STRONG_EDGE, MARGINAL, PINNED, or NO_EDGE",
      +          "type": "string"
      +        },
      +        "has_edge": {
      +          "description": "true=edge found, false=no edge, null=still researching",
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "next_actions": {
      +          "description": "Follow these to continue",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "workflow_state": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "errors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "session_id": {
      +      "description": "Session ID — pass back to continue the conversation",
      +      "type": "string"
      +    },
      +    "text": {
      +      "description": "AI response text — read this for the research result",
      +      "type": "string"
      +    },
      +    "token_usage": {
      +      "properties": {
      +        "input_tokens": {
      +          "type": "integer"
      +        },
      +        "output_tokens": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "widgets": {
      +      "description": "Visual widgets — charts, statistical test results, trade setups, optimization results",
      +      "items": {
      +        "properties": {
      +          "data": {
      +            "type": "object"
      +          },
      +          "type": {
      +            "description": "chart=candlestick with pattern markers, event_study=forward return analysis, backtest=SL/TP simulation, trade_setup=entry/stop/target card, research=ELROND expert council results, stop_optimizer=SL/TP grid search, parallel/batch_event_study=multi-market results",
      +            "enum": [
      +              "chart",
      +              "event_study",
      +              "backtest",
      +              "trade_setup",
      +              "research",
      +              "stop_optimizer",
      +              "sltp_config",
      +              "parallel_event_study",
      +              "batch_event_study"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "session_id",
      +    "text",
      +    "context"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=true, and idempotentHint=false; the description goes well beyond them by disclosing the usage-based billing model with no surcharge and pointing to check_balance for pricing. It also discloses the session lifecycle (state is created and persists across calls, hence not read-only), the meaning of context.edge_verdict values, and the terminal states. No contradiction with the supplied annotations.

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?

Well organized into labeled blocks (pricing, multi-turn flow, hypothesis integrity, capabilities, verdicts, terminal states) with the essential instructions front-loaded. It is long relative to a two-parameter tool, and there is minor redundancy, such as the instruction to read context.next_actions appearing twice and the hypothesis rule restated in both prose and example. Every block still carries operational value, so the length is largely earned.

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

Completeness5/5

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

For a stateful, open-world, non-deterministic research agent, the description covers everything needed to drive it correctly: pricing awareness, session continuity, one-hypothesis-at-a-time constraint, verdict interpretation, and termination criteria. Because an output schema exists, it does not need to restate return shapes, and its references to context.next_actions, context.has_edge, and context.edge_verdict sit cleanly alongside that schema. Nothing an agent would need to call this safely and correctly is missing.

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, but the description adds real semantics beyond the schema by explaining that omitting session_id starts a new research session and that subsequent calls must reuse the same ID to continue the same hypothesis thread. The message parameter's role is only indirectly covered, though the staged examples ('test it', 'show me the trade setup') imply the expected phrasing.

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 concrete verb and resource ('Talk to VARRD AI') and then enumerates the actual capabilities: loading market data, charting patterns, statistical tests, backtesting with stops, and generating trade setups. That is far more specific than a tautology. It stops short of a 5 because it never distinguishes itself from close-sounding siblings such as autonomous_varrd_ai or prediction_ai, leaving the agent to infer which conversational entry point to pick.

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

Usage Guidelines5/5

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

Provides an explicit multi-turn protocol (first call creates a session, keep calling with the same session_id, follow context.next_actions) plus concrete example prompts that map to each research stage. It also states exclusions via HYPOTHESIS INTEGRITY, distinguishing allowed same-setup-across-markets testing from disallowed multi-formula testing, and defines stop conditions (context.has_edge true or false). This is about as close to explicit when/when-not guidance as a conversational tool can get.

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.