{"source":"terminalfeed","generated_at":"2026-07-27T11:10:53.059Z","docs":"https://terminalfeed.io/developers/agent-payments","contract":"https://terminalfeed.io/openapi.json","note":"Pre-baked function-calling tool definitions for AI agents. Paste the openai or anthropic block directly into your tool-use scaffold. Cross-redeemable on tensorfeed.ai.","cost":"free (this endpoint costs no credits; the tools listed have their own pricing)","bearer_format":"tf_live_<64-char-hex>","auth_flow":"POST /api/payment/buy-credits -> send USDC on Base -> POST /api/payment/confirm -> use returned bearer token on /api/pro/*","anthropic":[{"name":"tf_briefing","description":"Fetches a real-time world-state snapshot composed from BTC ticker, Fear and Greed Index, recent earthquakes (USGS), top Hacker News story count, and ISS crew. Returns JSON. No auth required. Cache TTL 60s. Use when the agent needs a quick global pulse before deciding what to investigate.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_btc_price","description":"Fetches the current Bitcoin price in USD with 24h change, high, low, and volume. Source: Binance with CoinCap fallback. Cache TTL 15s. No auth required. Use for crypto trading decisions or when the agent needs a fresh BTC quote.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_fear_greed","description":"Fetches the current Crypto Fear and Greed Index value (0-100) with classification label (Extreme Fear, Fear, Neutral, Greed, Extreme Greed). Source: Alternative.me. Cache TTL 5min. Use as a sentiment signal for crypto trading decisions.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_crypto_movers","description":"Fetches the top 15 cryptocurrencies sorted by 24h price change. Includes price, market cap, and percentage move. Source: CoinGecko/CoinLore. Cache TTL 30s. Use when the agent needs to surface notable crypto market moves.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_predictions","description":"Fetches active Polymarket prediction markets sorted by 24h volume. Each market includes question, outcomes, and volume. Cache TTL 60s. Use when the agent needs market-implied probabilities on world events (elections, sports, macro).","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_earthquakes","description":"Fetches recent earthquakes magnitude 2.5 or greater from USGS. Returns count and most recent quake details (magnitude, place, time). Cache TTL 2min. Use for disaster monitoring or when the agent needs current seismic activity.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_climate_earthquakes","description":"Fetches USGS pre-built summary feeds with selectable magnitude bucket (significant, 4.5, 2.5, 1.0, all) and period (hour, day, week, month). Returns flattened list (id, magnitude, place, time ISO 8601, depth_km, lat, lon, tsunami flag, USGS detail URL). Cache TTL scales with feed window (60s for hour, up to 900s for month). US Government public domain. Use when the agent needs more granular control than tf_earthquakes.","input_schema":{"type":"object","properties":{"magnitude":{"type":"string","maxLength":100,"description":"Magnitude bucket: significant, 4.5, 2.5, 1.0, all. Default 2.5."},"period":{"type":"string","maxLength":100,"description":"Period bucket: hour, day, week, month. Default day."}},"required":[]}},{"name":"tf_climate_weather_alerts","description":"Fetches active alerts from api.weather.gov filtered by area (2-letter state code), exact NWS event name, severity, urgency, and status. Returns id, event, severity, urgency, certainty, headline, description, areaDesc, sent/effective/expires/ends, sender_name, web URL. 60s cache. US Government public domain. US-only coverage. Use for situational awareness on active weather hazards.","input_schema":{"type":"object","properties":{"area":{"type":"string","maxLength":200,"description":"2-letter US state code, e.g. CA, NY. Optional."},"event":{"type":"string","maxLength":200,"description":"Exact NWS event name, e.g. \"Tornado Warning\", \"Heat Advisory\". Optional."},"severity":{"type":"string","maxLength":100,"description":"Extreme | Severe | Moderate | Minor | Unknown. Optional."},"urgency":{"type":"string","maxLength":100,"description":"Immediate | Expected | Future | Past | Unknown. Optional."},"status":{"type":"string","maxLength":100,"description":"Actual | Exercise | System | Test | Draft. Optional."},"limit":{"type":"number","description":"1..100, default 50."}},"required":[]}},{"name":"tf_service_status","description":"Fetches operational status of major dev infrastructure (GitHub, Cloudflare, Discord, OpenAI, Vercel, npm, Reddit, Atlassian, Anthropic). Cache TTL 60s. Use when the agent needs to know if a dependency is up or to explain a recent outage.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_economic_data","description":"Fetches latest FRED economic indicators: Fed funds rate, CPI, unemployment rate, GDP growth. Cache TTL 1h. Use when the agent needs current US macro indicators. For deeper macro (treasury yields, forex, commodities, indices) use tf_premium_macro.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_forex","description":"Fetches current foreign exchange rates with USD as base for 16 major currencies (EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR, MXN, BRL, KRW, SGD, HKD, SEK, NOK, NZD). Source: Frankfurter (ECB-based). Cache TTL 5min. Use for currency conversion or FX-aware decisions.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_hf_trending","description":"Fetches the top 15 trending HuggingFace models sorted by likes in the last 7 days. Each item includes id (author/name), likes, downloads, pipeline tag, and url. Source: huggingface.co/api/models. Cache TTL 10min. Use when the agent needs to surface what the open-source AI community is paying attention to right now.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_harnesses","description":"Returns a snapshot of public agentic-coding benchmark scores across SWE-bench Verified, Terminal-Bench, Aider Polyglot, and METR HCAST. Each row pairs a harness with a model. Same model can score very differently on different harnesses; that gap is the value-add. Pass ?view=summary for top 10 combined leaderboard plus biggest harness gaps; ?view=gaps for full per-model harness deltas; ?view=combined for normalized cross-benchmark ranking; ?view=raw (default) for the full benchmark/result graph. Source: hand-curated from upstream leaderboards (swebench.com, terminal-bench.org, aider.chat, metr.org). Cache TTL 12h. Use when the agent needs to recommend a harness/model combo or explain why two agents using the same model perform differently.","input_schema":{"type":"object","properties":{"view":{"type":"string","maxLength":100,"enum":["raw","summary","gaps","combined"],"description":"Output shape; default raw"}},"required":[]}},{"name":"tf_solana_network","description":"Fetches live Solana mainnet network metrics: current transactions-per-second (most recent 60s sample), 3-sample average TPS, current slot, average slot time in ms, and epoch progress percentage. Source: solana-rpc.publicnode.com (getRecentPerformanceSamples + getSlot + getEpochInfo). Cache TTL 30s. Use when the agent needs to assess Solana network throughput or congestion.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_ai_stack_cves","description":"Current AI-software-stack CVE pulse: total advisories, exploited-in-the-wild count, severity and category breakdown, and the single top CVE headline, filtered to the AI stack (inference servers, agent frameworks, training libs, vector DBs, model gateways and SDKs, MCP tools). The full per-CVE list (affected version ranges, fixed versions, advisory source URLs) is premium on tensorfeed.ai at 1 credit; credits are cross-redeemable with terminalfeed.io. Source: GitHub Advisory Database plus vendor advisories, CC BY 4.0.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_briefing","description":"Premium version of tf_briefing. Adds Polymarket prediction markets to the standard briefing payload and supports section filtering via ?include=. Covers earthquakes, Hacker News, humans in space, space launches, and prediction markets. Costs 1 credit ($0.02 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>. Use when the agent needs prediction-market context in addition to the basic snapshot. Strict premium, no free trial. Free basic version (without predictions) available at tf_briefing (no auth required). Note: crypto legs (BTC price, Fear and Greed) were removed 2026-07-23 for market-data licensing compliance.","input_schema":{"type":"object","properties":{"include":{"type":"string","maxLength":500,"description":"Comma-separated subset of sections: earthquakes, hackernews, humans-in-space, launches, predictions. Omit for all sections."}},"required":[]}},{"name":"tf_premium_macro","description":"Premium composed macroeconomic snapshot in one HTTP call. Includes FRED economic series (Fed rate, CPI, unemployment, GDP growth, 10-year treasury), 4 USD-base forex pairs (EUR, JPY, GBP, CHF) via Frankfurter, and oil/natural gas via FRED. All sources are public/gov (FRED, US government, public domain) or ECB reference rates (Frankfurter). Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>. Optional ?history=30d adds 30-day historical series. Note: US equity indices (SPY/DIA/QQQ), VIX, and gold were removed 2026-07-23 (Finnhub/Kraken are not licensed for commercial redistribution).","input_schema":{"type":"object","properties":{"history":{"type":"string","maxLength":100,"enum":["30d"],"description":"When set to 30d, FRED entries include a series array of 30 daily observations and forex.series is populated."}},"required":[]}},{"name":"tf_premium_github_velocity","description":"Composed GitHub developer-attention snapshot. Returns top 30 repos created in the last 7 days sorted by stars (with stars-per-day, language, topics, license, owner type, AI/ML focus flag), top 15 AI/ML-focused active repos (topic:llm with commits in the last 30 days), language and topic aggregates, and the AI/ML share of trending. Source: GitHub Search API. Costs 2 credits ($0.04 USDC). 30-min cache. Bearer auth required.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_feed_reliability","description":"Premium reliability breakdown. For every monitored feed, a 0-100 composite reliability score with subscores (uptime, availability, staleness rate, dark rate), a sample-size trust tier, and a low_coverage flag, scored from rolling ok/stale/dark counts probed every 5 minutes. Ranked, with low-sample feeds parked separately. captured_at is the monitor real check time, so a stalled monitor (>48h) no-charges. The free preview is GET /api/feed-reliability (top-line table, no auth); this paid tier adds the signed receipt and the full per-feed breakdown. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_feed_reliability_history","description":"Premium reliability history. Returns the daily composite-reliability time-series for one feed (param feed, e.g. btc-price), with optional from/to date bounds (YYYY-MM-DD, query window capped at 365 days). Immutable past data; an empty range no-charges. Use the free GET /api/feed-reliability for current feed ids. Costs 2 credits ($0.04 USDC). Requires Authorization: Bearer tf_live_<64-char-hex>.","input_schema":{"type":"object","properties":{"feed":{"type":"string","maxLength":200,"description":"feed id, e.g. btc-price"},"from":{"type":"string","maxLength":200,"description":"lower bound YYYY-MM-DD (optional)"},"to":{"type":"string","maxLength":200,"description":"upper bound YYYY-MM-DD (optional)"}},"required":[]}},{"name":"tf_premium_correlation_matrix","description":"Pre-computed macro correlation matrix for AI trading and portfolio agents. Returns 30-day Pearson correlations on daily simple returns for 4 FRED series (US gov, public domain): 10Y treasury yield, 2Y treasury yield, trade-weighted USD index, and WTI crude oil. Output includes both a pairs array (sorted by absolute r descending) and an NxN matrix object for easy lookup. Each pair tagged with relationship strength (negligible / weak / moderate / strong) and direction (positive / negative). Costs 2 credits ($0.04 USDC). 30-min cache. Bearer auth required. Note: crypto and equity legs were removed 2026-07-23 for market-data licensing compliance.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_agent_context","description":"The \"always start here\" premium call for autonomous agents. Composes multiple public/gov upstream sources into a curated world-state snapshot: Fed funds rate, USD-base forex (EUR/JPY/GBP/CHF), HN front page top 5, significant earthquakes 24h, upcoming space launches, top Polymarket markets, and infrastructure status (GitHub, Cloudflare, OpenAI, Anthropic). Returns BOTH a structured JSON `context` object for parsers AND a pre-formatted `system_prompt` string the agent pastes verbatim into its LLM context. Saves the agent from making many separate calls and writing a formatter. Curation choice (which signals matter, how to compress them) is the moat. Costs 2 credits ($0.04 USDC). 5-min cache. Bearer auth required. Note: crypto (BTC, Fear and Greed) and VIX legs were removed 2026-07-23 for market-data licensing compliance.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_premium_world_deltas","description":"Premium event-stream endpoint for monitor agents. Aggregates time-stamped events from 4 sources into one time-sorted feed: USGS earthquakes M4.0+, Hacker News new stories via Algolia, recently updated Polymarket markets, and space launches in [-1h, +12h] window. Accepts ?since=<ISO timestamp> (defaults 1h ago, clamped to 1h cache horizon). Each event has type, timestamp, severity, and structured data. Saves an agent from polling 5 separate upstream feeds and merging client-side. Costs 2 credits ($0.04 USDC). Bearer auth required. 1-hour rolling cache; sub-second when warm.","input_schema":{"type":"object","properties":{"since":{"type":"string","maxLength":200,"description":"ISO 8601 timestamp. Returns events newer than this. Defaults to 1 hour ago. Clamped to 1 hour ago if older."}},"required":[]}},{"name":"tf_payment_buy_credits","description":"POST endpoint that returns the published USDC wallet address (0x549c82e6bfc54bdae9a2073744cbc2af5d1fc6d1 on Base mainnet), a unique memo, and a quote tying the dollar amount to credits at $1 USDC = 50 credits. Use as the first step when the agent needs to buy credits to access /api/pro/* endpoints.","input_schema":{"type":"object","properties":{"amount_usd":{"type":"number","description":"USDC amount to convert. Minimum $1 = 50 credits."}},"required":[]}},{"name":"tf_payment_confirm","description":"POST endpoint that verifies an on-chain Base mainnet USDC transfer to the published wallet and returns a bearer token (tf_live_<64-char-hex>) plus credit count. Use after the agent has sent USDC, with the tx hash and the memo from tf_payment_buy_credits. The returned token is cross-redeemable on tensorfeed.ai.","input_schema":{"type":"object","properties":{"tx_hash":{"type":"string","maxLength":200,"description":"On-chain Base mainnet USDC transaction hash."},"nonce":{"type":"string","maxLength":200,"description":"The memo string returned from tf_payment_buy_credits (optional but recommended)."}},"required":[]}},{"name":"tf_payment_balance","description":"GET endpoint that returns remaining credits for the bearer token in the Authorization header. Requires Authorization: Bearer tf_live_<64-char-hex>. Costs 0 credits. Use to monitor agent budget.","input_schema":{"type":"object","properties":{},"required":[]}},{"name":"tf_payment_history","description":"GET endpoint that returns confirmed USDC purchases (tx_hash, amount_usd, credits_added, block_number, confirmed_at) plus current balance and totals for the bearer token. Requires Authorization: Bearer tf_live_<64-char-hex>. Costs 0 credits. Tokens minted before the ledger existed return current_balance with purchases: [].","input_schema":{"type":"object","properties":{},"required":[]}}]}