Skip to main content
Glama

hcs_understand

Analyze Hedera Consensus Service topics to detect anomalies, identify trends, extract entities, or assess risks using historical data patterns.

Instructions

Deep pattern analysis of an HCS topic - anomaly detection, trend analysis, entity extraction, or risk assessment. Costs 0.50 HBAR.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesYour HederaIntel API key
analysis_typeYesType of analysis to perform
topic_idNoHedera topic ID. Defaults to the HederaIntel platform topic.
lookback_daysNoDays of history to analyze (default 7, max 30)

Implementation Reference

  • The handler for hcs_understand that processes the topic messages using deepAnalyze.
    if (name === "hcs_understand") {
      const payment = chargeForTool("hcs_understand", args.api_key);
      const topicId = args.topic_id || PLATFORM_TOPIC;
      const messages = await getTopicMessages(topicId, 100);
      const analysis = await deepAnalyze(messages, args.analysis_type);
      return {
        topic_id: topicId,
        analysis_type: args.analysis_type,
        messages_analyzed: messages.length,
        ...analysis,
        payment,
        timestamp: new Date().toISOString(),
      };
    }
  • The MCP schema definition for hcs_understand tool.
      name: "hcs_understand",
      description: "Deep pattern analysis of an HCS topic - anomaly detection, trend analysis, entity extraction, or risk assessment. Costs 1.0 HBAR.",
      inputSchema: {
        type: "object",
        properties: {
          topic_id: { type: "string", description: "Hedera topic ID. Defaults to the HederaIntel platform topic." },
          analysis_type: {
            type: "string",
            enum: ["anomaly_detection", "trend_analysis", "entity_extraction", "risk_assessment"],
            description: "Type of analysis to perform",
          },
          lookback_days: { type: "number", description: "Days of history to analyze (default 7, max 30)" },
          api_key: { type: "string", description: "Your HederaIntel API key" },
        },
        required: ["analysis_type", "api_key"],
      },
    },

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/mountainmystic/hederatoolbox'

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