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
| Name | Required | Description | Default |
|---|---|---|---|
| walletAddress | Yes | Your wallet address | |
| limit | No | Max records (default: 20) |
Implementation Reference
- src/tools/index.js:185-207 (handler)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, })), }); } - src/index.js:90-99 (schema)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"], },