[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [DeFiLlama yield pools](https://spiral.ai/integrations/grok/defillama-yield-pools)

# How to Use DeFiLlama yield pools in Grok

Returns current DeFi pool data, including chain, project, asset symbol, APY, and total value locked. Use it to compare pools and identify the exact pool to examine historically.

|  |  |
| --- | --- |
| Model | DeFiLlama yield pools |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with DeFiLlama yield pools in Grok

- Use DeFiLlama yield pools to compare Aave V3 USDC pools on Ethereum and Arbitrum by current APY and total value locked.
- Use DeFiLlama yield pools to list the largest USDC pools on Ethereum by total value locked and compare their reported APYs.
- Use DeFiLlama yield pools to look this up and give me the result as a table.
- Pull the latest numbers from DeFiLlama yield pools and tell me what changed since last week.
- Check DeFiLlama yield pools and summarize what you find in three bullet points.

## How to set up DeFiLlama yield pools in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 DeFiLlama yield pools**: 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": "defillama-com/crypto/yield_pools",
    "input": {
      "sort": "tvl"
    }
  }'
```

Then paste one of the prompts above: Grok finds DeFiLlama yield pools on Spiral, shows the price and runs it.

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

## DeFiLlama yield pools tools and prices

- [DeFiLlama · Yield pools](https://spiral.ai/tools/alexandria/defillama-com/crypto/yield_pools) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | tvl, apy | tvl | `tvl` (default) or `apy`, both descending. |
| chain |  | — | Chain name as DeFiLlama writes it; case-insensitive. |
| limit | 1 to 100 | 20 | Items per page (1..100, default 20). |
| symbol |  | — | Case-insensitive substring of the pool symbol (e.g. `USDC`). |
| project |  | — | Project slug (e.g. `lido`, `aave-v3`); case-insensitive. |
| min_tvl_usd |  | — | Drop pools below this TVL. |

## What can you do with DeFiLlama yield pools in Grok?

Get a research brief comparing stablecoin supply with DeFi pool yields. A chat app can explain current rankings, calculate historical changes, and compare a pool's present APY with its past observations.

### Weekly Ethereum stablecoin report

Combine current stablecoin supply rankings with supply changes, then compare current stablecoin pool APYs with their historical APY and TVL. Produce a research brief that separates asset supply from pool activity.

### Compare chains

Compare USDC supply on Ethereum and Arbitrum alongside USDC pool APYs and TVL. Use the historical series to see whether the current differences persisted over the available period.

### USDC research brief

Identify USDC in the stablecoin listing, examine its supply history, and compare pools using USDC. Add pool histories to show how their yields and deposited value changed.

### Review a market event

Examine stablecoin supply and pool APY and TVL before and after a selected event date. Use current listings to identify the assets and pools, then describe the historical changes without assuming the event caused them.

### Check yield persistence

Find USDC pools on Ethereum and compare their current APYs with their historical ranges. Show the accompanying TVL changes to give each yield comparison context.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## DeFiLlama yield pools in other agents

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

## More Grok guides

- [DeFiLlama yield pool history](https://spiral.ai/integrations/grok/defillama-yield-pool-history)
- [ECB dataset search](https://spiral.ai/integrations/grok/ecb-dataset-search)
- [DeFiLlama token prices](https://spiral.ai/integrations/grok/defillama-token-prices)
- [ECB economic time series](https://spiral.ai/integrations/grok/ecb-economic-time-series)
- [DeFiLlama token price history](https://spiral.ai/integrations/grok/defillama-token-price-history)
- [ECB exchange rates](https://spiral.ai/integrations/grok/ecb-exchange-rates)

## Questions about DeFiLlama yield pools in Grok

**Can Grok use DeFiLlama yield pools?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run DeFiLlama yield pools like any built-in tool.

**How much does DeFiLlama yield pools cost in Grok?**

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

**Do I need an Alexandria account to use DeFiLlama yield pools in Grok?**

No. Spiral runs DeFiLlama yield pools on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up DeFiLlama yield pools in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while DeFiLlama yield pools runs?**

DeFiLlama yield pools runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

**How fresh are DeFiLlama's stablecoin and yield figures?**

DeFiLlama documents hourly updates for stablecoin supply, yield APY, and pool TVL. These figures follow an hourly collection schedule rather than updating with every transaction.

**Where does DeFiLlama get yield data?**

Its yield adapters use on-chain calls or subgraphs. DeFiLlama accepts centralized API data only when there is no other way to obtain it, such as off-chain gauge weights.

**Does DeFiLlama show boosted yields?**

Its stated methodology targets minimum attainable yield. It uses unboosted APY and excludes locked rewards and yield that requires holding an additional token.

**Can I request history using just a ticker?**

DeFiLlama identifies stablecoins and yield pools separately: its documented stablecoin IDs include 1 for USDT and 2 for USDC, while yield history uses an identifier from the pool listing. Resolve the asset or pool first to select the intended historical series.

**Can I examine a current figure over time?**

DeFiLlama provides stablecoin history for a specific chain and historical APY and TVL for an individual yield pool. Match the chain and asset or pool before comparing a current result with its history.

