How to Use FRED related tags in opencode
Find tags attached to economic series that match your chosen tags, with notes, popularity, and series counts. Use the results to discover which topics, geographies, and frequencies can narrow your search.
Prompts to try with FRED related tags in opencode
Copy an example into opencode, or ask in your own words.
Use FRED related tags for monetary aggregates and weekly series, then show the returned tags and series counts in this project's search refinement panel.
Use FRED related tags for US monthly employment series, then add the returned source and seasonal adjustment choices to this project's discovery screen.
Use FRED related tags to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from FRED related tags and tell me what changed since last week.
Check FRED related tags and summarize what you find in three bullet points.
How to set up FRED related tags 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 FRED related tags
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": "fred/tags/related", "input": { "tag_names": "<tag_names>" } }'
Then paste one of the prompts above: opencode finds FRED related tags on Spiral, shows the price and runs it.
FRED related tags providers and prices
Spiral runs FRED related tags 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 |
|---|---|---|---|
| Limit | a number up to 1000 | 1000 | Records to return. The default is the maximum, so a naive call is a large response rather than a page. |
| Offset | a number | 0 | Records to skip. Page by adding |
| Order by | series_count, popularity, created, name, or group_id | series_count | Which tag attribute to sort by. |
| Sort order | asc or desc | asc | Sort direction. |
| Tag group ID | freq, gen, geo, geot, rls, seas, or src | Narrow to one kind of tag: freq frequency, gen general concept, geo geography, geot geography type, rls release, seas seasonal adjustment, src source. |
Every API field of FRED · Related tags is on its tool page: open its card above.
What can you do with FRED related tags in opencode?
Build an economic indicator picker that uses FRED's own vocabulary and series descriptions. An agent can connect topic filters to matching series IDs and show units, frequency, and coverage dates before a user chooses an indicator.
Choose indicators for a US economic briefing
Find FRED's labels for GDP and employment, inspect related geography and frequency tags, and shortlist matching series with their units and coverage dates.
Scope a country comparison
Look up geography tags for Slovenia and the United States, inspect available topic combinations, and identify candidate series before comparing their definitions.
Find monthly labor market indicators
Discover employment and unemployment labels, check which related tags support monthly research, and review the matching series descriptions.
Separate seasonal adjustment choices
Identify seasonal adjustment labels, inspect their relationship to a chosen economic topic, and find series whose adjustment descriptions fit the analysis.
Prepare a food inflation reading list
Find food-related vocabulary, inspect associated geography and source tags, and assemble a shortlist of series descriptions for a Slovenia research assignment.
Investigate weekly monetary indicators
Look up monetary aggregates terminology, explore tags associated with weekly series, and identify series IDs and definitions for further research.
More on FRED related tags and opencode
Overview
FRED related tags in other agents
Questions about FRED related tags in opencode
Can opencode use FRED related tags?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FRED related tags like any built-in tool.
How much does FRED related tags cost in opencode?
$0.013 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 FRED related tags in opencode?
No. Spiral runs FRED related tags on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up FRED related tags in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while FRED related tags runs?
FRED related tags runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does FRED cover only US economic data?
No. FRED includes national and international economic series from public and private sources. Geography tags help identify which places are represented in a search.
Will these results include GDP, inflation, or employment values?
These requests return tags or series descriptions. Numerical observations require FRED's separate series observations request.
How many results can one request return?
Each of these FRED requests returns at most 1,000 records. Responses include a total count and offset, so a larger result set requires additional pages.
Why does adding another tag reduce the results?
FRED requires series to match every included tag. A search combining Slovenia and food therefore targets series carrying both labels.
What kinds of distinctions do FRED tags describe?
FRED has eight filter sections, including geography, frequency, source, release, seasonal adjustment, and citation and copyright. These distinctions help separate otherwise similar economic series.
Start using FRED related tags 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


