402.bot
Recipe
live $0.0075 medium Contract Analysis

Base DeFi Batchability Scorecard

Turn public protocol context and one anchor ABI into a compact Base execution-overhead scorecard.

$0.0075price
3steps
6sources
8ktokens saved
4tool calls compressed
median latency
StableEnrichWhatsABIGeminiStableenrich Exa SearchWhatsabi Contract AbiGoogle Gemini Flash Structured

Endpoint: /v1/recipes/base-defi-batchability-scorecard/run
Capabilities: protocol-ops, batchability, calldata-review, base

Why pay for this?

This recipe turns roughly 4 separate tool operations into one paid endpoint call and saves about ~8k tokens saved.

Combines public protocol context and one anchor ABI into a compact Base execution-overhead scorecard.

Creator

Name: 402.bot
Wallet: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
Payout: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
ERC-8004: verified
Identity: 30379
Bio: 402.bot managed workflow marketplace recipes.
ERC-8004 reputation: 0.0
Creator score: 21

Usage and trust

Success 30d: 0%
Refund 30d: 0%
Paid runs: 0
Creator recipes: 1
Last run: No recent runs

Pipeline

Stage 1

Search Base protocol overhead context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 2

Load anchor contract ABI

fetch_transform

Source: Whatsabi Contract Abi
Step id: abi

Stage 3

Build Base DeFi batchability scorecard

fetch_transform

Source: Google Gemini Flash Structured
Step id: summarize

Recent runs

RunStatusTriggerQueued
No recent runs recorded yet. Runs appear here after the first paid execution.
View raw step spec

Search Base protocol overhead context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search Base protocol overhead context",
  "request": {
    "params": {
      "count": 5,
      "query": "{{ $.input.researchQuery }}"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Load anchor contract ABI

{
  "id": "abi",
  "kind": "fetch_transform",
  "title": "Load anchor contract ABI",
  "request": {
    "params": {
      "address": "{{ $.input.primaryContractAddress }}",
      "network": "eip155:8453"
    },
    "sourceId": "whatsabi_contract_abi",
    "deliveryFormat": "json"
  }
}

Build Base DeFi batchability scorecard

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build Base DeFi batchability scorecard",
  "request": {
    "params": {
      "input": {
        "anchorAbi": "{{ $.stepsById.abi.output }}",
        "protocols": "{{ $.input.protocols }}",
        "targetChain": "{{ $.input.targetChain }}",
        "operatorGoal": "{{ $.input.operatorGoal }}",
        "publicContext": "{{ $.stepsById.search.output }}",
        "workflowFocus": "{{ $.input.workflowFocus }}",
        "primaryContractAddress": "{{ $.input.primaryContractAddress }}"
      },
      "prompt": "Build a Base DeFi batchability scorecard. Focus on the named protocols only. Return at most 4 scorecards, at most 3 patternSummary items, and at most 4 priorityActions. Keep operatorAction short and evidenceRefs terse.",
      "responseSchema": {
        "type": "object",
        "required": [
          "targetChain",
          "workflowFocus",
          "protocols",
          "summary",
          "scorecards",
          "patternSummary",
          "priorityActions"
        ],
        "properties": {
          "summary": {
            "type": "string",
            "maxLength": 280
          },
          "protocols": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            },
            "maxItems": 4,
            "description": "Protocols included in the scorecard."
          },
          "scorecards": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "protocol",
                "batchability",
                "calldataPressure",
                "approvalBurden",
                "operatorAction",
                "evidenceRefs"
              ],
              "properties": {
                "protocol": {
                  "type": "string",
                  "maxLength": 80
                },
                "batchability": {
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ],
                  "type": "string"
                },
                "evidenceRefs": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 90
                  },
                  "maxItems": 2,
                  "description": "Short grounding refs."
                },
                "approvalBurden": {
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ],
                  "type": "string"
                },
                "operatorAction": {
                  "type": "string",
                  "maxLength": 120
                },
                "calldataPressure": {
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ],
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 4
          },
          "targetChain": {
            "type": "string"
          },
          "workflowFocus": {
            "enum": [
              "swap-routing",
              "lending-ops",
              "swap-routing-and-lending-ops"
            ],
            "type": "string"
          },
          "patternSummary": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 3,
            "description": "Reusable overhead patterns worth keeping in mind."
          },
          "priorityActions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 4,
            "description": "Most important next actions."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are compressing Base protocol integration review into a bounded execution-overhead scorecard. Stay grounded in the supplied protocols, search context, and anchor ABI only. Do not produce a generic audit, broad market brief, or extra prose outside the schema."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}