Skip to main content
Glama

Network hashrate

get_hashrate_by_period
Read-onlyIdempotent

Get network hashrate and difficulty data for a time period.

Mempool.space docs

REST operation: GET /api/v1/mining/hashrate/{time_period}.

Input Schema

NameRequiredDescriptionDefault
time_periodYesLookback period: `24h`, `3d`, `1w`, `1m`, `3m`, `6m`, `1y`, `2y`, `3y`, `4y` or `all`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedInput schema / $defs / TimePeriod / description
      Previous value: -"Time period for mining statistics.\n\nUsed to specify the lookback window for pool statistics, hashrate calculations,\nand other time-based mining series."New value: +"Lookback window for mining statistics."
    • changedInput schema / $defs / TimePeriod / enum
      Previous value: -[
      -  "24h",
      -  "3d",
      -  "1w",
      -  "1m",
      -  "3m",
      -  "6m",
      -  "1y",
      -  "2y",
      -  "3y",
      -  "all"
      -]New value: +[
      +  "24h",
      +  "3d",
      +  "1w",
      +  "1m",
      +  "3m",
      +  "6m",
      +  "1y",
      +  "2y",
      +  "3y",
      +  "4y",
      +  "all"
      +]
    • addedInput schema / properties / time_period / description
      Added value: +"Lookback period: `24h`, `3d`, `1w`, `1m`, `3m`, `6m`, `1y`, `2y`, `3y`, `4y` or `all`."
    • addedInput schema / properties / time_period / examples
      Added value: +[
      +  "24h"
      +]
    • removedOutput schema / $defs / DifficultyEntry / properties / adjustment / format
      Removed value: -"double"
    • removedOutput schema / $defs / DifficultyEntry / properties / difficulty / format
      Removed value: -"double"
    • addedOutput schema / $defs / DifficultyEntry / properties / height / $ref
      Added value: +"#/$defs/Height"
    • removedOutput schema / $defs / DifficultyEntry / properties / height / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Height"
      -  }
      -]
    • removedOutput schema / $defs / HashrateEntry / properties / avgHashrate / format
      Removed value: -"uint128"
    • removedOutput schema / $defs / HashrateSummary / properties / currentDifficulty / format
      Removed value: -"double"
    • removedOutput schema / $defs / HashrateSummary / properties / currentHashrate / format
      Removed value: -"uint128"
    • removedOutput schema / $defs / Height / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / Timestamp / format
      Removed value: -"uint32"
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds that both hashrate and difficulty series are returned and that it maps to a documented REST endpoint, but says nothing about result granularity, units, or response shape beyond that.

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

Conciseness4/5

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

One sentence stating what is returned, front-loaded, followed by a docs link and REST operation mapping that help an agent ground the call. No filler, though the REST line is arguably metadata rather than guidance.

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?

An output schema exists, so return values needn't be described, and the sole parameter is fully documented in the schema. What's missing is enough context to place this tool among its many hashrate/difficulty siblings, which is the main gap for correct selection.

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?

Schema description coverage is 100% and the single time_period parameter already enumerates all valid windows with examples, so the baseline of 3 applies. The phrase 'for a time period' restates the parameter without adding semantics such as default window or resolution of returned data points.

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

Purpose4/5

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

States a specific verb and resource plus the scope ('network hashrate and difficulty data for a time period'), which is clearer than most siblings. However, it never distinguishes itself from near-neighbors like get_hashrate, get_difficulty_adjustments_by_period, or get_pools_hashrate_by_period, so an agent must guess which of these overlapping tools to pick.

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?

The description gives no when-to-use or when-not-to-use guidance and never names an alternative. With at least three sibling tools covering hashrate/difficulty over periods, the choice is left entirely to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.