Skip to main content
Glama

Compare Stratigraphy Strata

stratigraphy.get_diff
Read-onlyIdempotent

Compute signed numerical deltas (indexed height, target multiplier, percentage change, and elapsed days calculated from toTarget minus fromTarget) between two indexed stratum heights or dates. Read-only, stateless operation subject to HTTP rate limiting and L402 payment; missing stratum entries yield JSON-RPC invalid-params errors. Requires valid fromTarget baseline; toTarget defaults to latest. Use this tool specifically to compare two point-in-time entries. Use stratigraphy.get for full stratum record lookups, stratigraphy.get_range for continuous compact multi-record spans, and stratigraphy.get_digest for indexed source-record fingerprints; stratigraphy data ingest is outside this comparison tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toTargetNoOptional comparison indexed height (e.g. '919856'), UTC ISO date (e.g. '2026-09-01'), or 'latest' (default); deltas are toTarget minus fromTarget. 'latest' is the latest dataset entry, not the live Bitcoin tip. Constraints: pattern: ^(?:latest|(?:0|[1-9]\d*)|\d{4}-\d{2}-\d{2})$. Example: "latest".latest
fromTargetYesRequired baseline indexed height (e.g. '850000') or UTC ISO date (e.g. '2026-01-01'); compared with toTarget to calculate signed deltas. Either chronological order is allowed; only indexed entries resolve. Constraints: pattern: ^(?:(?:0|[1-9]\d*)|\d{4}-\d{2}-\d{2})$. Example: "919856".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesOne indexed daily stratum; the height is a deterministic dataset index, not a live Bitcoin block height.
fromYesOne indexed daily stratum; the height is a deterministic dataset index, not a live Bitcoin block height.
deltaYesSigned change from the starting indexed entry to the ending entry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds rate limiting, L402 payment requirement, statelessness, and the specific error behavior for missing stratum entries (JSON-RPC invalid-params). That is meaningful behavioral context beyond structured fields.

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?

Front-loads the computation and its outputs, then constraints, then alternatives. Dense and mostly waste-free, though the 'Use this tool specifically to compare two point-in-time entries' sentence partially restates the opening.

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?

With an output schema present, return-value detail is not needed, and the description still covers defaults, ordering, error behavior, payment/rate constraints, and sibling routing. Nothing needed to call it correctly is missing.

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%, so the schema already documents both parameters, including the sign convention and the 'latest = latest dataset entry, not live chain tip' caveat. The description reinforces the toTarget-minus-fromTarget direction but adds little syntax or format detail the schema lacks; baseline 3 applies.

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 (compute signed deltas) plus the exact resource (two indexed stratum heights/dates) and even enumerates the returned quantities. It clearly distinguishes itself from sibling lookup tools by naming what kind of operation this is (point-in-time comparison).

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 routes the agent: 'Use this tool specifically to compare two point-in-time entries,' then names three alternatives (stratigraphy.get, get_range, get_digest) with the condition that selects each, and adds an exclusion (data ingest is out of scope). No inference required.

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.

Resources