[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Texas SmartBuy grant search](https://spiral.ai/integrations/muse-code/texas-smartbuy-grant-search)

# How to Use Texas SmartBuy grant search in Muse Code

Finds grant opportunities posted by Texas state agencies. Use it to build a funding shortlist before reviewing each opportunity’s eligibility and application information.

|  |  |
| --- | --- |
| Model | Texas SmartBuy grant search |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Texas SmartBuy grant search in Muse Code

- Use Texas SmartBuy grant search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Texas SmartBuy grant search and tell me what changed since last week.
- Check Texas SmartBuy grant search and summarize what you find in three bullet points.
- Pull the newest data from Texas SmartBuy grant search and give me the result as a table.
- Check Texas SmartBuy grant search every morning and tell me only when something changed.

## How to set up Texas SmartBuy grant search in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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.

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

### Call the Spiral API

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

2. **Run Texas SmartBuy grant 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": "txsmartbuy-gov/public-tenders/search_grants",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Texas SmartBuy grant search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Texas SmartBuy grant search tools and prices

- [Texas SmartBuy ESBD · Search grants](https://spiral.ai/tools/alexandria/txsmartbuy-gov/public-tenders/search_grants) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 10000 | 1 | 1-based page; 24 rows per page (fixed by the site). Use next_page from the previous call. |
| keyword |  | — | Free-text keyword. Bare keyword searches over the whole ESBD can take a minute upstream; combine with status, agency_number or dates when possible. |
| agency_id |  | — | Posting agency id from facets.agencies (e.g. 8542 Texas Workforce Commission). Pattern: ^[0-9]{1,12}$. |
| include_expired |  | — | Also return postings whose deadline has passed (the site's expired=yes). |
| activity_category_id |  | — | Id from facets.activity_categories. Pattern: ^[0-9]{1,12}$. |
| eligibility_activity_id |  | — | Id from facets.eligibility_activities. Pattern: ^[0-9]{1,12}$. |

## What can you do with Texas SmartBuy grant search in Muse Code?

Build a Texas procurement or grant research report from ESBD records. A coding agent can organize buyer identities, commodity codes, notices, awards, and funding details in the project’s reporting workflow.

### Find workforce funding opportunities

Search Texas grant postings for workforce programs, then review the published eligibility and funding information for opportunities worth pursuing.

### Screen grants for a nonprofit

Find opportunities relevant to a nonprofit’s services and compare the published eligibility requirements before assigning application work.

### Prepare a grant review meeting

Turn a grant search shortlist into concise briefs with program descriptions, published funding information, eligibility, and agency contact links.

### Compare state funding programs

Find grant opportunities addressing the same public need and compare their published scope, eligibility, and funding information.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Texas SmartBuy grant search in other agents

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

## More Muse Code guides

- [Texas SmartBuy grant details](https://spiral.ai/integrations/muse-code/texas-smartbuy-grant-details)
- [Texas SmartBuy solicitation details](https://spiral.ai/integrations/muse-code/texas-smartbuy-solicitation-details)
- [Texas SmartBuy commodity codes](https://spiral.ai/integrations/muse-code/texas-smartbuy-commodity-codes)
- [Texas SmartBuy solicitation search](https://spiral.ai/integrations/muse-code/texas-smartbuy-solicitation-search)
- [Texas SmartBuy award search](https://spiral.ai/integrations/muse-code/texas-smartbuy-award-search)
- [The Companies API company email patterns](https://spiral.ai/integrations/muse-code/the-companies-api-company-email-patterns)

## Questions about Texas SmartBuy grant search in Muse Code

**Can Muse Code use Texas SmartBuy grant search?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Texas SmartBuy grant search like any built-in tool.

**How much does Texas SmartBuy grant search cost in Muse Code?**

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

**Do I need an Alexandria account to use Texas SmartBuy grant search in Muse Code?**

No. Spiral runs Texas SmartBuy grant search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Texas SmartBuy grant search in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Texas SmartBuy grant search runs?**

Texas SmartBuy grant search runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**What does the award search cover?**

It covers the ESBD section labeled Awards No Solicitations. An empty result there does not establish that an agency has never awarded a contract.

**How many solicitation results fit on a page?**

The documented solicitation search response uses pages of 24 results and includes pagination metadata. A single page should not be treated as the complete search.

**What timing information does ESBD show?**

Solicitation results show a response due date and time, a posting date, and a last-updated timestamp. These distinguish the submission deadline from when the notice was posted or changed.

**What can I learn from a grant’s details?**

Published grant details can include eligibility, funding amounts, and an agency contact. Use those details to assess the opportunity beyond its search listing.

**How are Texas procurement commodity codes structured?**

NIGP codes use three digits for the general class and two more for the item. The class identifies a broader category than the full class-item code.

