Skip to main content
Glama

estimate_smart_fee

Calculate Bitcoin transaction fees for a specific confirmation time to optimize cost and speed.

Instructions

Get fee estimate for a specific confirmation target.

Args: conf_target: Number of blocks for confirmation (1-1008)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conf_targetYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The 'estimate_smart_fee' handler function which interfaces with the Bitcoin RPC to fetch fee estimates and formats the response for the MCP client.
    @mcp.prompt()
    def track_transaction(txid: str) -> str:
        """Track a transaction from mempool to confirmation."""
        return (
            f"Track Bitcoin transaction {txid}. First, try get_mempool_entry to check if "
            f"it's unconfirmed. If in mempool, report its fee rate, position estimate, and "
            f"ancestors (get_mempool_ancestors). Then use analyze_transaction for full details. "
            f"If confirmed, report the block it's in and confirmations. Assess whether the "
            f"fee rate was appropriate and estimate when it will confirm if still pending."
        )
    
    
    # ============================================================
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the valid range for confirmation target (1-1008 blocks), but lacks other behavioral details such as what algorithm 'smart' estimation uses, whether results are cached, rate limits, or output format details (though output schema exists).

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?

Extremely concise with zero waste. The two-part structure (purpose statement followed by Args documentation) efficiently delivers necessary information in minimal space. Every sentence earns its place.

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

Completeness3/5

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

Adequate for a single-parameter tool with existing output schema. The description covers the parameter well and states basic purpose, but gaps remain in sibling differentiation and behavioral disclosure given the lack of annotations.

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

Parameters4/5

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

Excellent compensation for 0% schema description coverage. The Args section clearly defines 'conf_target' as 'Number of blocks for confirmation' and provides the valid range (1-1008), adding critical semantic meaning absent from the schema's bare 'Conf Target' title.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the core action ('Get fee estimate') and target ('specific confirmation target'), but fails to distinguish from four sibling fee tools (get_fee_estimates, estimate_transaction_cost, get_fee_recommendation, compare_fee_estimates). It does not explain what makes this estimation 'smart' or when to prefer it over alternatives.

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 provided on when to use this tool versus the four alternative fee estimation tools available. No prerequisites, error conditions, or usage constraints are mentioned beyond the implicit parameter range.

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/Bortlesboat/bitcoin-mcp'

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