ByteTree MCP

ByteTree MCP is an LLM-native, read-only interface to the same data plane that powers the REST API. It exposes tools that AI agents can call to retrieve assets, prices, metrics, group rollups, and FX data — and ships a glossary resource so the agent can ground its answers in ByteTree’s vocabulary without external lookup.

Mutation tooling (recompute, backfill, pipeline triggers, group aggregation) exists internally but is intentionally out of scope on the public surface.

When to use which surface

Use caseSurface
Programmatic ingest, dashboards, scheduled jobsREST API
Claude Desktop, Claude Code, or other MCP clientsByteTree MCP
Custom agent workflows with tool-callingByteTree MCP
One-off curl, browser inspection, debuggingREST API

Both surfaces read the same engine. Choose the MCP when you want the LLM to drive the request loop and need glossary-aware semantics in-band; choose REST when you control the request shape directly.

What’s inside

Transport encoding

ByteTree MCP responses use TOON — a compact, token-efficient encoding (lossless JSON in a denser YAML-flavoured form, with CSV-style tabular arrays for uniform-row data). Most clients (Claude Desktop, Claude Code) decode this transparently; you only see the difference if you’re inspecting raw transport or budgeting tokens directly. Read tabular blocks (header line ending in {field1,field2,…}: followed by comma-delimited rows) as arrays of objects with the listed fields in order.

Response-size discipline

The tool layer caps results at ~800 KB. Past the cap, the tool returns an explicit error with narrowing guidance rather than silently truncating — so an agent that retries with a smaller window or a fields projection succeeds on the next call.

Series tools (get_metrics_series, get_prices) default to a 90-day window ending today when neither from nor to is supplied. Widen explicitly when you need history, and use the fields input to project just the metrics you care about (the full metrics blob is ~100 fields × N days; without a projection a multi-year request will hit the cap).

The server publishes these conventions via the MCP instructions field returned during initialization — clients that surface that field will see the same default-window and narrowing-guidance framing alongside the TOON format notes, so a connected agent generally adapts without needing to read this page.

Proprietary concepts

Terms like CAPR (Currency-Adjusted Price Relative), ByteTrend (0–5 composite score in two arcs — Weekly with 200-week / 30-week MAs, Daily with 200-day / 30-day MAs; the wire-format suffixes …200w and …30d map to Weekly and Daily respectively), Local-vs-CAPR variants, and trend regimes (Leading / Emerging / Weakening / Bear / Neutral) are not in any LLM training set. Read the Concepts page or the in-band bytetree://glossary resource before reasoning about these fields. If your client doesn’t expose resources/read, call summarise_dataset first — its response carries an inline concepts block with one-line definitions.

Conventions

Next steps