Skip to main content
Glama
jim-agent

NEAR Contract Deployer MCP Server

by jim-agent

initialize_contract

Call an initialization method on a deployed NEAR contract to set its initial state. Required after deployment for contracts that need setup.

Instructions

Call an initialization method on a deployed contract. Most contracts require this after deployment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gasNoOptional: Gas limit in TGas (default: 100)
argsNoInitialization arguments as JSON object
depositNoOptional: NEAR amount to attach (in NEAR, e.g., "1.5")
networkNoNEAR network (default: testnet)
contract_idYesThe NEAR account ID of the deployed contract
method_nameYesName of the init method (commonly "new" or "init")
private_keyNoOptional: Private key for signing
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It only states that an init method is called; it does not mention that this is a state-changing transaction, that private_key is needed for signing, potential side effects like double-initialization errors, or whether it is irreversible. The description adds minimal behavioral context beyond what the schema already lists.

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 extremely concise: two short sentences that immediately state the action and the typical usage context. Every word earns its place, and the key information is front-loaded.

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?

Despite good schema coverage, the tool has 7 parameters, no output schema, and no annotations. The description is too terse to cover important contextual aspects like return values, failure modes (e.g., 'method already initialized'), network defaults, or the difference between 'new' and 'init' methods. As a state-changing blockchain operation, more context is needed for safe autonomous invocation.

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?

The schema provides 100% coverage for all 7 parameters, each with detailed descriptions. The description itself adds no parameter-specific guidance, so the baseline score of 3 is appropriate since the schema already documents the parameters thoroughly.

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 uses a specific verb ('Call') and resource ('initialization method on a deployed contract'), clearly distinguishing it from sibling tools like deploy_contract or upgrade_contract. The added context 'Most contracts require this after deployment' reinforces the tool's specific role in the contract lifecycle.

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 phrase 'Most contracts require this after deployment' implies the tool is used post-deployment, which helps orient the agent. However, it does not explicitly mention when not to use it or name alternatives, though sibling tool names provide implicit differentiation.

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/jim-agent/mcp-near-deploy'

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