402.bot
Recipe
live $0.0075 medium Provider Monitoring

Capability Route Budget Pack

Rank paid route candidates, price ceilings, and next actions for one capability request.

$0.0075price
3steps
6sources
6ktokens saved
3tool calls compressed
median latency
402.bot RouteStableEnrichGeminiRoute Capability CandidatesStableenrich Exa SearchGoogle Gemini Flash Structured

Endpoint: /v1/recipes/capability-route-budget-pack/run
Capabilities: routing, provider-selection, capability-pack, budgeting

Why pay for this?

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

Ranks route candidates, layers in public provider context, and returns a compact capability routing board.

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

Load capability routes

fetch_transform

Source: Route Capability Candidates
Step id: routes

Stage 2

Search capability context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 3

Build capability route budget pack

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

Load capability routes

{
  "id": "routes",
  "kind": "fetch_transform",
  "title": "Load capability routes",
  "request": {
    "params": {
      "limit": 5,
      "strategy": "balanced",
      "capability": "{{ $.input.capability }}"
    },
    "sourceId": "route_capability_candidates",
    "deliveryFormat": "json"
  }
}

Search capability context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search capability context",
  "request": {
    "params": {
      "count": 5,
      "query": "{{ $.input.capability }} x402 provider api pricing reliability"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Build capability route budget pack

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build capability route budget pack",
  "request": {
    "params": {
      "input": {
        "routes": "{{ $.stepsById.routes.output }}",
        "capability": "{{ $.input.capability }}",
        "maxPriceUsdc": "{{ $.input.maxPriceUsdc }}",
        "publicContext": "{{ $.stepsById.search.output }}",
        "responseFormat": "{{ $.input.responseFormat }}"
      },
      "prompt": "Build a compact capability route budget pack. Focus on the best route candidates, the reasons they fit, public search signals, and concrete next actions for an operator.",
      "responseSchema": {
        "type": "object",
        "required": [
          "capability",
          "responseFormat",
          "summary",
          "recommendedRoutes",
          "routeBoard",
          "searchSignals",
          "nextActions"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "capability": {
            "type": "string"
          },
          "routeBoard": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "priority",
                "note"
              ],
              "properties": {
                "note": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "priority": {
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ],
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "description": "Compact provider routing board."
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Suggested next actions."
          },
          "searchSignals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Public search signals that matter for route choice."
          },
          "responseFormat": {
            "type": "string"
          },
          "recommendedRoutes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "endpointId",
                "resource",
                "priceUsdc",
                "score"
              ],
              "properties": {
                "score": {
                  "type": "number"
                },
                "resource": {
                  "type": "string"
                },
                "priceUsdc": {
                  "type": "number"
                },
                "endpointId": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are compressing route selection into a bounded operator board. Stay grounded in the supplied route shortlist and public context, and keep the output compact."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}