Skip to main content
Glama

add_contact

Idempotent

Add a contact to your address book by mapping a label to a blockchain address. The entry is signed with your Ledger in production mode or stored unsigned.

Instructions

Save a label → address binding to the address book. Production mode + Ledger paired: blob is signed with the user's paired Ledger key on that chain (BIP-137 for BTC, EIP-191 for EVM in v1.0; Solana / TRON support deferred to v1.5). Persisted to ~/.vaultpilot-mcp/contacts.json and verified on every read. Production mode + no Ledger paired (issue #428): writes to a process-local in-memory store and returns unsigned: true + anchorAddress: "UNSIGNED_NO_LEDGER" so first-run / accountant-share users can label addresses without entering demo mode (which intercepts broadcasts). The label is process-local — lost on restart — and resolves with a (unsigned) warning in send-flow verification blocks. Pair a Ledger and re-add to upgrade to a signed entry. Demo mode (VAULTPILOT_DEMO=true): same in-memory store, returns unsigned: true + anchorAddress: "DEMO_ANCHOR". All four chains usable from day one (btc/evm/solana/tron). v1.0 production chains: btc + evm. solana / tron return CONTACTS_CHAIN_NOT_YET_SUPPORTED. The notes and tags fields update the unsigned metadata sidecar (joined across chains by label) so editing them doesn't require a fresh device signature. Sends like prepare_native_send({ to: "Mom" }) resolve Mom against the signed blob first, then fall through to the unsigned overlay with a warning. Adding the same label twice on the same chain replaces the address (with a fresh signature in production-signed mode). Adding a different label that maps to an already-saved address rejects with CONTACTS_DUPLICATE_ADDRESS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesWhich chain's blob to add to. v1.0 ships `btc` + `evm` only. `solana` / `tron` return CONTACTS_CHAIN_NOT_YET_SUPPORTED.
labelYesHuman-readable label, used to look up the contact by name in every prepare flow. Must be unique within a chain — adding the same label twice on the same chain replaces the address.
addressYesOn-chain address. Validated against the chain's address regex at call time; format mismatches reject before any device interaction.
notesNoFree-form note attached to the LABEL (joins across chains via the metadata sidecar — same notes show up on `Mom`'s BTC and EVM rows). Unsigned: tampering with notes does not redirect funds, but the agent surfaces 'notes integrity unverified' alongside the (verified) address.
tagsNoFree-form tags ('family', 'cex-deposit', etc.). Like notes — stored in the unsigned metadata sidecar.
intendedChainsNoEVM-only (issue #482). Tag the contact for specific EVM chains so `preview_send` emits a `CONTACT-CHAIN MISMATCH` warning when a prepare's chain isn't in this list (defense-in-depth for the Carol-on-Arbitrum-sent-on-Ethereum class of mistake). Omit for legacy 'any EVM chain' behavior. Rejected with a clear error for btc/solana/tron contacts.
Behavior5/5

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

The description goes far beyond the annotations, revealing signing behavior with Ledger, in-memory store fallback, unsigned flags, metadata sidecar for notes/tags, duplicate label replacement, duplicate address rejection, and resolution in send flows. This level of detail gives the agent complete understanding of all behavioral nuances.

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

Conciseness4/5

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

The description is well-structured with clear sections for different modes, but it is lengthy. While each sentence adds value given the complexity, a more concise front-loading of core behavior would improve it. Still, it earns a 4 for being informative without excessive redundancy.

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

Completeness5/5

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

Given the tool's complexity (6 params, multiple modes, no output schema), the description is exceptionally complete. It covers all edge cases, return values (unsigned flags, anchorAddress), and interactions with other prepare flows. No gaps in context.

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?

Schema coverage is 100% with detailed parameter descriptions. The tool description adds minimal extra meaning for parameters beyond summarizing chain support; it does not enhance semantic understanding beyond the schema. Baseline 3 is appropriate.

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?

The description explicitly states the tool's purpose: 'Save a label → address binding to the address book.' It distinguishes from siblings like list_contacts, remove_contact, and verify_contacts by focusing on the creation action with detailed mode-specific behaviors. The verb 'save' and resource 'address book binding' are specific and clear.

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?

The description provides rich context for when to use the tool, detailing production modes with/without Ledger, demo mode, chain support, and duplicate handling. However, it does not explicitly compare with sibling tools or state when not to use it, missing the 'alternatives' criterion for a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/vaultpilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server