Spiral gives your agent every tool with one account. Browse the tools →

opencode · Sports

How to Use CBS Sports fantasy stats in opencode

Get actual NFL fantasy production or NBA season and recent-form statistics. Use completed performance to assess a player's track record, compare recent basketball form, or check the evidence behind a lineup decision.

Prompts to try with CBS Sports fantasy stats in opencode

Copy an example into opencode, or ask in your own words.

Use CBS Sports fantasy stats to compare Luka Doncic and Stephen Curry over the last seven and 28 days, then add the comparison to the existing basketball view.

CBS Sports fantasy statsopencode
Try asking
  • Use CBS Sports fantasy stats to populate the project's NFL quarterback comparison with Josh Allen's and Patrick Mahomes's available season production.

  • Use CBS Sports fantasy stats to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from CBS Sports fantasy stats and tell me what changed since last week.

  • Check CBS Sports fantasy stats and summarize what you find in three bullet points.

How to set up CBS Sports fantasy stats in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run CBS Sports fantasy stats

    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": "cbssports-com/fantasy-sports-rankings/stats",
        "input": {
          "position": "QB"
        }
      }'

Then paste one of the prompts above: opencode finds CBS Sports fantasy stats on Spiral, shows the price and runs it.

CBS Sports fantasy stats providers and prices

Spiral runs CBS Sports fantasy stats through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSports
CBS Sports fantasy football and basketball · Stats
cbssports-com/fantasy-sports-rankings/stats

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
PositionQB, RB, WR, TE, K, DST, PG, SG and 5 more

Football: QB, RB, WR, TE, K or DST (team defense and special teams). Basketball: PG, SG, SF, PF, C, or G (guards) and F (forwards).

Week1 to 30

Current season only; omit for season totals. Football: a single NFL week 1-18; the site publishes only the last completed week. Basketball: a scoring period; the site publishes only the current one ("This Period"). Others are not_found.

Limit1 to 200

Return only the top N rows. Omit for the whole table.

Sportfootball or basketballfootball

football (default, NFL) or basketball (NBA). Positions, scoring and periods differ by sport; an option of the other sport is invalid_input.

Periodyesterday, last_7_days, last_14_days, last_21_days, last_28_days, or three_year_average

Basketball only, current season, without week: yesterday, the last 7/14/21/28 days, or the three-year averages (published before the season starts). Periods the site is not showing are not_found.

Season2000 to 2100

Season year; an NBA season is labelled by the year it starts (2025 is 2025-26). Omit for the current season. The site publishes the current and the two previous seasons (three before an NBA season starts); others are not_found.

ScoringPPR or STD

Football only: PPR (a point per reception, the default) or STD (non-PPR). The site publishes no half-PPR tables. Omit for basketball, whose tables use CBS points scoring.

Every API field of CBS Sports fantasy football and basketball · Stats is on its tool page: open its card above.

What can you do with CBS Sports fantasy stats in opencode?

Build a player comparison view that puts CBS expectations, expert preferences and completed production beside each other. Use separate labels for NFL and NBA results so the project preserves each sport's context.

Choose an NFL starter

Compare a shortlist's expected points, expert ordering and completed production to explain a start-or-sit decision.

Review a fantasy trade

Evaluate the players on both sides using future expectations, positional standing and actual production. Keep the comparison within the same sport and scoring context.

Compare NBA roster options

Review recent basketball production alongside longer-term expectations and positional rankings before deciding which player deserves a roster spot.

Explain conflicting player evaluations

Find players whose expert standing, expected output and completed performance point in different directions. Show the competing evidence before recommending a choice.

Investigate an NBA hot streak

Compare seven-day and 28-day production with rest-of-season expectations to judge how much weight to give a recent surge.

Questions about CBS Sports fantasy stats in opencode

Can opencode use CBS Sports fantasy stats?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CBS Sports fantasy stats like any built-in tool.

How much does CBS Sports fantasy stats cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use CBS Sports fantasy stats in opencode?

No. Spiral runs CBS Sports fantasy stats on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up CBS Sports fantasy stats in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while CBS Sports fantasy stats runs?

CBS Sports fantasy stats runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Which leagues do these CBS Sports tables cover?

The documented coverage is NFL football and NBA basketball.

What league format underlies CBS's NBA rankings?

Twelve teams and eight categories.

How much recent basketball form can I compare?

CBS publishes rolling windows of 7, 14, 21 and 28 days.

How many football experts contribute rankings?

Three CBS fantasy experts contribute weekly and draft rankings.

How far back did the reviewed football season tables go?

The reviewed selector listed 2026, 2025 and 2024.

Get started

Start using CBS Sports fantasy stats in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options