View as Markdown
Recreation.gov icon

Recreation.gov ACTION

Search Campsites

Searchs campsites with the given query. If no query given, returns campsites from the beginning. Returning campsite number is limited to 1000. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Recreation.gov account once, then configure and run Search Campsites from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "recreation_gov-search-campsites",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    recreation_gov: { authProvisionId: "apn_xxxxxxx" },
    query: "Query",
    offset: 10,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Search Campsites inputs
Property Type Description
query Query string
Query filter criteria. Searches on campsite name, type, loop, type of use (Overnight/Day), campsite accessible (Yes/No)
Optional
offset Offset integer
Used when all results could not be retrieved due to limit of 1000. Set this offset to fetch next resources.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
recreation_gov-search-campsites
Version
0.0.3
App
Recreation.gov
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes