Skip to main content
Glama

get_signal_history

Retrieve historical financial signals with regimes, postures, and risk scores to track market condition evolution over time.

Instructions

[BETA] View Fathom's signal log. Shows recent signals with their regimes, postures, and risk scores. Useful for tracking how conditions evolved over time. Accuracy scoring is under development.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of recent signals to return (default: 20)

Implementation Reference

  • The main handler function for the `get_signal_history` tool. It fetches signals, computes accuracy statistics, formats the output, and includes error handling.
    export function getSignalHistory(limit = 20): SignalHistoryOutput | ErrorOutput {
      try {
        const signals = getRecentSignals(limit);
    
        // Recompute accuracy stats
        const accuracy = signals.length > 0 ? computeAccuracyStats() : getAccuracyStats();
    
        const recent = signals.map(s => ({
          timestamp: s.timestamp,
          tool: s.tool,
          regime: s.regime,
          posture: s.posture,
          risk_score: s.risk_score,
          fear_greed: s.fear_greed,
          accuracy_verdict: s.accuracy?.verdict,
        }));
    
        let guidance = `${signals.length} signals logged. `;
        if (accuracy && accuracy.evaluated_signals > 0) {
          guidance += `Accuracy: ${accuracy.win_rate_pct}% win rate across ${accuracy.evaluated_signals} evaluated signals. `;
          if (accuracy.win_rate_pct > 65) {
            guidance += 'Fathom signals have been historically reliable. Weight them in your decision-making.';
          } else if (accuracy.win_rate_pct > 50) {
            guidance += 'Fathom signals show positive edge but use them as one input among many.';
          } else {
            guidance += 'Accuracy data is still building. More signals needed for reliable statistics.';
          }
        } else {
          guidance += 'Accuracy tracking requires 2+ weeks of signal history to evaluate outcomes. Keep calling Fathom to build your proprietary track record.';
        }
    
        return {
          recent_signals: recent,
          accuracy,
          total_signals_logged: signals.length,
          agent_guidance: guidance,
        };
      } catch {
        return {
          error: true,
          error_source: 'get_signal_history',
          agent_guidance: 'Signal history temporarily unavailable.',
          last_known_data: null,
          data_warnings: ['Signal history service temporarily unavailable.'],
        };
      }
    }
  • Interface defining the expected structure of the tool output.
    export interface SignalHistoryOutput {
      recent_signals: {
        timestamp: string;
        tool: string;
        regime?: string;
        posture?: string;
        risk_score?: number;
        fear_greed?: number;
        accuracy_verdict?: string;
      }[];
      accuracy: AccuracyStats | null;
      total_signals_logged: number;
      agent_guidance: string;
    }
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It successfully communicates Beta status and data quality caveats ('Accuracy scoring is under development'), but omits operational details like pagination behavior, data retention periods, or computational costs that would be needed for full transparency.

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 efficient sentences with minimal waste. The Beta tag is front-loaded, followed by purpose, specific data fields, use case, and data quality disclaimer. Each sentence adds distinct value, though 'Shows recent signals' slightly overlaps with 'View...signal log' but adds field specificity.

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

Completeness3/5

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

Adequate for a simple single-parameter tool with complete schema coverage. The description identifies key return fields (regimes, postures, risk scores) compensating somewhat for the missing output schema, but could strengthen completeness by clarifying the time window behavior (only 'recent' signals) and Beta limitations.

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?

Input schema has 100% coverage for the single 'limit' parameter which is well-documented in the schema itself. The description mentions no parameters, which warrants the baseline score of 3 when schema coverage is high (>80%).

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?

Clearly states the tool 'View Fathom's signal log' with specific content details (regimes, postures, risk scores) that help distinguish it from siblings like get_alerts or get_market_regime. However, it lacks explicit scope limitations or direct comparison to sibling tools that would make differentiation immediate.

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?

Provides an implied use case ('Useful for tracking how conditions evolved over time') but lacks explicit guidance on when to select this over siblings like get_historical_context or get_alternative_signals, and does not mention prerequisites or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xHashy/fathom-fyi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server