Skip to main content
Glama

hedera_deploy_contract

Build an unsigned transaction to deploy a smart contract from bytecode stored in a Hedera file, with optional constructor parameters and initial balance.

Instructions

Build (unsigned) a contract deployment from bytecode already stored in a Hedera File (see hedera_create_file).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gasYesGas limit, e.g. 100000
adminKeyNoAdmin public key for the contract
bytecodeFileIdYesFile id holding the compiled bytecode (hex)
payerAccountIdNo
initialBalanceHbarNoInitial contract balance in HBAR
constructorParamsBase64NoABI-encoded constructor params as base64 (omit if none)
Behavior2/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 only states the tool builds an unsigned deployment, but lacks details on permissions, side effects, failure modes, or that the bytecode must already be stored. This is insufficient for a mutation-like tool.

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

Conciseness4/5

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

The single sentence is concise and front-loaded with the key verb. However, it could be improved by adding context on output or next steps without being too verbose.

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

Completeness2/5

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

The description lacks information about return value (unsigned transaction), prerequisites (file with bytecode), and how to proceed (sign and execute). This is a significant gap for a tool that produces an intermediate artifact.

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 coverage is high (83%), so baseline is 3. The description does not add any additional meaning beyond the schema. It does not explain relationships between parameters or usage context.

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 action ('Build') and resource ('contract deployment'), specifies it is unsigned, and references a sibling tool (hedera_create_file) for context, distinguishing it from execution tools like hedera_execute_contract.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool vs alternatives, such as mentioning it should be followed by hedera_execute_contract. The reference to hedera_create_file is helpful but not a complete usage guideline.

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/ExpertVagabond/hedera-mcp'

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