Skip to content

Public documentation

Product version
1.3.0
Docs revision
r0
State
Current · released
Deployment
not-deployed
Source
platform-docs-v1.3.0 · 6ba04cd58b52

Documented release is not yet live

Concepts

Structured data

v1.3.0platform-docs-v1.3.06ba04cd

Mercury answers are assembled from structured tool results. This page explains why the data is prepared before it reaches the agent, the shape of a result, and the reading conventions that turn a result into evidence.

Why the shape matters

A tool returns a record, not a sentence. That is deliberate: a typed record carries values, units, timestamps, and identifiers that a reader can check, while prose about the same numbers cannot be verified and silently ages. The model's job is to choose the calls, sequence them, and interpret what came back, not to manufacture the values.

Prepared, not raw

If an agent wants to understand what happened in a session, it should not be handed thousands of candles and asked to rebuild highs, lows, and important levels itself. That consumes context, raises cost, and adds chances of error. Mercury does the work before the data reaches the agent: it measures realized volatility, places each market in a volatility regime, tracks how markets move together and whether those relationships are shifting, and describes the session structure with its Market Profile — value area, point of control, and initial balance — so that levels are ranked by significance and set against value. The agent then reads a session much as a trader reads a chart, with the state of the market and the levels and movements that matter already recognisable. The regimes and correlations are explained in Correlations and volatility. Where a raw series is genuinely needed, it is available, but it is not the recommended starting point. Tick-derived volume profile is on the way and is marked (*).

Bounded by design

A larger payload does not produce a better analysis; it can make the agent less precise and take up room that more important information could use. Mercury therefore bounds every response. A result that would exceed its limit is refused with a clear message stating the limit and the actual size, and is never silently truncated, so the agent always knows it is missing something and can narrow the request. Typical responses are far smaller than the limit. Compact output formats reduce the token cost further.

Why this controls hallucination

In many fields an imprecise answer is merely annoying; in markets it can be costly. Reducing the raw data an agent must handle, supplying structures that have already been computed, and stating where each figure came from and how fresh it is all reduce the chances that the agent misinterprets the context. This is a design rationale, not a guarantee. Mercury does not promise to remove every possible error; it aims to give the agent better foundations and fewer reasons to invent what it does not know.

What a result carries

Most Mercury tool results carry some combination of the following. Identity says which instrument, series, release, article, or metric the record is about. Values and units give the measurement and the scale it is expressed in. Time gives the timestamp or reference period the value describes, which makes the record citable and makes staleness visible. Provenance says which Mercury service produced it. Quality or freshness metadata, where the service provides it, gives coverage, status, or as-of information. Stable handles — article and document identifiers — let a later step re-open or enrich a record instead of searching again.

Reading a result as evidence

Cite the timestamp, not just the value, because a number without its reference period cannot be compared with another. Distinguish actual from forecast and previous, which arrive in the same record on a scheduled release. Treat results as snapshots and re-issue the call if the question has moved on. Prefer the narrowest record: fetching one instrument's detail is cheaper and more precise than fetching a bundle and filtering it. Keep the handles, so a later step can expand without repeating the original search.

Where the exact schema lives

Your client's runtime tool list is the executable schema authority: names, parameters, defaults, and return fields come from there. This documentation explains intent and reading conventions and deliberately does not restate parameter-by-parameter contracts.

Notes

(*) This feature is coming and is not available yet.