Skip to main content
Glama

generate_signal

Generate an AI-powered crypto trading signal for a given pair and timeframe. Returns: action (OPEN_LONG | OPEN_SHORT | CLOSE), confidence (0.0–1.0), entry_price, take_profit (array of price levels), stop_loss, risk_reward ratio, indicators (rsi, macd, ema_20, atr), risk_flags (overbought_rsi | oversold_rsi | low_volume | high_spread | near_resistance | near_support), generated_at (ISO 8601), expires_at (ISO 8601), and quota_remaining. The thesis field contains LLM reasoning and is only present when include_thesis=true. On quota exhaustion returns error_code=QUOTA_EXCEEDED with Retry-After header. Requires Authorization: Bearer nt_.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesTrading pair in BASE/QUOTE format, e.g. BTC/USDT, ETH/USDT, SOL/USDT.
strategyNoSignal strategy to apply. Defaults to trend_rider.
timeframeNoCandlestick timeframe for signal analysis. Defaults to 15m.15m
personalityNoRisk personality shaping confidence weighting and TP/SL aggressiveness. Defaults to scalper.
include_thesisNoWhen true, includes the LLM-generated reasoning in the `thesis` field of the response. Adds ~200ms latency.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / include_thesis / description
      Previous value: -"Include the AI narrative thesis in the response."New value: +"When true, includes the LLM-generated reasoning in the `thesis` field of the response. Adds ~200ms latency."
    • changedInput schema / properties / personality / description
      Previous value: -"Signal personality shaping confidence weighting: scalper, swing, macro, trend_rider, news_reactive, breakout_hunter"New value: +"Risk personality shaping confidence weighting and TP/SL aggressiveness. Defaults to scalper."
    • addedInput schema / properties / personality / enum
      Added value: +[
      +  "scalper",
      +  "swing",
      +  "macro",
      +  "trend_rider",
      +  "news_reactive",
      +  "breakout_hunter"
      +]
    • changedInput schema / properties / strategy / description
      Previous value: -"Strategy name: trend_rider, breakout_hunter, scalper, swing_master, macro_lens, news_reactive, momentum_surge, mean_reversion"New value: +"Signal strategy to apply. Defaults to trend_rider."
    • addedInput schema / properties / strategy / enum
      Added value: +[
      +  "trend_rider",
      +  "breakout_hunter",
      +  "scalper",
      +  "swing_master",
      +  "macro_lens",
      +  "news_reactive",
      +  "momentum_surge",
      +  "mean_reversion"
      +]
    • changedInput schema / properties / symbol / description
      Previous value: -"Trading pair, e.g. BTC/USDT, ETH/USDT, SOL/USDT"New value: +"Trading pair in BASE/QUOTE format, e.g. BTC/USDT, ETH/USDT, SOL/USDT."
    • addedInput schema / properties / symbol / pattern
      Added value: +"^[A-Z0-9]+/[A-Z0-9]+$"
    • changedInput schema / properties / timeframe / description
      Previous value: -"Candle timeframe: 1m, 5m, 15m, 1h, 4h, 1d"New value: +"Candlestick timeframe for signal analysis. Defaults to 15m."
    • addedInput schema / properties / timeframe / enum
      Added value: +[
      +  "1m",
      +  "5m",
      +  "15m",
      +  "1h",
      +  "4h",
      +  "1d"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description fully carries the behavioral transparency burden. It discloses authentication requirements (Authorization: Bearer nt_<api_key>), detailed return structure with enums and conditionals (thesis only when include_thesis=true), error behavior (QUOTA_EXCEEDED with Retry-After header), and response expiry. This is comprehensive and goes beyond typical descriptions.

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?

The description is a single dense paragraph that front-loads the purpose and then enumerates return fields, error handling, and auth. Every sentence earns its place, and there is no fluff. However, the length could be streamlined with bullets for readability, so it is not maximally concise.

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?

Given the absence of an output schema, the description compensates thoroughly by listing all response fields, their types/enums, conditional fields, and edge cases (quota exhaustion). It also covers auth and response expiry, ensuring the agent understands the tool's full behavior despite no structured output schema.

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%, so all five parameters are already documented in the input schema. The description adds minimal parameter-specific value beyond mentioning 'pair and timeframe' and the include_thesis conditional. This matches the baseline of 3 for high coverage, but does not elevate it.

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?

The description opens with a specific verb and resource: 'Generate an AI-powered crypto trading signal for a given pair and timeframe.' This clearly distinguishes it from the sibling tool get_account, which handles account information. The return fields reinforce the purpose without ambiguity.

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?

The description implies usage via 'for a given pair and timeframe' but does not explicitly state when to use this tool versus alternatives or when not to use it. It lacks exclusions or references to sibling tools, so usage guidance is only inferred from the purpose.

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