Skip to main content
Glama

dero_get_gas_estimate

Read-only

Estimate compute and storage gas costs for DERO transactions, contract deployments, or contract invocations before submitting to the network. Use this pre-flight check to size fees accurately.

Instructions

Estimate gas (compute + storage) for transfers, SC deploys, or SC invokes via DERO.GetGasEstimate. This is a PRE-FLIGHT check; nothing is submitted.

When to call: BEFORE any wallet-side transfer/scinvoke (using external wallet tooling) to size fees, OR when explaining deploy costs to a user. PREFER citing dero_docs_search("gas estimate" or "fees") so the user understands how compute vs storage gas are charged.

Input Requirements (CRITICAL):

  • At least ONE of transfers, sc, or sc_rpc MUST be provided.

  • sc is the DVM-BASIC contract source string when estimating a deploy.

  • sc_rpc is an array of { name, datatype, value } invocation arguments (entrypoint + SC_ID + caller-provided params).

  • signer is OPTIONAL but PREFERRED; pass the dero1.../deto1... address that would sign the eventual tx.

Output: { gascompute, gasstorage, status }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transfersNoOptional transfer list
scNoSC source to deploy
sc_rpcNoSC invocation arguments (entrypoint, SC_ID, etc.)
signerNoSigner address used for estimation
Behavior4/5

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

Annotations indicate readOnlyHint=true; description adds 'This is a PRE-FLIGHT check; nothing is submitted.' and details output schema, adding context beyond annotations.

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?

Description is well-structured with front-loaded purpose, then usage guidelines, input requirements, and output. No wasted sentences; each sentence adds value.

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?

For a complex gas estimation tool, description covers purpose, when to use, critical input constraints, parameter meanings, and output format. No output schema but description provides fields.

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 has 100% coverage but description adds critical constraint: 'At least ONE of transfers, sc, or sc_rpc MUST be provided.' Also explains sc and sc_rpc semantics beyond schema.

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?

Description clearly states 'Estimate gas (compute + storage) for transfers, SC deploys, or SC invokes' with specific verb and resource. Distinguishes from sibling tools by noting it's a pre-flight check.

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

Usage Guidelines5/5

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

Explicitly says 'When to call: BEFORE any wallet-side transfer/scinvoke...' and 'PREFER citing dero_docs_search' for understanding, providing clear guidance on when to use this tool vs alternatives.

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/DHEBP/dero-mcp-server'

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