check-cpi
Analyze Solana Cross-Program Invocations to detect arbitrary CPI, reentrancy, privilege escalation, and program ID validation issues in Rust/Anchor source code.
Instructions
Analyze Cross-Program Invocations for safety: arbitrary CPI, reentrancy, privilege escalation, program ID validation.
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": {
"source_code": "<source_code>"
},
"name": "check-cpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes | Rust/Anchor source code |