Skip to main content
Glama
jim-agent

NEAR Contract Deployer MCP Server

by jim-agent

deploy_contract

Deploy a WASM smart contract to a NEAR account. Specify the target account ID, network, and WASM source (file or base64); ensure the account has sufficient balance for storage.

Instructions

Deploy a WebAssembly (WASM) smart contract to a NEAR account. Requires the deployer account to have sufficient balance for storage costs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoNEAR network to deploy to (default: testnet)
wasm_pathNoPath to the compiled WASM file
account_idYesThe NEAR account ID to deploy the contract to (e.g., "mycontract.testnet")
private_keyNoOptional: Private key for signing (ed25519:xxx format). If not provided, uses ~/.near-credentials/
wasm_base64NoAlternative: Base64-encoded WASM bytes (use instead of wasm_path)
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It mentions the storage cost requirement but fails to disclose that deploying may overwrite existing contract code, requires signing privileges, or produces transaction-related side effects.

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 two sentences, front-loaded with the action, and contains no filler. It delivers the core purpose and one key requirement without unnecessary verbosity.

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?

For a deployment tool with five parameters and no output schema, the description is too minimal. It does not explain the relationship between wasm_path and wasm_base64, whether the contract initialization is part of this step or separate, or what the return value is, leaving the agent under-informed.

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 input schema already provides 100% description coverage for all five parameters, including alternatives like wasm_path and wasm_base64. The description adds no additional parameter meaning, so the baseline score of 3 is appropriate.

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: deploying a WASM smart contract to a NEAR account. It uses a specific verb and resource, and the focus on deployment distinguishes it from sibling tools like upgrade_contract and initialize_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 guidance is provided on when to use this tool versus alternatives. The only additional note about storage cost balance is a prerequisite rather than usage direction, and there is no mention of exclusions or scenarios favoring other sibling tools.

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