[Integrations](https://spiral.ai/integrations) › [Instinct](https://spiral.ai/integrations/instinct) › [Mass.gov page search](https://spiral.ai/integrations/instinct/mass-gov-page-search)

# How to Use Mass.gov page search in Instinct

Finds Mass.gov pages for services, application instructions, agencies, and offices. Use it to identify the official page before requesting its detailed content.

|  |  |
| --- | --- |
| Model | Mass.gov page search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Mass.gov page search in Instinct

- Once a month, use Mass.gov page search to inventory returned MassHealth program overview pages and identify titles or source links added or removed since the previous check.
- Every Monday at 9am: use Mass.gov page search to look this up and give me the result as a table.
- Pull the latest numbers from Mass.gov page search and tell me what changed since last week.
- Check Mass.gov page search and summarize what you find in three bullet points.
- Pull the newest data from Mass.gov page search and give me the result as a table.

## How to set up Mass.gov page search in Instinct

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

### Use the Spiral skill

1. **Send Instinct 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 Spiral's MCP server

1. **Create an API key**: In the console, open API keys and create a key for Instinct. Copy it.

2. **Send Instinct this message**: Instinct reads Spiral's skill and asks for your API key.

```text
set up https://spiral.ai/SKILL.md
```

3. **Give Instinct the key**: When Instinct asks for the key, add it where Instinct keeps secrets, never in the chat itself.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Mass.gov page search**: One request; the result comes back by polling or a webhook.

```bash
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": "mass-gov/public-services/search_pages",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Instinct finds Mass.gov page search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/instinct

## Mass.gov page search tools and prices

- [Mass.gov · Search pages](https://spiral.ai/tools/alexandria/mass-gov/public-services/search_pages) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| type | service_page, how_to_page, info_details, guide_page, topic_page, org_page, location | service_page | Drupal content type to search. service_page: program overview; how_to_page: application steps and methods; org_page: agencies; location: offices; topic_page, guide_page, info_details: supporting content. |
| limit | 1 to 50 | 20 | Page size; the JSON:API caps pages at 50. |
| offset | 0 to 100000 | 0 | Offset of the first row; pass `next_offset` from the previous page. |

## What can you do with Mass.gov page search in Instinct?

Keep a Massachusetts referral guide aligned with changes in published Mass.gov content. Compare scheduled retrievals and report changes to program descriptions, application guidance, forms, agency information, or office listings.

### Prepare a SNAP referral packet

Gather the program overview, application instructions, printable forms, responsible agency, and nearby assistance offices into a source-linked packet for a Massachusetts food pantry.

### Build a library's benefits resource directory

Assemble public MassHealth and SNAP resources with separate links for program information, application steps, forms, agency contacts, and in-person help.

### Refresh a nonprofit's referral guide

Compare retrieved Mass.gov content with the guide's existing program descriptions, application routes, form links, agency contacts, and office addresses. Produce a list of supported corrections for an editor.

### Train public-service navigators

Create a worked SNAP referral example that distinguishes the program overview, application process, downloadable forms, agency responsibility, and physical assistance locations.

### Check agency responsibility

Locate the agency responsible for a Massachusetts program and compare its public contact information with the program's overview before updating a referral directory.

### Prepare an in-person assistance handout

Use published office addresses and application instructions to prepare a Worcester assistance handout, retaining any source descriptions of limited-service kiosks.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Instinct guides](https://spiral.ai/integrations/instinct)

## Mass.gov page search in other agents

- [Amp](https://spiral.ai/integrations/amp/mass-gov-page-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/mass-gov-page-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/mass-gov-page-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/mass-gov-page-search)
- [Cline](https://spiral.ai/integrations/cline/mass-gov-page-search)
- [Codex](https://spiral.ai/integrations/codex/mass-gov-page-search)
- [Cursor](https://spiral.ai/integrations/cursor/mass-gov-page-search)
- [Devin](https://spiral.ai/integrations/devin/mass-gov-page-search)
- [dots](https://spiral.ai/integrations/dots/mass-gov-page-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/mass-gov-page-search)
- [Gemini](https://spiral.ai/integrations/gemini/mass-gov-page-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/mass-gov-page-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/mass-gov-page-search)
- [goose](https://spiral.ai/integrations/goose/mass-gov-page-search)
- [Grok](https://spiral.ai/integrations/grok/mass-gov-page-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/mass-gov-page-search)
- [Hermes](https://spiral.ai/integrations/hermes/mass-gov-page-search)
- [Manus](https://spiral.ai/integrations/manus/mass-gov-page-search)
- [Muse](https://spiral.ai/integrations/muse/mass-gov-page-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/mass-gov-page-search)
- [n8n](https://spiral.ai/integrations/n8n/mass-gov-page-search)
- [Notion](https://spiral.ai/integrations/notion/mass-gov-page-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/mass-gov-page-search)
- [opencode](https://spiral.ai/integrations/opencode/mass-gov-page-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/mass-gov-page-search)
- [Raycast](https://spiral.ai/integrations/raycast/mass-gov-page-search)
- [VS Code](https://spiral.ai/integrations/vscode/mass-gov-page-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/mass-gov-page-search)
- [Zapier](https://spiral.ai/integrations/zapier/mass-gov-page-search)

## More Instinct guides

- [Mass.gov office locations](https://spiral.ai/integrations/instinct/mass-gov-office-locations)
- [Mass.gov service overview](https://spiral.ai/integrations/instinct/mass-gov-service-overview)
- [Mass.gov application instructions](https://spiral.ai/integrations/instinct/mass-gov-application-instructions)
- [Montana county tax details](https://spiral.ai/integrations/instinct/montana-county-tax-details)
- [Mass.gov application forms](https://spiral.ai/integrations/instinct/mass-gov-application-forms)
- [Montana county tax tables](https://spiral.ai/integrations/instinct/montana-county-tax-tables)

## Questions about Mass.gov page search in Instinct

**Can Instinct use Mass.gov page search?**

Yes. Add Spiral to Instinct as an MCP server, and Instinct can find and run Mass.gov page search like any built-in tool.

**How much does Mass.gov page search cost in Instinct?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Instinct plan is separate.

**Do I need an Alexandria account to use Mass.gov page search in Instinct?**

You need no Alexandria account. Instinct uses one Spiral API key for every tool, and Spiral runs Mass.gov page search on its own Alexandria account.

**How long does it take to set up Mass.gov page search in Instinct?**

About two minutes: create an API key, then send Instinct this message, then give Instinct the key.

**Does Instinct wait while Mass.gov page search runs?**

Mass.gov page search runs in the background. Instinct starts the run, checks on it and gives you the json when it's ready.

**Which services does the Mass.gov data cover?**

The documented coverage includes Massachusetts programs such as SNAP, MassHealth, TAFDC, heating assistance, WIC, and child care. It covers the public pages, forms, agencies, and offices that Mass.gov publishes for those services.

**Is this public guidance or individual benefit case data?**

The documented source is Mass.gov's public Drupal content: service pages, application instructions, agency information, offices, and forms. Individual benefit case records fall outside that documented coverage.

**How current is Mass.gov's published information?**

Mass.gov recommends monthly editorial checks for problems including obsolete content and broken links. That recommendation does not establish a guaranteed update interval for any page or API response.

**Can one list request return every matching record?**

Mass.gov's JSON:API caps list pages at 50 records. Longer result sets require additional pages; the provider documents continuing from the next offset returned by the preceding page.

**Where can I look for an older version of a Mass.gov page?**

Mass.gov says its content is archived through Archive-It in the Wayback Machine. Those snapshots provide a separate route for investigating earlier published guidance.

