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

# How to Use Texas SmartBuy agency directory in Muse Code

Returns agency names and their ESBD search numbers. Use it to identify the right public buyer before researching its solicitations or purchase-order awards.

|  |  |
| --- | --- |
| Model | Texas SmartBuy agency directory |
| 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 agency directory in Muse Code

- Use Texas SmartBuy agency directory to find the Health and Human Services Commission and Texas Department of Transportation. Add their returned names and agency numbers to the project’s public-buyer reference data.
- Use Texas SmartBuy agency directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Texas SmartBuy agency directory and tell me what changed since last week.
- Check Texas SmartBuy agency directory and summarize what you find in three bullet points.
- Pull the newest data from Texas SmartBuy agency directory and give me the result as a table.

## How to set up Texas SmartBuy agency directory 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 agency directory**: 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/list_agencies",
    "input": {
      "query": "<query>"
    }
  }'
```

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

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

## Texas SmartBuy agency directory tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Case-insensitive substring to filter agency names (e.g. 'Health'). |

## What can you do with Texas SmartBuy agency directory 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.

### Build a bid shortlist

Identify the buyer and commodity category, find relevant solicitations, review their scope, and compare related purchase-order awards before deciding which bids deserve attention.

### Prepare a public-buyer research brief

Resolve a Texas agency’s identity, organize its procurement notices by commodity code, and summarize recorded purchases alongside current requirements.

### Assess a new service category

Check which commodity codes match a proposed service, identify public buyers, and compare solicitation requirements with relevant award descriptions and vendors.

### Publish a procurement research bulletin

Organize notices and recorded awards by buyer and commodity category, then add scope summaries, deadlines, vendors, and links to supporting records.

## Overview

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

## Texas SmartBuy agency directory in other agents

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

## More Muse Code guides

- [Texas Comptroller sales tax permit search](https://spiral.ai/integrations/muse-code/texas-comptroller-sales-tax-permit-search)
- [Texas SmartBuy award details](https://spiral.ai/integrations/muse-code/texas-smartbuy-award-details)
- [Texas Comptroller sales tax permit holder](https://spiral.ai/integrations/muse-code/texas-comptroller-sales-tax-permit-holder)
- [Texas SmartBuy award search](https://spiral.ai/integrations/muse-code/texas-smartbuy-award-search)
- [Texas Comptroller sales tax outlets](https://spiral.ai/integrations/muse-code/texas-comptroller-sales-tax-outlets)
- [Texas SmartBuy commodity codes](https://spiral.ai/integrations/muse-code/texas-smartbuy-commodity-codes)

## Questions about Texas SmartBuy agency directory in Muse Code

**Can Muse Code use Texas SmartBuy agency directory?**

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

**How much does Texas SmartBuy agency directory 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 agency directory in Muse Code?**

No. Spiral runs Texas SmartBuy agency directory 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 agency directory 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 agency directory runs?**

Texas SmartBuy agency directory 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.

