Materialize wallet activity
{
"id": "activity",
"kind": "materialize",
"title": "Materialize wallet activity",
"request": {
"scope": {
"window": "7d",
"walletAddress": "{{ $.input.walletAddress }}"
},
"network": "eip155:8453",
"templateId": "allium_wallet_transactions_raw",
"deliveryFormat": "json"
}
}
Inspect token liquidity
{
"id": "liquidity",
"kind": "fetch_transform",
"title": "Inspect token liquidity",
"request": {
"params": {
"chainId": "{{ $.input.chainId }}",
"topPools": 3,
"tokenAddresses": [
"{{ $.input.tokenAddress }}"
]
},
"sourceId": "uniswap_token_liquidity",
"deliveryFormat": "json"
}
}
Quote sample Base swap
{
"id": "quote",
"kind": "fetch_transform",
"title": "Quote sample Base swap",
"request": {
"params": {
"amount": "{{ $.input.amountUsd }}",
"chainId": "{{ $.input.chainId }}",
"exactSide": "input",
"slippageBps": "{{ $.input.slippageBps }}",
"tokenInAddress": "0x833589fCD6EDB6E08f4c7C32D4f71b54bdA02913",
"tokenOutAddress": "{{ $.input.tokenAddress }}"
},
"sourceId": "uniswap_swap_quote",
"deliveryFormat": "json"
}
}
Search execution surface context
{
"id": "search",
"kind": "fetch_transform",
"title": "Search execution surface context",
"request": {
"params": {
"count": 5,
"query": "{{ $.input.surfaceName }} Base swap execution {{ $.input.operatorGoal }}"
},
"sourceId": "stableenrich_exa_search",
"deliveryFormat": "json"
}
}
Build Base swap execution sanity check
{
"id": "summarize",
"kind": "fetch_transform",
"title": "Build Base swap execution sanity check",
"request": {
"params": {
"input": {
"quote": "{{ $.stepsById.quote.output }}",
"activity": "{{ $.stepsById.activity.output.response.result }}",
"liquidity": "{{ $.stepsById.liquidity.output }}",
"surfaceName": "{{ $.input.surfaceName }}",
"operatorGoal": "{{ $.input.operatorGoal }}",
"searchContext": "{{ $.stepsById.search.output }}"
},
"prompt": "Build a Base swap execution sanity check. Focus on whether the named surface looks credible, the quote route sanity, the liquidity and wallet-activity signals, and the next actions.",
"responseSchema": {
"type": "object",
"required": [
"surfaceName",
"executionVerdict",
"summary",
"routeSanity",
"liquiditySignals",
"activitySignals",
"nextActions"
],
"properties": {
"summary": {
"type": "string",
"maxLength": 280
},
"nextActions": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120
},
"maxItems": 4,
"description": "Next actions."
},
"routeSanity": {
"type": "object",
"required": [
"priceImpactBps",
"routeHops"
],
"properties": {
"routeHops": {
"type": "array",
"items": {
"type": "string",
"maxLength": 80
},
"maxItems": 4,
"description": "Visible route hops."
},
"priceImpactBps": {
"type": "number"
}
},
"additionalProperties": false
},
"surfaceName": {
"type": "string"
},
"activitySignals": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120
},
"maxItems": 4,
"description": "Wallet-activity signals."
},
"executionVerdict": {
"enum": [
"credible",
"watch",
"weak"
],
"type": "string"
},
"liquiditySignals": {
"type": "array",
"items": {
"type": "string",
"maxLength": 120
},
"maxItems": 4,
"description": "Liquidity signals."
}
},
"additionalProperties": false
},
"systemInstruction": "You are compressing Base execution review into a bounded operator packet. Stay grounded in the supplied quote, liquidity, wallet-activity, and public surface context only."
},
"sourceId": "google_gemini_flash_structured",
"deliveryFormat": "json"
}
}