Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesNatural language description of the smart contract to generate. Be specific about features, access control, and tokenomics.
chainNoTarget blockchainethereum
solana_typeNoFor Solana only: "program" for Anchor/Rust programs, "token" for SPL token JSON config
use_learned_rulesNoInject self-learning security rules into generation prompt
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that the tool generates 'production-quality' code and uses 'self-learning security rules for safer code,' which adds useful behavioral context beyond the input schema. However, it lacks details on rate limits, authentication needs, error handling, or output format (e.g., code structure), leaving gaps for a generative tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured in two sentences: the first states the core functionality, and the second adds key features (supported chains and security rules). Every sentence earns its place by providing essential information without redundancy, making it front-loaded and appropriately sized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of generating smart contracts and no output schema, the description is moderately complete. It covers the tool's purpose and key features but lacks details on behavioral aspects like error handling or output format. Without annotations, it should do more to guide the agent on usage nuances, but it suffices as a minimum viable description with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by mentioning 'natural language description' (aligned with 'prompt') and 'EVM (Solidity) and Solana (Anchor/Rust or SPL Token config)' (hinting at 'chain' and 'solana_type'), but it does not provide additional syntax or format details. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate a production-quality smart contract from a natural language description.' It specifies the verb 'generate' and the resource 'smart contract,' and distinguishes itself from siblings like 'audit' or 'fix' by focusing on creation rather than analysis or correction. The mention of supported chains (EVM/Solana) and security rules adds specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a user needs to create a smart contract from natural language, but it does not explicitly state when to use this tool versus alternatives like 'pentagonal_compile' (which might compile existing code) or 'pentagonal_fix' (which might modify code). No exclusions or prerequisites are mentioned, leaving the agent to infer context from sibling tool names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pentagonal-ai/pentagonal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server