Skip to main content
Glama

contract_deploy

Deploy a smart contract using a KMS signer and receive the deterministic contract address instantly without waiting for transaction confirmation.

Instructions

Deploy a smart contract from a KMS signer (signs a contract-creation tx with to: null + data: bytecode). The bytecode is full creation calldata — creation bytecode + ABI-encoded constructor args, concatenated client-side (run402 does NOT compile Solidity). Returns the deterministic CREATE address synchronously in contract_address — known before confirmation, no polling needed to know where the contract lives. Same pricing as contract_call: chain gas at-cost + $0.000005 KMS sign fee.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesEVM chain (must match the signer's chain)
valueNoOptional native-token value in wei to attach to the deploy (decimal string)
bytecodeYesFull creation calldata as 0x-prefixed hex (creation bytecode + ABI-encoded constructor args, concatenated client-side). Non-empty, even-length, ≤ 128 KB. run402 does NOT compile Solidity.
signer_idYesThe KMS signer ID (cwlt_...) that will sign + own the new contract
project_idYesThe project ID
idempotency_keyNoOptional idempotency key — same key + same bytecode returns same call_id without re-broadcasting
Behavior5/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 transparently explains the transaction signing process, that the address is returned before confirmation (no polling needed), the bytecode constraints, idempotency key behavior, and pricing. No contradictions.

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 dense but well-organized, front-loading the main action and then detailing constraints, behavior, and pricing. Every sentence adds value, and there is no redundancy despite covering multiple aspects.

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

Completeness5/5

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

Given the complexity of contract deployment and the absence of an output schema, the description remarkably covers the key aspects: synchronous address return, bytecode requirements, pricing, and idempotency. It does not explicitly mention error handling for failures, but that is typically covered by error messages.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds valuable extra context: it clarifies that `bytecode` is full creation calldata (not just bytecode), that `signer_id` will own the contract, that `chain` must match the signer, and explains the idempotency key's effect. This goes beyond the schema definitions.

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 'Deploy a smart contract' and the mechanism (signs a contract-creation tx with `to: null + data: bytecode`). It distinguishes the tool from siblings like `contract_call` by mentioning it returns the CREATE address synchronously and highlighting that it does not compile Solidity.

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

Usage Guidelines4/5

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

The description provides contextual hints (e.g., 'Same pricing as `contract_call`') that imply when to use this tool versus alternatives. However, it lacks an explicit directive such as 'Use this to deploy a new contract; use `contract_call` to interact with an existing one.'

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/kychee-com/run402'

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