Skip to main content
Glama
mnemox-ai

TradeMemory Protocol

by mnemox-ai

Get Daily Root

get_daily_root
Idempotent

Retrieve or rebuild the daily Merkle root for a UTC date, summarizing all audit_chain entries so one 32-byte root verifies every TDR's integrity without re-walking each one.

Instructions

Get (or rebuild) the daily Merkle root for a UTC date.

The Merkle root summarises every audit_chain entry whose chained_at falls inside the UTC day. Verifying this single 32-byte root proves the integrity of every TDR for that day without re-walking each one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate in YYYY-MM-DD format (or full ISO datetime).
rebuildNoIf True, recompute and overwrite the stored root.
request_tsaNoWhether to submit the rebuilt root to the configured RFC 3161 TSA (default freetsa.org) and store the returned TimeStampToken. None (default) follows the TRADEMEMORY_TSA env setting — ON unless set to "off". TSA failures are logged but do not abort the rebuild.
include_tokenNoIf True, include a base64-encoded `tsa_token` in the response (default False — the token can be large).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.4

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the agent knows this can write while being repeatable. The description adds useful conceptual context about what the root covers and why it is trustworthy, but does not add operational context (rebuild overwriting stored data, TSA submission side effects) beyond what the schema and annotations already say.

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?

Front-loaded with the core action, then a compact two-sentence rationale that earns its place by explaining the value proposition of the tool. No filler or redundancy.

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?

With an output schema present the description need not explain return values, and annotations cover the safety profile, so the remaining burden is light. The description covers purpose and rationale well but leaves the get-vs-rebuild decision and its side effects under-described for a tool with two distinct operational modes.

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 all four parameters (date, rebuild, request_tsa, include_token) are already fully documented in the schema. The description adds no parameter-level semantics beyond naming 'rebuild' in passing, so the baseline of 3 applies.

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 (get/rebuild) and resource (the daily Merkle root for a UTC date) and explains what the root summarises. It implicitly contrasts with chain-walking verification siblings, but never names verify_audit_chain or verify_audit_hash, so the differentiation is inferential rather than explicit.

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 conveys the conceptual use case (verifying a whole day's integrity from one 32-byte root) but gives no explicit when-to-use guidance and never names the alternative verification tools or states when a full chain walk is preferable. The 'or rebuild' branch is only hinted at, with conditions left to the schema.

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