Skip to main content
Glama

Prepare Account Spam Cleanup & Auto-Deny

prepare_account_cleanup
Read-only

Prepares batched Radix transaction manifests to burn freely-burnable spam tokens/NFTs (or sweep non-burnable ones to an optional sinkAccount) and block future deposits via set_resource_preference(Disallowed). Protects XRD, validator LSUs, and system owner badges.

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": {
      "account": "<account>",
      "resources": "<resources>",
      "network": "<network>",
      "denyDeposits": "<denyDeposits>"
    },
    "name": "prepare_account_cleanup"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYes
networkYesRadix network: "mainnet" (production) or "stokenet" (testnet)mainnet
resourcesYes
sinkAccountNo
denyDepositsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations only supply readOnlyHint=true, and the description is consistent with that by framing the output as prepared manifests rather than executed burns. It adds material behavior beyond the annotation: batching, a safety allowlist that protects XRD, validator LSUs, and system owner badges, and the Disallowed deposit preference as a side effect to be encoded in the manifest. It does not state what the returned manifest structure looks like or whether signing/broadcast is a separate step.

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?

Two dense sentences, front-loaded with the action and its output type, followed by the safety guarantees. No filler or repetition of schema fields.

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

Completeness4/5

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

For a five-parameter manifest-building tool with no output schema and minimal annotation coverage, the description covers purpose, mode selection, protected assets, and the deposit-preference side effect. The remaining gap is the return value and the subsequent signing/submission step, which the agent must infer.

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 description coverage is only 20%, so the description must compensate, and it does for the key semantics: what resources means (spam tokens/NFTs), what sinkAccount is for (non-burnable fallback destination), and what denyDeposits causes (set_resource_preference Disallowed). account and network are self-evident from name, pattern, and the enum description in the schema.

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?

It uses a specific verb ("Prepares batched Radix transaction manifests") and states the exact resource classes handled: burnable spam tokens/NFTs, non-burnable items swept to sinkAccount, and deposit blocking via set_resource_preference(Disallowed). The prefix "prepare_" plus "manifests" clearly separates it from execution-style siblings and from the build_* manifest tools that target other transaction types.

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 implicitly routes between two modes: freely-burnable assets are burned, non-burnable ones are swept to an optional sinkAccount, and denyDeposits toggles the preference. That is clear contextual guidance, but it names no alternative tool and gives no explicit when-not condition (e.g. when to prefer build_deposit_rules_manifest or a plain burn manifest).

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.

Resources