Skill
mantle-portfolio-analyst
When to use
What it does
by mantle-xyz·v1.0.0
Install
git clone https://github.com/mantle-xyz/mantle-skillsBuild deterministic, read-only wallet analysis on Mantle. Enumerate balances and allowances, then highlight approval risk in a structured report.
wallet_addressnetwork (mainnet or sepolia)mantle_validateAddressmantle_getChainInfomantle_getChainStatusmantle://registry/tokensmantle://registry/protocolsmantle_getBalance.mantle_getTokenBalances.mantle_getAllowances.mantle_getTokenInfo for that token and keep missing fields as unknown when unresolved.low: allowance is zero, or tightly bounded and clearly below wallet balance/expected use.medium: allowance is non-zero and larger than immediate expected use, but still bounded.high: allowance is very large relative to expected use, or intentionally broad with unclear user intent.critical: is_unlimited=true from tool output, or allowance equals/near-max integer (value >= 2^255).unknown unless verified from mantle://registry/protocols or user-confirmed.high and critical approvals at top of summary.mantle_getBalance, mantle_getTokenBalances, mantle_getAllowances, mantle_getTokenInfo, chain/address validation helpers).eth_*) as if they are callable tools in this workflow.0x0000...0000), stop and return an error message explaining the issue -- do not proceed with queries against an invalid address.unknown and continue.raw and normalized values in output. Prefer normalized values from tool responses; convert manually only when decimals are explicitly known. If decimals are unavailable, keep raw only and lower confidence.partial flags and per-entry error fields.Always use this exact report structure, even when the user query is scoped to a specific token, spender, or subset. Omit sections only if they are genuinely empty (e.g., no allowances found), but keep all section headers. For scoped queries, populate only the relevant entries within each section and note the applied filter in the summary.
Mantle Portfolio Report
- wallet:
- network:
- chain_id:
- collected_at_utc:
Native Balance
- MNT:
Token Balances
- token: <symbol_or_label>
address:
balance_raw:
decimals:
balance_normalized:
Allowance Exposure
- token:
spender:
allowance_raw:
allowance_normalized:
risk_level: low | medium | high | critical
rationale:
Summary
- tokens_with_balance:
- allowances_checked:
- unlimited_or_near_unlimited_count:
- key_risks:
- confidence:
references/rpc-readonly-workflow.mdreferences/allowance-risk-rules.md