pentagonal_fix
Fix smart contract vulnerabilities by providing contract code and vulnerability details. Returns the complete fixed contract while preserving all existing functionality.
Instructions
Fix a specific vulnerability in a smart contract. Provide the contract code and the finding details — returns the complete fixed contract preserving all existing functionality.
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": {
"code": "<code>",
"finding_title": "<finding_title>",
"finding_description": "<finding_description>"
},
"name": "pentagonal_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The full smart contract source code to fix | |
| finding_title | Yes | Short title of the vulnerability (e.g., "Reentrancy in withdraw()") | |
| finding_description | Yes | Detailed description of the vulnerability and how it can be exploited |