Skip to main content
Glama
mineryield-mcp

mineryield-mcp

by nadeaup

Calculate profitability

calculate_profitability
Read-only

Estimate daily mining profit, power cost, solar savings, and runtime for one home or small-business miner using grid, solar, and battery input watts.

Instructions

POST /api/v1/calculator — one-machine home/small-business profitability with the same solar/battery/grid leftover-watt model as the site. Required: hashrate, power, algorithm, elecCost. Optional: solarW, batteryCapacity, zipCode, powerSources. Example: 3 kW miner on solar by day, grid at $0.15/kWh at night → power=3000, elecCost=0.15, solarW=, powerSources={solar:true, battery:false, grid:true} (add batteryCapacity and battery:true to store leftover sun). Returns dailyProfit, dailyCost, solarSavings, runtimeHours, effectiveElecCost. Figures are MinerYield model estimates from live market inputs: estimates only, not investment, financial, or tax advice, and not ROI guarantees. Results vary with network difficulty, coin price, power cost, and hardware performance. Do your own research.

Input Schema

NameRequiredDescriptionDefault
powerYesMiner wall power in Watts (3000 = 3 kW). Used with solar/battery/grid to compute leftover watts and runtime.
solarWNoHome/small-business solar array capacity in Watts (10000 = 10 kW). Used with Peak Sun Hours from zipCode. Solar generation is treated as free during the sun window; leftover watts can charge the battery.
zipCodeNo5-digit US ZIP for Peak Sun Hours. Defaults to the API-key owner profile, then a server default. Needed for a realistic solar-by-day estimate.
elecCostYesGrid electricity price in USD per kWh (0.15 = 15 cents). Applied only to leftover watts after solar and battery. There is no separate day/night rate: solar covers the sun window, grid covers the rest at this price.
hashrateYesHashing power (TH/s for SHA-256, MH/s for Scrypt; same units as the catalog).
algorithmYesCatalog algorithm name as stored on MinerYield (SHA-256, Scrypt, KHeavyHash, Eaglesong, SHA512256d, Blake2B, Blake2B-Sia, Blake2B-SHA3, Blake256R14, X11, Cuckatoo31, Cuckatoo32, Equihash, RandomX, SHA3X, Ethash4G, Blake3, zkSNARK, Kadena, NexaPow, XPHash).
hardwareCostNoUpfront hardware cost in USD used for estimated payback days.
powerSourcesNoWhich legs of the site calculator to use. solar=true uses solarW during Peak Sun Hours; battery=true uses leftover solar stored in batteryCapacity at night; grid=true keeps the miner running 24h on leftover grid kWh. solar=true + grid=true + battery=false is "solar by day, grid at night". If grid=false the miner only runs while solar or battery energy lasts (runtimeHours < 24).
preferredCoinNoTarget coin when an algorithm supports more than one (BTC/BCH/QUAI, SC/BTCB2, BTCB2/SC, ZEC/ARRR, ETC/OCTA/ETHW/QKC, DCR/SCP). Blake2B-SHA3 is HNS only; Cuckatoo31 is MWC only; Cuckatoo32 is GRIN only. Scrypt reports LTC/DOGE (merged). When omitted, the most profitable supported coin is used except Ethash4G, which defaults to ETC.
batteryCapacityNoBattery storage in kWh (20 = 20 kWh). Only used when powerSources.battery is true (passing batteryCapacity without powerSources turns battery on). Excess daytime solar charges the battery; the battery covers night hours before grid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description adds real value by disclosing the returned metric names (dailyProfit, solarSavings, effectiveElecCost, runtimeHours) and the fact that figures are model estimates driven by live market inputs with variability caveats. The 'POST' framing is consistent with a non-mutating calculation, so it does not contradict readOnlyHint. It stops short of disclosing rate limits, auth/API-key requirements, or precision/rounding.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded with endpoint, scope, and model, and the example is compact. But the trailing block of disclaimers ('estimates only, not investment, financial, or tax advice... Do your own research') is boilerplate that consumes roughly a third of the text without helping an agent invoke the tool.

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

Completeness4/5

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

For a 10-parameter tool with a nested object and no output schema, the description does the needed work: required vs optional split, an example scenario, and an enumeration of return fields. Remaining gaps are minor, such as default behaviors for zipCode and preferredCoin, which the schema covers on its own.

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?

Schema coverage is 100%, so the baseline is 3; the description goes beyond by naming the four required and four optional parameters and mapping scenario values onto them (power=3000, elecCost=0.15, powerSources={solar:true, battery:false, grid:true}). The parenthetical about adding batteryCapacity and battery:true to store leftover sun adds behavioral meaning the schema only partially conveys.

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?

States a specific verb (calculate), resource (one-machine profitability), and the underlying model (solar/battery/grid leftover-watt, same as the site), plus the endpoint. This is distinguishable from siblings like get_solar_forecast or get_market_data, which supply inputs rather than a profitability projection.

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

Usage Guidelines3/5

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

The description gives a concrete worked scenario (3 kW miner, solar by day, grid at $0.15 at night) and explains required vs optional inputs, which implies when to reach for it. However, it never states when NOT to use it or names a sibling alternative (e.g., to fetch solar forecast or market inputs first), leaving routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.