Workflows & Recipes

Workflow Guides

Written by , Product docsLast updated

Each workflow below shows what an agent needs to do, what the integration looks like without Hive, and how Hive reduces it to bounded tool calls through one connection.


Market Intelligence Agents

Without Hive, you integrate CoinGecko for spot prices, CCXT for exchange-level order flow, and build your own alerting logic to flag outliers. Three providers, three schemas, and a custom data pipeline before your agent can answer "what moved today?"

With Hive, your agent calls three tools and gets a market snapshot with price, liquidity, and outlier context.

Common tools

  • get_price
  • get_coins_market_data
  • get_gainers_losers
  • get_ticker
  • get_open_interest

Typical flow

  1. Pull spot pricing and market-cap context with get_price and get_coins_market_data
  2. Add exchange-level order flow or derivatives context with get_ticker and get_open_interest
  3. Flag outliers with get_gainers_losers

DeFi Strategy Monitoring

Without Hive, you scrape DeFiLlama for yields and TVL, normalize the response format, and maintain a separate pipeline for fee and treasury data. Every schema change breaks your agent.

With Hive, the agent queries yields, TVL, and fees through one connection with a consistent schema.

Common tools

  • get_yield_pools
  • get_protocol_tvl
  • get_protocol_fee_summary
  • get_chain_fees
  • defillama_get_treasury

Typical flow

  1. Filter attractive pools with get_yield_pools
  2. Validate protocol scale with get_protocol_tvl
  3. Compare fee capture and treasury strength before surfacing an opportunity

Wallet Intelligence

Without Hive, you integrate wallet, DeFi position, transaction, and NFT APIs separately, then build custom logic to merge the data into a wallet profile. Multiple providers, mismatched schemas, and fragile glue code.

With Hive, your agent builds a wallet profile from one API key.

Common tools

  • get_wallet_balances
  • alchemy_get_token_balances_by_wallet
  • moralis_get_wallet_defi_positions
  • moralis_get_wallet_history
  • alchemy_get_nfts_by_wallet

Typical flow

  1. Start with balances and token exposure
  2. Add DeFi positions and transaction history
  3. Enrich with NFT ownership or chain activity for a broader wallet profile

Security Review

Without Hive, you integrate GoPlus for token checks, a separate dApp security provider, and Tenderly for transaction simulation. Your agent needs three different auth flows before it can gather enough evidence for a pass, block, or escalate decision.

With Hive, your agent runs the full security check through one connection.

Common tools

  • get_token_security
  • check_dapp_security
  • check_phishing_site
  • simulate_evm_transaction
  • tenderly_trace_transaction

Typical flow

  1. Check token or dApp risk
  2. Simulate the transaction before prompting the user to sign
  3. Trace suspicious activity if you need deeper inspection

Prediction Market Analytics

Without Hive, you integrate Codex directly and build custom data pipelines for market discovery, price tracking, and trade aggregation.

With Hive, the prediction market category is ready to query.

Common tools

  • codex_prediction_markets
  • codex_prediction_market_price
  • codex_prediction_trades
  • codex_prediction_event_stats

Typical flow

  1. Discover markets for a category or network
  2. Track market price changes and trade flow
  3. Aggregate event-level statistics for reporting or agent ranking logic

Minimal REST Wrapper

python
import requests

def execute(tool: str, args: dict) -> dict:
    response = requests.post(
        "https://mcp.hiveintelligence.xyz/api/v1/execute",
        headers={"Authorization": "Bearer YOUR_HIVE_API_KEY"},
        json={"tool": tool, "args": args},
        timeout=30,
    )
    response.raise_for_status()
    return response.json()

market = execute("get_price", {
    "ids": "bitcoin,ethereum",
    "vs_currencies": "usd",
})