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

Cursor · Lead Gen

How to Use USAspending agency profile in Cursor

Returns a federal agency's mission, website, subagency count, and emergency funding codes with legislative references. Use it to prepare an agency brief or identify relevant funding laws before researching individual awards.

Prompts to try with USAspending agency profile in Cursor

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

Use USAspending agency profile for NASA for fiscal year 2025 and populate the agency directory in this project with its returned name, abbreviation, mission, and website.

USAspending agency profileCursor
Try asking
  • Use USAspending agency profile for the Department of Veterans Affairs for fiscal year 2025 and add its returned mission and subagency count to our research brief template.

  • Use USAspending agency profile for the Department of Health and Human Services for fiscal years 2021 and 2025, then create a project report comparing the returned emergency funding codes.

  • Use USAspending agency profile for the Department of the Treasury for fiscal year 2025 and add its returned congressional budget justification link to our agency reference page.

  • Use USAspending agency profile for the Department of Agriculture for fiscal year 2025 and add any returned agency data notes to the source notes in this project.

How to set up USAspending agency profile in Cursor

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to Cursor on the console's Agents & MCP page, or add this to .cursor/mcp.json (one project) or ~/.cursor/mcp.json (every project):

    {
      "mcpServers": {
        "spiral": { "url": "https://api.spiral.ai/mcp" }
      }
    }
  2. Sign in

    Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

Use the Spiral skill

  1. Send Cursor 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 USAspending agency profile

    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": "usaspending-gov/agencies/agency",
        "input": {
          "toptier_code": "<toptier_code>"
        }
      }'

Then paste one of the prompts above: Cursor finds USAspending agency profile on Spiral, shows the price and runs it.

USAspending agency profile providers and prices

Spiral runs USAspending agency profile through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
USAspending · Agency
usaspending-gov/agencies/agency

Settings you can ask for

Ask Cursor for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Fiscal year2008 to 2035

Omitted = the current fiscal year.

Every API field of USAspending · Agency is on its tool page: open its card above.

What can you do with USAspending agency profile in Cursor?

Build an agency directory populated with USAspending mission statements, official links, and subagency counts. A coding agent can also turn returned emergency funding references into a fiscal-year comparison in your project.

Prepare an agency research brief

Turn an agency's returned mission, website, and subagency count into a short briefing before a public sector market review.

Enrich an agency directory

Add official names, abbreviations, mission statements, and website links to records for federal agencies.

Find budget justification references

Collect the returned congressional budget justification links for agencies under review so researchers can continue into their budget documents.

Identify emergency funding authorities

List the emergency funding codes reported for an agency and fiscal year, alongside the returned public law titles and legislative links.

Compare reported funding codes across years

Request an agency's overview for separate fiscal years and identify which emergency funding codes appear in each response.

Review agency data disclosures

Bring returned agency data notes into a research brief so analysts see source-specific disclosures beside the agency profile.

Questions about USAspending agency profile in Cursor

Can Cursor use USAspending agency profile?

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run USAspending agency profile like any built-in tool.

How much does USAspending agency profile cost in Cursor?

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

Do I need an Alexandria account to use USAspending agency profile in Cursor?

No. Spiral runs USAspending agency profile on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up USAspending agency profile in Cursor?

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

Does Cursor wait while USAspending agency profile runs?

USAspending agency profile runs in the background. Cursor starts the run, checks on it and gives you the json when it's ready.

Does an agency profile include individual awards or spending totals?

The official overview returns one agency profile with its mission, website, subagency count, and emergency funding references. Its response does not include individual award records, award obligation totals, or transaction counts.

How fresh is USAspending data?

USAspending refreshes published data after a nightly processing run, but agency account files arrive monthly. A daily refresh does not mean the underlying agency financial information was reported that day.

Does USAspending cover every part of the federal government?

No. Its list of non-reporting entities includes the legislative branch and most of the judicial branch, with the Court of Appeals of Veterans Claims identified as an exception.

Are published agency records guaranteed to be accurate?

No. GAO documented agency submissions with missing or inaccurate information, including values that disagreed with agency records. USAspending is a reported-data source, not a guarantee of completeness.

What do the emergency funding references tell me?

They identify Disaster Emergency Fund Codes and can provide the associated public law, law title, and official legislative links. These references identify funding authorities; the agency overview does not provide spending amounts for each code.

Get started

Start using USAspending agency profile in Cursor

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

Paste this into Cursor:

Set up Cursor

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