Skip to main content
Glama

Run a Model Now (signals)

predict_signals

Run one of this account's trained models now on the bars after its training end and return its signals. Only the bars the strategy's own filters keep (direction, session, volatility and trend) are returned, as in its backtest.

Returns the newest signal as latest (or null) and the last 20 (time, type buy or sell, score or predicted_return, close). Costs 1 credit, refunded when the run fails.

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": {
      "stem": "<stem>"
    },
    "name": "predict_signals"
  }
}

Input Schema

NameRequiredDescriptionDefault
stemYesA model id from list_models or train_strategy, e.g. 14_EURUSD_15min_Model_3.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses filter semantics ('only the bars the strategy's own filters keep — direction, session, volatility and trend'), the cost model with a refund-on-failure policy, and the shape of the result. These are exactly the operational facts an agent cannot get from the structured fields.

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 tight sentences, front-loaded with the action, then the filtering constraint, then the return shape and cost. No filler, and the cost/refund caveat is placed where it matters most to a caller about to spend credits.

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?

With an output schema present and a single fully described parameter, the description nonetheless covers scope, filter semantics, return shape, and credit cost. An agent has enough to decide whether to call it and what to expect without inspecting anything else.

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 100% and the schema already documents `stem` with an example, so the description need not carry parameter detail. The phrase 'this account's trained models' adds a scoping constraint (the model must belong to the account), which is marginal added meaning; otherwise it rests at the baseline.

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 uses a specific verb and resource ('Run one of this account's trained models now... and return its signals') and scopes the run to bars after the model's training end. That scope clause separates it clearly from train_strategy (which creates models) and get_signal_log, though no sibling is named outright.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the inference step for an already-trained model, and the 'bars after its training end' clause hints at when it is appropriate. There is no explicit when-not guidance (e.g., model still training, model deleted) and no named alternative such as get_signal_log or one_shot.

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