Skip to main content
Glama

Import a wallet

import_wallet
DestructiveIdempotent

Replaces the saved wallet with a wallet.yaml from the earnrate command line or earnrate.dev, when the user pastes or attaches one. Wallet files only: never statements or card numbers. If anything is already saved (cards, memberships or point values), it refuses unless replace is true: confirm with the user first.

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": {
      "yaml": "<yaml>"
    },
    "name": "import_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
yamlYesThe wallet.yaml text, as the user gave it.
replaceNotrue to replace what the wallet already holds, after the user confirms.

Output Schema

NameRequiredDescriptionDefault
notesYes
cardIdsYes
createdYes
messageYes
membershipsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changed
    • changedInput schema / properties / replace / description
      Previous value: -"true to replace a wallet that already has cards, after the user confirms."New value: +"true to replace what the wallet already holds, after the user confirms."
  3. Changed1 schema field changed
    • addedInput schema / properties / replace
      Added value: +{
      +  "description": "true to replace a wallet that already has cards, after the user confirms.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description earns credit by spelling out exactly what is destroyed (cards, memberships, point values), the refusal precondition, and the required user confirmation. The remaining gap is failure behavior for malformed YAML or oversized input, which is left unstated.

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?

Three short sentences, front-loaded with the action and scoped immediately by the input-type restriction, then the precondition. No filler and nothing repeated from the schema.

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?

For a two-parameter destructive import with full schema coverage, an output schema, and safety annotations, the description covers purpose, input restrictions, the overwrite guard, and the confirmation flow. An agent has everything needed to call it safely.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by tying replace=true to an explicit user-confirmation step and clarifying that yaml is the wallet text as the user supplied it.

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?

Names a specific verb and resource ("Replaces the saved wallet with a wallet.yaml") plus the source of that file (earnrate CLI or earnrate.dev), and adds a negative scope ("Wallet files only: never statements or card numbers") that separates it from siblings like add_card or record_purchase.

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?

Gives a clear triggering condition ("when the user pastes or attaches one") and a gating rule (refuses if anything is already saved unless replace is true, confirm with the user first). It does not name a sibling alternative for the rejected inputs, though the "never statements or card numbers" clause implicitly routes those cases elsewhere.

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.