How to Use Recreation.gov campground and permit search in opencode
Finds campgrounds, recreation areas, and permits by destination, location, or stay dates. Use it to discover places and obtain the identifiers needed to inspect sites, rules, or permit quotas.
Prompts to try with Recreation.gov campground and permit search in opencode
Copy an example into opencode, or ask in your own words.
Use Recreation.gov campground and permit search to find campgrounds matching Yosemite National Park, then add their names, IDs, and source links to the project's destination comparison view.
Use Recreation.gov campground and permit search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Recreation.gov campground and permit search and tell me what changed since last week.
Check Recreation.gov campground and permit search and summarize what you find in three bullet points.
Pull the newest data from Recreation.gov campground and permit search and give me the result as a table.
How to set up Recreation.gov campground and permit 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 Recreation.gov campground and permit 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": "recreation-gov/camping-availability/search", "input": { "size": 20 } }'
Then paste one of the prompts above: opencode finds Recreation.gov campground and permit search on Spiral, shows the price and runs it.
Recreation.gov campground and permit search providers and prices
Spiral runs Recreation.gov campground and permit 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 |
|---|---|---|---|
| Size | 1 to 50 | 20 | Results per page (1-50). |
| Sort | available or score |
| |
| Start | a number from 0 | 0 | Offset of the first result; use |
| Latitude | a number | Search centre latitude; requires | |
| Longitude | a number | Search centre longitude; requires | |
| Entity type | campground, recarea, permit, ticketfacility, tour, timedentry, vehiclepermit, venuereservations and 4 more | campground | Inventory type to return. |
| Radius miles | 1 to 2000 | Search radius around the centre, miles (default 50 when coordinates are given). |
Every API field of Recreation.gov · Search is on its tool page: open its card above.
What can you do with Recreation.gov campground and permit search in opencode?
Build a federal recreation planner that turns destination names into campground, campsite, and permit records. Use Recreation.gov location details, visitor feedback, and availability to populate the project's trip comparisons.
Pair a wilderness hike with a campground stay
Resolve a Yosemite destination, compare wilderness entry quotas, and find a campground for the nights before or after the hike. Check individual site details and visitor feedback before selecting a camping option.
Shortlist dates for an outfitter's scouting trip
Find wilderness permit entry dates and nearby campground openings for a guide's scouting visit. Compare campground rules and individual campsite suitability before choosing the dates.
Choose camping stops for a public lands road trip
Find federal campgrounds around each planned destination, then compare open nights, facilities, individual sites, and visitor comments. Produce a shortlist of camping stops with a site choice for each stay.
Compare alternative hiking destinations
Compare Yosemite and another federal recreation destination using available wilderness entry dates and nearby campground options. Read campground rules and visitor reviews to decide which destination deserves further planning.
Find a stay without changing campsites
Search a destination, inspect the monthly availability calendar, and compare individual campsite openings. Look for one site with consecutive available nights across the proposed stay.
Compare wilderness entry points
Resolve a park or wilderness name, find its permit record, and compare the published daily quotas across entry points. Build a list of alternative entry dates for a backpacking trip.
Build a federal campground comparison directory
Resolve destination names and collect campground records, campsite listings, and visitor feedback. Organize the directory by recreation destination so readers can compare locations and inspect their site choices.
More on Recreation.gov campground and permit search and opencode
Overview
Recreation.gov campground and permit search in other agents
Questions about Recreation.gov campground and permit search in opencode
Can opencode use Recreation.gov campground and permit search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Recreation.gov campground and permit search like any built-in tool.
How much does Recreation.gov campground and permit 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 Recreation.gov campground and permit search in opencode?
No. Spiral runs Recreation.gov campground and permit 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 Recreation.gov campground and permit search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Recreation.gov campground and permit search runs?
Recreation.gov campground and permit search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does Recreation.gov cover every campground in the United States?
No. Its content focuses on federally managed recreation destinations, and participating agencies and facilities join voluntarily. A missing location does not establish that the campground does not exist.
How far ahead does Recreation.gov publish bookable camping dates?
Most campsites can be booked six months before arrival. Individual facilities set their own booking windows, so use the location's published window when evaluating future dates.
How quickly can campground availability change?
Recreation.gov says some popular campgrounds book up in minutes. An opening is useful for choosing where to try, but it can disappear before you reserve it.
Who maintains the location information and reservation rules?
Individual facilities update their content and set their booking windows. Policies on a specific location's page supersede Recreation.gov's general policies.
What experiences do Recreation.gov reviews describe?
The review system invites visitors to rate and comment on locations they reserved through Recreation.gov, including their experience with mobile coverage. These are visitor reports about reserved locations.
Start using Recreation.gov campground and permit 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


