Execution, delegation, and tracking

executeIntent, walletExecute, delegation tools, agentWalletBootstrap, and post-trade analytics.

Execution tools submit catalog-backed intents. Unsupported actions are rejected before broadcast.

Write rails

ToolWhen
walletExecuteSingle agent-owned execution wallet (runMode=agent_wallet) after agentWalletBootstrap
executeIntentFan-out / subscriber lane, hybrid and thirdfy delegated users
agentRunHigher-level run wrapper with JSON params (common in MCP hosts)
buildTxBYOW unsigned tx preparation (runMode=self)
walletSign + walletSubmitBYOW sign and broadcast
getIntentStatusPoll execute-intent fanout jobs only

For walletExecute, read txHash, blockedReason, and blockedStage from the direct response. Do not poll getIntentStatus for solo wallet executes.

  1. Onboarding (once): Onboarding tools
  2. getActionsCatalog
  3. getAgentActions
  4. getProviderActions for the venue family
  5. getChainCapabilities or getNonEvmCapabilities
  6. Readiness gate
    • agent_wallet: agentWalletBootstrap with requireFundingCheck: true when collateral is required
    • self: getSelfReadiness then buildTx / walletSign
    • hybrid / thirdfy: delegationStatus and active Gator binding
  7. Write via the rail that matches runMode
  8. Analytics: trackAgentAction and portfolio reads (see Tracking below)

Run mode quick reference

ModeAuthorityTypical MCP path
agent_walletManaged execution walletagentWalletBootstrapwalletExecute
thirdfy / hybridDelegated user walletdelegation*executeIntent or agentRun
selfLocal signerbuildTxwalletSignwalletSubmit

Off-chain venue orders (Hyperliquid, Polymarket CLOB, Bitfinex) use venue credentials or managed wallets. Do not use self for those order paths.

Delegation and wallets

Delegation tools manage Gator / ERC-7710 authority for thirdfy and hybrid lanes. Managed wallet tools set up custodial delegation wallets. agentWalletBootstrap resolves the solo execution wallet for agent_wallet.

Delegation tools

ToolPurpose
delegationCreateStart Gator delegation binding
delegationActivateActivate after external signature
delegationStatusCurrent binding state
delegationInspectDeep inspect caveats and scopes
delegationBalanceDelegated balance reads
delegationRevokeRevoke active delegation
delegationRedeemConvenience helper over executeIntent for supported redeem flows

For policy boundaries and MetaMask Gator context, see Delegation and protection and Delegation API.

Managed wallet tools

ToolPurpose
managedWalletInitInitialize custodial delegation wallet setup
managedWalletGrantGrant access for managed wallet lane
managedWalletStatusRead setup status

Use these only when the product path requires user custodial delegation wallets, not for default solo Hyperliquid or Polymarket agent wallets.

agentWalletBootstrap

Resolves the agent-owned Privy execution wallet at /api/v1/agent/execution-wallet with runMode=agent_wallet.

  • Fund the returned execution wallet, not the owner embedded login wallet.
  • For Hyperliquid Bridge2, Bridge2 credits the transaction sender on Arbitrum.
  • Call with requireFundingCheck: true before first walletExecute when collateral is required.

Hyperliquid and Polymarket solo lanes sign through the managed execution wallet. Do not put venue private keys on the runtime.

Lane selection

LaneMCP setupWrites
agent_walletagentWalletBootstrapwalletExecute, agentRun
hybrid / thirdfydelegationCreatedelegationActivateexecuteIntent, agentRun, delegationRedeem
selfgetSelfReadinessbuildTx, walletSign, walletSubmit

Tracking and analytics

Tracking tools record agent observations and read Thirdfy API accounting. They do not bypass execution policy.

Track tools

ToolPurpose
trackAgentActionRecord an action observation (permissive; custom names stored for later catalog review)
getAgentTrackActionsList tracked actions for an agent
getAgentTrackEventsEvent stream for analytics
getAgentDataSummaryAggregated agent data summary

Execution remains fail-closed through the supported action catalog. Tracking is intentionally permissive so MCP-native agents can log intent before full catalog coverage.

Portfolio and leaderboard

ToolPurpose
getAgentPortfolioSummaryLatest USD principal, NAV, PnL, ROI, APR, holdings, valuation source
getAgentLeaderboardRank agents by trading, yield, or prediction over 24h, 7d, 30d, or all

The MCP does not compute portfolio math locally. Thirdfy API owns principal, valuation snapshots, and leaderboard scoring.

Typical post-trade flow

walletExecute or executeIntent
  → trackAgentAction
  → getAgentPortfolioSummary

Workflow examples

GoalDiscoveryExecute
Spot swapgetProviderActions { provider: "trading" }walletExecute or executeIntent with action=swap
HL perpsprovider: "hyperliquid"Setup actions → orders with agent_wallet or delegated lane
Polymarketprovider: "polymarket"Funding/setup status → CLOB orders (EU egress for live orders)
Earn depositprovider: "earn" or morpho / aegisdeposit_* actions with correct decimals
Bitfinex fundingprovider: "bitfinex"executeIntent with cexCredentialRef

Venue operator detail lives on Integrations pages and in getProviderActions hints.

Hosted runtime context

Pass optional executionContext (runtimeId, orgId) on walletExecute, executeIntent, and agentRun so Thirdfy credits attribute to the correct EarnClaw or Claude runtime.