Skip to main content
Glama

nodus_query_history

Access your recent NodusAI oracle query history to review past predictions and analysis for Polymarket and Kalshi markets.

Instructions

View your recent NodusAI oracle query history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletAddressYesYour wallet address
limitNoMax records (default: 20)

Implementation Reference

  • The actual implementation of the nodus_query_history tool, which retrieves and formats query history for a given wallet address.
    export async function nodusQueryHistory({ walletAddress, limit }) {
      if (!walletAddress) return err("walletAddress is required");
      const agent = getAgentByWallet(walletAddress);
      if (!agent) return ok({ message: "No queries found for this wallet", queries: [] });
    
      const history = getQueryHistory(agent.id, limit || 20);
      return ok({
        agentId:       agent.id,
        walletAddress: agent.walletAddress,
        totalReturned: history.length,
        queries: history.map(q => ({
          queryId:          q.id,
          marketUrl:        q.marketUrl,
          platform:         q.platform,
          desiredOutcome:   q.desiredOutcome || null,
          predictedOutcome: q.signal?.predicted_outcome || null,
          probability:      q.signal?.probability ?? null,
          confidence:       q.signal?.confidence_score || null,
          success:          q.success,
          timestamp:        q.timestamp,
        })),
      });
    }
  • The registration and input schema definition for the nodus_query_history tool.
    name: "nodus_query_history",
    description: "View your recent NodusAI oracle query history.",
    inputSchema: {
      type: "object",
      properties: {
        walletAddress: { type: "string", description: "Your wallet address" },
        limit:         { type: "number", description: "Max records (default: 20)" },
      },
      required: ["walletAddress"],
    },

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/NodusAI-Your-Prediction-Broker/nodusai-mcp-server'

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