Spiral gives your agent every tool with one account. Browse the tools →

opencode · Public Records

How to Use Data.gov.au resource details in opencode

Returns catalog metadata for one resource listed in a dataset. Use it to inspect a specific file or linked source before retrieving its contents.

Prompts to try with Data.gov.au resource details in opencode

Copy an example into opencode, or ask in your own words.

Locate a CSV resource published by the City of Greater Geelong and use Data.gov.au resource details to add its catalog metadata and source link to this project's data inventory.

Data.gov.au resource detailsopencode
Try asking
  • Use Data.gov.au resource details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Data.gov.au resource details and tell me what changed since last week.

  • Check Data.gov.au resource details and summarize what you find in three bullet points.

  • Pull the newest data from Data.gov.au resource details and give me the result as a table.

How to set up Data.gov.au resource details in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. 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
  2. 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
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Data.gov.au resource details

    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": "data-gov-au/open-data/get_resource",
        "input": {
          "resource_id": "<resource_id>"
        }
      }'

Then paste one of the prompts above: opencode finds Data.gov.au resource details on Spiral, shows the price and runs it.

Data.gov.au resource details providers and prices

Spiral runs Data.gov.au resource details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
data.gov.au open data catalogue · Get resource
data-gov-au/open-data/get_resource

What can you do with Data.gov.au resource details in opencode?

Build a source-linked Australian public data report or map in your project. A coding agent can use Data.gov.au to find publishers, inspect dataset resources, and retrieve available table rows for the implementation.

Build a regional evidence pack

Identify relevant government publishers, find datasets about Melbourne, inspect their resources, and extract available DataStore rows for a regional comparison. Keep each result tied to its source dataset.

Prepare council asset data for a map

Find a council's catalog entry and published asset datasets, inspect the resources, and retrieve relevant rows where DataStore access is available. Use the resulting locations to prepare a map of public infrastructure.

Compare published reporting years

Identify the publishing agency and locate a dataset with resources for multiple years. Inspect each resource and extract comparable DataStore rows where available before calculating changes.

Audit an agency's published data

Resolve the agency's catalog name, inventory its datasets and resources, and sample accessible DataStore tables. Produce a report showing which sources support row analysis and which require separate file retrieval.

Prepare source attribution for a report

Find the datasets used in an Australian public policy report and inspect their dataset and resource records. Assemble the publishing organization, jurisdiction, title, sourcing date, and URL for attribution.

Watch for resource changes

Repeat a catalog search and compare dataset and resource metadata with an earlier snapshot. Flag changed resources for review before refreshing a downstream analysis.

Diagnose a missing data extract

Inspect a dataset and its selected resource to establish where the data lives. If the resource is stored in DataStore, query its rows; otherwise identify the linked file that needs separate retrieval.

Questions about Data.gov.au resource details in opencode

Can opencode use Data.gov.au resource details?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Data.gov.au resource details like any built-in tool.

How much does Data.gov.au resource details 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 Data.gov.au resource details in opencode?

No. Spiral runs Data.gov.au resource details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Data.gov.au resource details in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Data.gov.au resource details runs?

Data.gov.au resource details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does Data.gov.au cover only federal government data?

It includes data published by Australian federal, state, and local government agencies. A search can therefore surface national statistics alongside council datasets.

How fresh and accurate is the data?

Data.gov.au explicitly does not guarantee dataset quality or timeliness. Its catalog should not be treated as a promise that every published dataset reflects current conditions.

Does a dataset search return the underlying table rows?

Search results represent datasets. Row access requires a resource loaded into DataStore; a resource can instead point to a file hosted elsewhere.

How much historical data can I retrieve?

Historical coverage depends on the resources supplied for the dataset. CKAN supports separate resources for different years, so inspect those resources before planning a year-to-year comparison.

What attribution does Data.gov.au request?

Its requested attribution includes the publishing organization, jurisdiction, dataset title, date sourced, and dataset URL. Preserve those details when preparing a report or derived dataset.

Get started

Start using Data.gov.au resource details in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options