import_strategy
Parse and validate a shared-strategy JSON. Return the validated strategy for read-only inspection; reject JSON containing addresses or tx hashes.
Instructions
Parse and validate a shared-strategy JSON produced by share_strategy (someone else's, or one the user generated earlier). Pass either the stringified form or the parsed object via json. Returns the validated SharedStrategy for read-only inspection — protocol allocations, per-position percentages, optional health-factor / fee-tier / APR metadata. The same redaction scan that runs on emit also runs on import — addresses or tx hashes anywhere in the imported JSON cause a RedactionError, so a malicious sender cannot smuggle a wallet identifier through fields the recipient might not eyeball. Strict shape validation: unknown fields tolerated (forward-compat for v2 schema additions) but required fields must be present and well-typed. Read-only — no on-chain side effect, no signing.
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": {
"json": "<json>"
},
"name": "import_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The strategy JSON. Pass either the stringified form (what `share_strategy` returns in `jsonString`) or the parsed object (what it returns in `strategy`). The same redaction scan that runs on emit also runs on import — addresses or tx hashes anywhere in the imported JSON cause a structured RedactionError. |