[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Texas SmartBuy grant details](https://spiral.ai/integrations/opencode/texas-smartbuy-grant-details)

# How to Use Texas SmartBuy grant details in opencode

Returns the details of one state agency grant opportunity, including published eligibility, funding information, and agency contacts. Use it to assess a specific opportunity after finding it in search.

|  |  |
| --- | --- |
| Model | Texas SmartBuy grant details |
| 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 details in opencode

- Use Texas SmartBuy grant search to find workforce opportunities. Use Texas SmartBuy grant details for the relevant results and create a comparison report with published eligibility, funding information, and agency contacts.
- Use Texas SmartBuy grant details 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 details and tell me what changed since last week.
- Check Texas SmartBuy grant details and summarize what you find in three bullet points.
- Pull the newest data from Texas SmartBuy grant details and give me the result as a table.

## How to set up Texas SmartBuy grant details in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 details**: 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/get_grant",
    "input": {
      "grant_number": "<grant_number>"
    }
  }'
```

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

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

## Texas SmartBuy grant details tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Pasted grant URL: https://www.txsmartbuy.gov/esbd-grants/<grant_number>. |
| grant_number |  | — | Grant opportunity number, e.g. 320-32027-00029. Either this or url. |

## What can you do with Texas SmartBuy grant details in opencode?

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 opencode guides](https://spiral.ai/integrations/opencode)

## Texas SmartBuy grant details in other agents

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

## More opencode guides

- [Texas SmartBuy commodity codes](https://spiral.ai/integrations/opencode/texas-smartbuy-commodity-codes)
- [Texas SmartBuy grant search](https://spiral.ai/integrations/opencode/texas-smartbuy-grant-search)
- [Texas SmartBuy award search](https://spiral.ai/integrations/opencode/texas-smartbuy-award-search)
- [Texas SmartBuy solicitation details](https://spiral.ai/integrations/opencode/texas-smartbuy-solicitation-details)
- [Texas SmartBuy award details](https://spiral.ai/integrations/opencode/texas-smartbuy-award-details)
- [Texas SmartBuy solicitation search](https://spiral.ai/integrations/opencode/texas-smartbuy-solicitation-search)

## Questions about Texas SmartBuy grant details in opencode

**Can opencode use Texas SmartBuy grant details?**

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

**How much does Texas SmartBuy grant details cost in opencode?**

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

**Do I need an Alexandria account to use Texas SmartBuy grant details in opencode?**

No. Spiral runs Texas SmartBuy grant 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 Texas SmartBuy grant details in opencode?**

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

**Does opencode wait while Texas SmartBuy grant details runs?**

Texas SmartBuy grant details runs in the background. opencode 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.

