# Barker Vault Position

> Barker Vault Position is a paid API for AI agents from mcp.barker.money, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current redeemable value of a wallet's ERC-4626 vault position — shares held and current asset value — by reading on-chain data for a given Barker pool and wallet address.

## Facts

- Endpoint: GET https://mcp.barker.money/barker_vault_position
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/barker-vault-position-9295a557
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8g8T5fu-HvGMrPjP1kneD

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-vault-position-9295a557
```

Example prompt: What is the current redeemable value of my vault position in the Morpho USDC pool on Base (pool_uid: morpho-vault_base_usdc_0xee8f4ec5) for my wallet 0xAbCd1234...?

## When to prefer this

Use this endpoint when you need the live, on-chain redeemable value of a specific wallet's position in a Barker-indexed ERC-4626 vault — particularly before executing a redemption, computing P&L, or monitoring portfolio value. Prefer this over APY/pool data endpoints when the question is 'how much is THIS wallet's position worth right now' rather than 'what is the pool's yield or TVL'.

## Known failure modes

- Invalid or malformed wallet address (non-0x, wrong length) returns an error
- Unknown or unsupported pool_uid not found in Barker's index returns a not-found error
- Wallet address holds zero shares — returns zero shares and zero current_value
- On-chain RPC call failure or node unavailability may return a transient error
- Pool_uid referencing a non-ERC-4626 vault may return an unsupported error

## How this service works

VAULT POSITION (on-chain read): current redeemable value of a wallet's ERC-4626 vault position. Pass the pool_uid (from barker_executable_pools / barker_execution_quote) and the wallet address; Barker resolves the vault contract and reads balanceOf + convertToAssets directly on-chain, returning shares and current_value in the vault's underlying asset (value_asset, e.g. USDC).…

## Output

Returns the wallet's current vault share balance (shares) and the present redeemable value in the vault's underlying asset (e.g. USDC), computed by calling balanceOf and convertToAssets on-chain. Also returns the value_asset identifier (e.g. USDC contract) so the caller knows which asset the value is denominated in.

## 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": [
      "address",
      "pool_uid"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "EVM wallet address holding the vault shares (0x + 40 hex)"
      },
      "pool_uid": {
       "type": "string",
       "description": "Barker pool uid of the ERC-4626 vault, e.g. morpho-vault_base_usdc_0xee8f4ec5 (from barker_executable_pools)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/barker-vault-position-9295a557/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)
