How to Use Polymarket event listings in Windsurf
Returns event records with their underlying markets for browsing and comparison. Use it to build a topic inventory or compare several events instead of looking up one known event.
Prompts to try with Polymarket event listings in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use Polymarket event listings to retrieve election events and add a table of titles, event IDs, deadlines, and underlying market questions to my project's research view.
Use Polymarket event listings to retrieve politics events and create a CSV export of event titles, IDs, descriptions, and resolution sources.
Use Polymarket event listings to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Polymarket event listings and tell me what changed since last week.
Check Polymarket event listings and summarize what you find in three bullet points.
How to set up Polymarket event listings in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Polymarket event listings
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "polymarket/events/list", "input": { "limit": 1 } }'
Then paste one of the prompts above: Windsurf finds Polymarket event listings on Spiral, shows the price and runs it.
Polymarket event listings providers and prices
Spiral runs Polymarket event listings through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 100 | Number of records to return (1 to 100); required to keep each response bounded. | |
| Active | on or off | Filter by active status. | |
| Closed | on or off | Filter by whether the market, event or series is closed. | |
| Offset | a number from 0 | Number of records to skip; increment by the page size. | |
| Tag ID | a number | Numeric topic tag ID from tags/list. | |
| Archived | on or off | Filter by archived status. | |
| Featured | on or off | Filter by featured status. | |
| Ascending | on or off | Whether to sort in ascending order. | |
| Volume max | a number | Maximum event volume. | |
| Volume min | a number | Minimum event volume. |
Every API field of Polymarket · Events list is on its tool page: open its card above.
What can you do with Polymarket event listings in Windsurf?
Build a linked Polymarket event directory in your project. Your coding agent can organize event listings and connect selected titles to detailed records and underlying questions.
Daily election research brief
Build a linked brief of election questions listed on Polymarket. Use new listings to identify additions and detailed event records to explain the underlying questions.
Newsroom assignment queue
Turn political event titles into reporting leads. Link each lead to its Polymarket event, then inspect the underlying markets before assigning a story.
Election question directory
Maintain a searchable directory of Polymarket election questions. Add newly discovered events and use detailed records to organize their constituent markets.
Political coverage review
Compare a research team's election watchlist with the political questions appearing on Polymarket. Identify topics to investigate and inspect the corresponding event records.
Resolution criteria review
Read event descriptions and resolution sources before comparing forecasts. Flag questions that use different deadlines or definitions of success.
Market activity comparison
Compare reported volume and liquidity across selected events. Keep event totals separate from the figures for individual underlying markets.
More on Polymarket event listings and Windsurf
Overview
Polymarket event listings in other agents
Questions about Polymarket event listings in Windsurf
Can Windsurf use Polymarket event listings?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Polymarket event listings like any built-in tool.
How much does Polymarket event listings cost in Windsurf?
$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use Polymarket event listings in Windsurf?
No. Spiral runs Polymarket event listings on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Polymarket event listings in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Polymarket event listings runs?
Polymarket event listings runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.
Is a Polymarket event the same as a market?
An event groups one or more markets. Each underlying market is a separate yes/no question, so an election event can contain several questions rather than one combined probability.
Does this data also cover Polymarket US?
Polymarket's international and US exchanges use distinct APIs and manage their data separately. Gamma event data should not be treated as a combined inventory of both exchanges.
Can Polymarket event records include closed events?
Yes. Polymarket's general event listing includes both open and closed events when the closed-status filter is omitted.
Are Polymarket odds fixed after an event is listed?
No. Trading can continue before an event concludes, and the market-implied probability can change as new information arrives.
What do Polymarket odds actually measure?
They represent the market's current implied probability of an outcome. They are a forecast produced by trading, so an event's odds should not be described as an official election result or a confirmed fact.
Start using Polymarket event listings in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


