# Barker Execution Quote

> Barker Execution Quote is a paid API for AI agents from mcp.barker.money, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Returns an unsigned, ready-to-sign EVM transaction for depositing into or redeeming from a stablecoin vault, along with route details, risk summary, and approval info — without ever broadcasting or holding funds.

## Facts

- Endpoint: GET https://mcp.barker.money/barker_execution_quote?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/barker-execution-quote-e5ca635f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vNbm2XQAFOHMm5eM4jzPR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability barker-execution-quote-e5ca635f
```

Example prompt: Get me an unsigned deposit transaction for 500 USDC (500000000 base units) into the Barker pool 'aave-v3-usdc-mainnet' for my wallet 0xAbC...1234 to sign, with 0.5% slippage tolerance.

## When to prefer this

Use this endpoint when you need a fully constructed, unsigned EVM transaction for a stablecoin vault deposit or redemption that the user's own wallet will sign — ensuring non-custodial execution. Prefer this over generic DeFi aggregators when you need Barker's route selection, risk summary, and guaranteed non-broadcast guarantee in one call.

## Known failure modes

- Invalid pool_uid returns an error indicating the pool is not found or not executable
- Invalid or malformed signer_address causes a 400 validation error
- amount_base_units of zero or below minimum threshold returns an error
- Pool not available for the requested action (deposit vs redeem) returns unsupported action error
- Slippage too tight may return a route unavailable or insufficient liquidity error
- Network or RPC timeout may result in a 500 or timeout error

## How this service works

EXECUTION QUOTE (non-custodial): buy an unsigned, ready-to-sign transaction that deposits into or redeems from a stablecoin vault. Returns transaction_request {chainId,from,to,data,value} + route + risk summary + approval info. Barker NEVER broadcasts and never holds funds — return the transaction to YOUR user's wallet to sign; vault shares always go to signer_address…

## Output

A JSON object containing a transaction_request with chainId, from, to, data, and value fields (ready to pass to a wallet for signing), along with the selected route, a risk summary for the vault, and any required token approval details. Vault shares or redeemed assets always go to signer_address. Barker never broadcasts the transaction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pool_uid",
      "amount_base_units",
      "signer_address"
     ],
     "properties": {
      "action": {
       "enum": [
        "deposit",
        "redeem"
       ],
       "type": "string",
       "description": "Default deposit"
      },
      "amount": {
       "type": "string",
       "description": "Same amount in human units (\"1000\" = 1000 USDC), converted server-side using the pool's own asset decimals. Use this if you don't want to compute base units yourself. Alternative to amount_base_units."
      },
      "chain_id": {
       "type": "integer",
       "description": "Optional, only useful when pool_uid is a contract address that is deployed at the same address on several chains (e.g. Aave aTokens). EVM chain id, e.g. 8453 for Base."
      },
      "pool_uid": {
       "type": "string",
       "description": "Either the exact pool_uid from barker_executable_pools (copy verbatim), OR the vault contract address (0x + 40 hex) if that is what you already have — no discovery call needed. Both are matched exactly; partial names and keywords are rejected (POOL_NOT_FOUND), because this is a money path and Barker never guesses the pool. If one contract hosts several products (e.g. Pendle PT vs LP), you get 409 POOL_AMBIGUOUS with the exact candidates to choose from."
      },
      "slippage": {
       "type": "number",
       "description": "Optional slippage tolerance, e.g. 0.005"
      },
      "signer_address": {
       "type": "string",
       "description": "EVM address that will sign AND receive vault shares / redeemed assets. Mandatory — it is the tx sender and the share recipient, so Barker can never infer or default it."
      },
      "amount_base_units": {
       "type": "string",
       "description": "Integer amount in token base units (1 USDC = 1000000). For redeem: underlying assets to withdraw. Send either this OR `amount` — not both (they are cross-checked and a mismatch is rejected)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "require
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/barker-execution-quote-e5ca635f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp.barker.money](https://www.zero.xyz/host/mcp.barker.money/llms.txt)
