SimpleFunctions
The SimpleFunctions server is an AI-powered prediction market intelligence platform for Kalshi and Polymarket, with traditional financial data via Databento. Key capabilities:
Market Data & Research
get_world_state— Compact ~800-token snapshot of real-money probabilities across ~9,700 live markets (geopolitics, economics, tech, policy, crypto)get_world_delta— Only changes since a given timestamp (~30–50 tokens, efficient polling)get_markets/search_markets— Browse or full-text search 130K+ prediction market contractsget_changes— Top 24h price movers by absolute probability changequery_databento— Real-time/historical OHLCV, trades, and quotes for CME futures, equities, and crypto
Analysis & Edge Detection
get_context— Global market snapshot (edges, movers, highlights) or thesis-specific bundleget_edges— Current mispricings where the causal model disagrees with market priceget_trade_ideas— AI-generated trade ideas derived from active theses and live dataenrich_content— Cross-reference arbitrary text/URLs against live markets with optional LLM analysismonitor_the_situation— End-to-end pipeline: scrape URLs/web, LLM analysis, optional market cross-reference
Thesis Management (requires API key)
create_thesis— Build a causal thesis from natural language; platform schedules recurring evaluationfork_thesis— Clone a public thesis for customizationlist_theses— View your theses with status and last evaluation timestampinject_signal— Append external observations (news, data) to a thesis's signal logtrigger_evaluation— Force immediate re-evaluation and confidence score update
Trading & Portfolio
Place direct orders, conditional intents with triggers, and automated market making with inventory management
View positions, balances, orders, fills, settlements, and performance history
All tools return JSON for seamless AI agent and LangChain integration, and the platform supports 24/7 autonomous monitoring with scheduled news/X scraping and closed-loop trading triggers.
Provides a Telegram bot interface for monitoring prediction market theses and executing trades directly through the messaging platform.
SimpleFunctions CLI (sf)
Reference and issue mirror for @spfunctions/cli, the supported SimpleFunctions command-line interface for prediction-market infrastructure.
The current CLI is distributed through npm. Install the package and treat the installed sf binary as the source of truth:
npm i -g @spfunctions/cli
sf login
sf status --json
sf world --json
sf describe --all --jsonsf is the primary local surface for SimpleFunctions. It queries live Kalshi + Polymarket state, inspects markets and orderbooks, exports structured JSON for coding agents, runs thesis and portfolio workflows, and keeps execution commands explicit and permission-gated.
What this repository is
Public reference page for the npm package.
Issue tracker for
@spfunctions/cli.Installation, support, and discovery pointer for the current
sfsurface.
What this repository is not
It is not the current full operator-runtime source tree.
It is not the canonical command inventory.
It should not be used to infer current command counts, market counts, or execution behavior.
Use sf describe --all --json for the installed command manifest. Use https://simplefunctions.dev/api/internal/statistics for current public surface counts.
First useful workflow
sf status --json
sf world --json
sf discover --quality --json
sf inspect <ticker> --jsonIf a command is unavailable in your installed version, run:
npm i -g @spfunctions/cli@latest
sf describe --all --jsonProduct surface order
CLI: primary local control plane for humans, shell scripts, cron, Claude Code, Codex, and other coding agents.
HTTP/Data API: network surface for services, dashboards, notebooks, and remote workers.
SDKs and agent runtime: planned wrappers over stable CLI/API object contracts.
MCP: compatibility adapter for MCP-only hosts, not the canonical product center.
Links
CLI product page: https://simplefunctions.dev/cli
npm package: https://www.npmjs.com/package/@spfunctions/cli
Docs: https://docs.simplefunctions.dev
llms.txt: https://simplefunctions.dev/llms.txt
Public package catalog: https://simplefunctions.dev/opensource
License
The public mirror is MIT-licensed. The supported npm distribution may include private SimpleFunctions runtime code.
Maintenance
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/spfunctions/simplefunctions-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server