How to Use COMMBUYS bid search in opencode
Returns matching solicitation summaries, including organizations, opening dates, status, and contract references where listed. Use it to investigate a specific purchasing need or agency instead of browsing every open bid.
Prompts to try with COMMBUYS bid search in opencode
Copy an example into opencode, or ask in your own words.
Use COMMBUYS bid search to find Massachusetts Bay Transportation Authority solicitations mentioning escalator, then add the returned summaries to this project's procurement database.
Use COMMBUYS bid search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from COMMBUYS bid search and tell me what changed since last week.
Check COMMBUYS bid search and summarize what you find in three bullet points.
Pull the newest data from COMMBUYS bid search and give me the result as a table.
How to set up COMMBUYS bid search 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 COMMBUYS bid search
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": "commbuys-com/public-tenders/search_bids", "input": { "buyer": "<buyer>" } }'
Then paste one of the prompts above: opencode finds COMMBUYS bid search on Spiral, shows the price and runs it.
COMMBUYS bid search providers and prices
Spiral runs COMMBUYS bid search 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 |
|---|---|---|---|
| Match | all or any | all |
|
| Status | 2BA, 2BCL, 2BE, 2BIA, 2BO, 2BPO, or 2BS | Status code: 2BA Approved, 2BCL Closed, 2BE Evaluated, 2BIA Intent To Award, 2BO Opened, 2BPO Bid to PO, 2BS Sent (open for responses). | |
| Type code | NS, SH, or SS | Solicitation type: NS Non-Statewide Solicitation, SH Historical Solicitation, SS Statewide Solicitation. |
Every API field of COMMBUYS · Search bids is on its tool page: open its card above.
What can you do with COMMBUYS bid search in opencode?
Build a Massachusetts procurement tracker that connects opportunity summaries with solicitation details and contract records. A coding agent can map the returned identifiers, dates, and document links into your project's database and review screens.
Build a Massachusetts procurement database
Collect open opportunities, add targeted search results, and store solicitation details alongside existing contract summaries. Keep solicitation numbers and purchase order numbers as separate identifiers.
Prepare a sector opportunity brief
Scan open bids for construction, software, or facilities work, investigate relevant solicitations, and compare their descriptions with known contracts in the same sector.
Research an agency's purchasing needs
Combine an agency’s open opportunities and search results with detailed requirements and known contract records. Produce a brief organized by purchasing need and deadline.
Publish a procurement research digest
Select relevant open opportunities, verify their descriptions and documents, and add context from identified contract records. Link each item to its public COMMBUYS source.
Create a bid review shortlist
Find relevant opportunities and compare opening dates, item descriptions, and available attachments before deciding which solicitations deserve a full response review.
Trace a solicitation to its contract
Where a search result supplies a blanket reference, compare the solicitation requirements with the corresponding purchase order summary and contract attachments.
More on COMMBUYS bid search and opencode
Overview
COMMBUYS bid search in other agents
Questions about COMMBUYS bid search in opencode
Can opencode use COMMBUYS bid search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run COMMBUYS bid search like any built-in tool.
How much does COMMBUYS bid search 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 COMMBUYS bid search in opencode?
No. Spiral runs COMMBUYS bid search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up COMMBUYS bid search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while COMMBUYS bid search runs?
COMMBUYS bid search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What geographic market does COMMBUYS cover?
COMMBUYS is Massachusetts’ procurement platform. Use these records to research Commonwealth purchasing rather than as a nationwide tender database.
How many opportunities appear on one results page?
The provider documents fixed 25-row pagination for bid searches and the open-bid list. A first page can therefore represent only part of the matching opportunities.
Can the public data show submitted quotes or bid holder lists?
These endpoints exclude submitted quotes, bidding actions, and bid holder lists. Their coverage is the public procurement record.
Can procurement documents change after they are posted?
Yes. The Massachusetts Convention Center Authority solicitation BD-27-1208-1208C-1208L-134002 records an amended RFR and an added addendum, showing why an earlier document list may become outdated.
What does a COMMBUYS search result tell me?
The results table has columns for solicitation number, organization, description, opening date, status, awarded vendors, and blanket references. Those summaries help identify records worth reading in detail.
Start using COMMBUYS bid search 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


