How to Use SEC EDGAR product revenue in opencode
Returns product revenue from the company's filed XBRL disclosures. Use it to research reported product sales, then read the filing's narrative for context.
Prompts to try with SEC EDGAR product revenue in opencode
Copy an example into opencode, or ask in your own words.
Use SEC EDGAR product revenue for Merck (MRK), focusing on Keytruda, and build a table of the returned sales disclosures in this project.
Use SEC EDGAR product revenue for Bristol Myers Squibb (BMY), focusing on Opdivo, and build a comparison table using the reported periods returned.
Use SEC EDGAR product revenue to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from SEC EDGAR product revenue and tell me what changed since last week.
Check SEC EDGAR product revenue and summarize what you find in three bullet points.
How to set up SEC EDGAR product revenue in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 SEC EDGAR product revenue
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": "sec-gov/filings/product_revenue", "input": { "to": "<to>" } }'
Then paste one of the prompts above: opencode finds SEC EDGAR product revenue on Spiral, shows the price and runs it.
SEC EDGAR product revenue providers and prices
Spiral runs SEC EDGAR product revenue through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Cik | a number | SEC Central Index Key, with or without leading zeros. | |
| Limit | 1 to 4 | 1 | Reports to read, newest first. |
Every API field of SEC EDGAR · Product revenue is on its tool page: open its card above.
What can you do with SEC EDGAR product revenue in opencode?
Build research views for reported product sales, filing passages, or ownership-index publication checks. Coding agents can turn SEC EDGAR results into tables and comparison views in your project.
Prepare a pharmaceutical earnings brief
Retrieve Merck's reported product revenue, find relevant disclosures, and read management's discussion. Build a brief that separates sales figures from management's explanation.
Research licensing disclosures
Search Bristol Myers Squibb filings for licensing language, retrieve available product revenue, and read the report sections explaining the business. Assemble evidence for a licensing review.
Compare reported product performance
Collect available product revenue for Merck and Bristol Myers Squibb. Use filing search and report sections to investigate the disclosures behind differences in reported performance.
Check a product-sales claim
Test a claim about a public company's product sales against reported revenue and the filing's wording. Give an editor the supporting disclosures and any unresolved differences.
More on SEC EDGAR product revenue and opencode
Overview
SEC EDGAR product revenue in other agents
Questions about SEC EDGAR product revenue in opencode
Can opencode use SEC EDGAR product revenue?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run SEC EDGAR product revenue like any built-in tool.
How much does SEC EDGAR product revenue 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 SEC EDGAR product revenue in opencode?
No. Spiral runs SEC EDGAR product revenue on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up SEC EDGAR product revenue in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while SEC EDGAR product revenue runs?
SEC EDGAR product revenue runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does EDGAR include every filing submitted to the SEC?
Some filings are submitted on paper and are unavailable through EDGAR. Electronic results therefore do not represent every document submitted to the SEC.
When are daily filing indexes published?
The SEC starts updating daily indexes at about 10 p.m. Eastern each filing day. Publication usually takes a few hours, so 10 p.m. is the start of processing.
How far back does EDGAR full-text search reach?
Full-text search covers electronic filings submitted since 2001. That is the search coverage boundary, rather than a guarantee that every extraction reaches the same historical depth.
Does a correction replace the original filing?
Usually both remain available. The SEC says an original filing with an error and its corrective amendment typically stay on EDGAR, preserving the disclosure history.
Can I reuse public EDGAR filing content?
Yes. The SEC explicitly permits access to and reuse of EDGAR public filing content.
Start using SEC EDGAR product revenue in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


