Skip to main content
Glama
mcp-server-worldquantbrain

mcp-server-worldquantbrain

Simulate several alphas

simulate_alphas_batch

Backtest up to 30 alpha expressions in one batch, split by region with a shared delay, skip ledger duplicates, and return unsent items for resubmission.

Instructions

Backtest up to 30 expressions, sent to BRAIN in groups of at most 10.

All expressions must share one delay; different regions are sent as separate groups.
Multi-simulation needs a Consultant account. Expressions already in the ledger are returned
without spending quota. not_started lists anything that could not be sent; resubmit those later.

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": {
      "alphas": "<alphas>"
    },
    "name": "simulate_alphas_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoTrue blocks until done or timeout; False returns the id at once.
forceNoRun again even if the ledger has this exact alpha.
alphasYes
timeout_secondsNoSeconds to block. Empty uses WQB_SIMULATION_TIMEOUT.

Output Schema

NameRequiredDescriptionDefault
statusYes
messageNo
resultsNo
batch_idsNo
next_stepNo
not_startedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.2
    • removedOutput schema / properties / batch_ids / default
      Removed value: -[]
    • removedOutput schema / properties / not_started / default
      Removed value: -[]
    • removedOutput schema / properties / results / default
      Removed value: -[]
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing quota economics (already-ledgered expressions cost nothing), the authorization tier needed (Consultant), internal batching/grouping mechanics, and partial-failure behavior via the not_started list with a resubmission path. These are exactly the non-obvious traits an agent needs before committing a batch.

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?

Four tight sentences, front-loaded with scale and grouping limits before credentials and edge cases; every sentence carries information. Minor waste in restating the 30-expression cap that maxItems already enforces.

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 batch mutation with real quota cost and an output schema, the description covers limits, credentials, deduplication, and partial failure. It stops short of describing timeout outcomes or whether partial results are retrievable after a timeout, which matters given timeout_seconds and wait=false.

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 coverage is 75% and wait/force/timeout_seconds already carry descriptions, so the baseline applies. The description adds genuine constraint semantics not in the schema — the shared-delay invariant and region-based grouping — but says nothing additional about force, wait, or timeout interaction, and repeats the 30-item cap already encoded as maxItems.

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?

Opens with a specific verb and resource ('Backtest up to 30 expressions') and even names the backend (BRAIN), which is more than the title restates. It implies the batch counterpart to the single-expression siblings through the 'up to 30' framing but never names simulate_alpha, so the differentiation is inferred rather than stated.

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 operating conditions: max 30 expressions, groups of at most 10, all expressions must share one delay, different regions become separate groups, and a Consultant account is required. What it lacks is explicit routing guidance (when to prefer simulate_alpha for a single expression, or when to resubmit versus force).

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