Skip to main content
Glama

DFM · The Fund Management OS

Zap-v2 Escrow Status

zap_status
Read-only

Get the decoded zap-v2 escrow for a (vault, user) from the live API (GET /vaults/:address/zap-v2/status/:user), or null if none is open. Shows mode (0=deposit,1=redeem), per-leg crank progress (legsFilled/legsTotal), readyToClose, expiry, and per-leg failure reasons. Omit user to inspect assigned app wallet, including its existing escrows after revoke. A configured external keypair does not change escrow ownership. AUTH never permits an unrelated wallet. On this remote server it reads the account of the read-only dfm_ key you connect with (Authorization: Bearer dfm_… header); without a key it answers how to connect one. user is required and must be that key’s own wallet.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vault": "<vault>"
    },
    "name": "zap_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
userNo
vaultYes
escrowSlotNoEscrow slot 0-7 (from zap_status). A wallet can hold several escrows per fund; omit for the oldest open one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations mark the operation as read-only and open-world; the description adds a lot beyond that: the exact remote call, the fact that a configured external keypair doesn't change ownership, the auth constraint (read-only `dfm_` key via Bearer header), and the response for missing keys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the tool's purpose and endpoint come first, then scoping and auth constraints. It is longer than most, but every sentence conveys operational constraints and none are filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only status tool with no output schema, the main gaps are: the response shape is only partly described (fields are listed but not structured), and it never states whether the tool reports a missing escrow vs. an error. `vault` is not explained in the description at all.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only escrowSlot has schema documentation (33% coverage). The description says `user` is required and must be the key's own wallet, and mentions omitting `user` defaults to the app wallet, which is genuinely complementary to the schema. However, this conflicts with the schema's required list, which only marks `vault` as required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb and resource combination: it retrieves the decoded zap-v2 escrow for a (vault, user) pair, including the endpoint it hits. The description spells out the returned fields (mode, legsFilled/legsTotal, readyToClose, expiry, failure reasons), which distinguishes it from siblings such as get_vault.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the omitted-`user` case (inspect the assigned app wallet, including existing escrows after revoke) and the null result when none is open. Lacks an explicit alternative pointer for close/crank/withdraw flows that may need another tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.