pentagonal_generate
Generate production-ready smart contracts from natural language descriptions for EVM and Solana blockchains, applying self-learning security rules to create safer code.
Instructions
Generate a production-quality smart contract from a natural language description. Supports EVM (Solidity) and Solana (Anchor/Rust or SPL Token config). The generator uses Pentagonal's self-learning security rules to produce safer code.
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": {
"prompt": "<prompt>"
},
"name": "pentagonal_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Natural language description of the smart contract to generate. Be specific about features, access control, and tokenomics. | |
| chain | No | Target blockchain | ethereum |
| solana_type | No | For Solana only: "program" for Anchor/Rust programs, "token" for SPL token JSON config | |
| use_learned_rules | No | Inject self-learning security rules into generation prompt |