How to Use DeFiLlama yield pools in Muse Code
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.
Prompts to try with DeFiLlama yield pools in Muse Code
Copy an example into Muse Code, or ask in your own words.
Use DeFiLlama yield pools to fetch Aave V3 USDC pools on Ethereum and render their current APY and TVL in the existing table component.
Use DeFiLlama yield pools to look this up and give me the result as a table. Save the result in ./assets.
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.
Pull the newest data from DeFiLlama yield pools and give me the result as a table.
How to set up DeFiLlama yield pools in Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run DeFiLlama yield pools
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": "defillama-com/crypto/yield_pools", "input": { "sort": "tvl" } }'
Then paste one of the prompts above: Muse Code finds DeFiLlama yield pools on Spiral, shows the price and runs it.
DeFiLlama yield pools providers and prices
Spiral runs DeFiLlama yield pools through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Muse Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | tvl or apy | tvl |
|
| Limit | 1 to 100 | 20 | Items per page (1..100, default 20). |
| Min tvl usd | a number | Drop pools below this TVL. | |
| Stablecoin only | on or off | Only pools DeFiLlama flags as stablecoin pools. |
Every API field of DeFiLlama · Yield pools is on its tool page: open its card above.
What can you do with DeFiLlama yield pools in Muse Code?
Build a research view that puts stablecoin supply beside DeFi pool APY and TVL. A coding agent can connect current listings to historical series and add comparisons to the project's existing charts.
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.
More on DeFiLlama yield pools and Muse Code
Overview
DeFiLlama yield pools in other agents
Questions about DeFiLlama yield pools in Muse Code
Can Muse Code use DeFiLlama yield pools?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run DeFiLlama yield pools like any built-in tool.
How much does DeFiLlama yield pools 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 DeFiLlama yield pools in Muse Code?
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 Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while DeFiLlama yield pools runs?
DeFiLlama yield pools runs in the background. Muse Code 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.
Start using DeFiLlama yield pools in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


