How to Use Mass.gov agency details in Windsurf
Returns an agency's public information, contacts, and application links. Use it to identify the organization responsible for a program and its published contact routes.
Prompts to try with Mass.gov agency details in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use Mass.gov agency details for https://www.mass.gov/orgs/department-of-transitional-assistance and compare its published contact information with our DTA directory entry.
Use Mass.gov agency details to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Mass.gov agency details and tell me what changed since last week.
Check Mass.gov agency details and summarize what you find in three bullet points.
Pull the newest data from Mass.gov agency details and give me the result as a table.
How to set up Mass.gov agency details in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf 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 Mass.gov agency 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": "mass-gov/public-services/organization", "input": { "nid": 1 } }'
Then paste one of the prompts above: Windsurf finds Mass.gov agency details on Spiral, shows the price and runs it.
Mass.gov agency details providers and prices
Spiral runs Mass.gov agency details through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Nid | a number from 1 | Drupal node id of the organization page (from search_pages or a link's |
Every API field of Mass.gov · Organization is on its tool page: open its card above.
What can you do with Mass.gov agency details in Windsurf?
Build a Massachusetts service directory that links residents to published program guidance, forms, and assistance. Use Mass.gov content to populate the project and identify supported changes to existing referral entries.
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.
More on Mass.gov agency details and Windsurf
Overview
Mass.gov agency details in other agents
Questions about Mass.gov agency details in Windsurf
Can Windsurf use Mass.gov agency details?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Mass.gov agency details like any built-in tool.
How much does Mass.gov agency details cost in Windsurf?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use Mass.gov agency details in Windsurf?
No. Spiral runs Mass.gov agency 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 Mass.gov agency details in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Mass.gov agency details runs?
Mass.gov agency details runs in the background. Windsurf 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.
Start using Mass.gov agency details in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


