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.

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries full weight. It discloses authentication requirements, error behavior (QUOTA_EXCEEDED with Retry-After), the conditional presence of the thesis field, and a full list of returned fields. This goes beyond minimal transparency, though it does not explicitly mention side effects or read-only status.

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 sentence that front-loads the purpose and uses a colon-delimited list for the return payload. It packs substantial information without excess fluff, though its length is somewhat longer than the minimum needed.

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 lack of an output schema and annotations, the description provides a comprehensive picture: all return fields, optional field behavior, error handling, and authentication. This is sufficient for an agent to invoke the tool correctly with no ambiguity.

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?

All parameters have complete schema descriptions, so the baseline is 3. The description adds valuable context beyond the schema: it explains that include_thesis introduces latency and controls the thesis field, and it highlights symbol and timeframe as core inputs. This extra behavioral detail justifies a 4.

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 clearly identifies the tool's action ('Generate an AI-powered crypto trading signal') and its key constraints (given pair and timeframe). It distinguishes the tool from the sibling get_account by focusing on signal generation, and it enumerates expected return fields, making the purpose explicit.

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 the tool is for generating signals but does not explicitly state when to use it versus other tools. There is no mention of alternatives or exclusions, so the usage guidance is only implied, not directly stated.

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.

TDQS

A4.1/5.0
Disambiguation5/5

The two tools serve completely different purposes: one generates trading signals, the other checks account quota. There is no ambiguity between them.

Naming Consistency5/5

Both tools follow the verb_noun pattern: generate_signal and get_account. This is consistent and predictable.

Tool Count3/5

With only 2 tools, the surface feels thin for a trading signal API, which typically might include backtesting or historical data. However, the tools are directly relevant to the core purpose.

Completeness3/5

The set covers signal generation and quota management, but lacks obvious supporting operations like fetching historical signals or managing signal subscriptions. This leaves some gaps for an agent needing broader trading workflow coverage.

Resources