Use case · Discovery before migration

Know what you hold before you move it.

Migration starts with what exists, where, and what depends on it. The Environmental Agency here is fictional. Its air-quality evidence is scattered. The MCP Tool Shed reaches it, a graph connects it, and a System 1 model decides if it is enough.

Monitoring stations under bands of atmosphere. A highlighted path links a pollutant to a place and the dataset that measures it.

01 · The gap

The model can't see your catalogue.

A language model knows air quality in general, not your datasets, breakdowns, publishers or dates. One request needs many kinds of evidence.

The requestAnnual PM2.5 by country, 2019 to 2024, official sources only.

Evidence the request needs, its shape, and where it usually lives
The answer needsShapeUsually in
What PM2.5 is, and its pollutant groupproseMethodology documents
Which datasets hold it, by country and yeartablesCoverage tables
Publisher and last updaterecordsCatalogue metadata
Country to continent, year to rangerelationshipsReference hierarchies
Whether this person may see itpolicyAccess rules

02 · Reach

Two ways to reach evidence.

Both add context for one request, without retraining. They differ in reach and in who decides.

RAG

Retrieval-augmented generation · a technique

Pre-index documents. Add the best matches to the prompt.

Suits
Methodology: what PM2.5 is.
Who decides
Your code, before the model runs.
Fresh as
The last index rebuild.

MCP

Model Context Protocol · an open standard

Connects an AI app to servers of tools, resources and prompts. The model asks; the app calls [2].

Suits
The catalogue: coverage, metadata, records.
Who decides
The model, as it works, or a person.
Fresh as
The system behind the server.

They combine. A search_methodology MCP tool can sit on a RAG index. The MCP Tool Shed governs these servers; each agent gets only what it needs.

Data shape matters as much as location.

RAGData shapeA well-built MCP tool
strong
Chunk, embed, rank, cite.
Textmethodologies, reportsgood
A search tool over an index.
good
Multimodal embeddings or captions.
Imagesmaps, charts, scansgood
Returns the original; still needs search.
weak
Chunks split rows from headers. Can't sum, filter or join.
Tablescoverage, measurementsstrong
Exact filters, joins and totals.
mixed
Loses field names. Fine for "similar", poor for "official, since 2024".
Recordsmetadata, JSON, logsstrong
Filters by field; schema-checked results [2].

Qualitative ratings, not benchmarks.

  • A connection, not a data engine.A server that dumps text is no better than a chunk.
  • Only what's exposed.No aggregate tool, no total. Each tool needs upkeep.
  • Wrong queries still run.A bad filter returns a confident wrong answer.
  • Results fill the window.Filter on the server [3].

Neither route checks the pieces fit together or are enough.

03 · Before any request

Sift raw storage first.

Amazon S3, Azure Blob Storage and Google Cloud Storage hold millions of schemaless files. Names don't say what's inside. Embed it all and CSVs become noisy prose.

Production pattern · not part of this demo

Object storage Buckets and containers

S3, Blob Storage, Cloud Storage: PDFs, CSVs, JSON, logs, scans, maps

Sift · bounded decisions A System 1 decision model
  • Relevant?
  • What shape?
  • Who may see it?
  • Where does it go?

Each call has a confidence. Below the threshold, it escalates to a person.

Text and imagesIndex for RAG
Tables and recordsStore behind MCP tools
Links between themGraph: pollutant, place, dataset, publisher, permission
Unsure or sensitiveReview queue, or skip
Millions of narrow calls suit a System 1 model, not a bigger one. Sifting runs on arrival. The demo's graph is already built.

04 · Connect

Access isn't understanding.

Each route returns a fragment. The graph links them, so coverage is checked, not guessed.

RAG returns a passage"PM2.5: fine particulate matter, 2.5 micrometres or less…"

True, but names no dataset.

MCP returns a recordEuropean Air Emissions Reporting · official · updated 2025

Accurate, but silent on coverage.

The graph adds linksPM2.5 → by country, by year → held by this dataset → from this publisher

Two fragments become one answer.

The worked request as a graph path

  1. Request
  2. asks for
  3. PM2.5
  4. broken down by
  5. Country · Year
  6. covered by
  7. European Air Emissions Reporting
  8. published by
  9. Official publisher

The graph checks every country and year has a source, whether datasets combine, and roll-ups to continents.

Graph traversal is not Microsoft GraphRAG

This demo follows typed catalogue links. GraphRAG builds and summarises an entity graph from text; it beat vector RAG on some whole-corpus questions [4].

05 · Decide

Evidence still needs a decision.

Jev, TypeSafe's System 1 decision model [6], is the decision layer. Each step picks from fixed answers, with a confidence. The pipeline acts only above threshold.

Not a retriever, protocol or database. It stores no facts; it decides what the agent may do with them.

  1. Can the catalogue answer?answer · ask · refuse
  2. Which pollutants?yes or no per graph candidate
  3. At what breakdown?one level per dimension
  4. Best fit to preference?ranked, only among graph-proven options
  5. Too uncertain?below threshold → escalate
  • Answer
  • Ask
  • Refuse
  • Escalate
  • No data

06 · Try it

Ask the catalogue.

The configured decision backend evaluates illustrative catalogue data. Public builds use deterministic rules; a private presenter may use hosted Jev. Pick an example or write your own.

Start with an example

Name a pollutant and a breakdown, such as country and year.

What makes one dataset better for you? For example: official sources only.

Loading the catalogue…

What this proves

Today, and in production.

In this demo

  • An in-memory graph of eight illustrative sources.
  • Coverage checks, including combined sources and roll-ups.
  • Five outcomes; refusal and clarification before search.
  • Traceable results: stages, datasets and reasons.
  • In-browser rules or the portable Rust service.

Added in production

  • A RAG index over methodology, maps and charts.
  • The MCP Tool Shed over catalogue, storage and source systems, with short-lived delegated access.
  • Ingestion and sifting from object storage.
  • A persistent graph database.
  • A System 1 model such as Jev, calibrated thresholds and human review.
Where RAG and MCP failFailure modes by kind, for technical advisers.
KindRAG fails when…MCP fails when…
FindingThe right passage is never retrieved.Wrong tool or bad arguments.
AttentionToo many chunks; mid-prompt text is used less well [5].Long tool lists and big results crowd the window [3].
FreshnessThe index lags the source.The server reads a stale copy.
AccessChunks reach people barred from the source.Long-lived keys, not delegated access.
Blast radiusA confident wrong answer.A side-effecting tool runs on a bad decision.
BothUntrusted text in documents or tool results can carry instructions. In MCP, tool descriptions can too.

Jev can't fix retrieval. It can refuse, ask for detail or escalate when evidence falls short.

SourcesLinks last checked 5 October 2026; [6] checked 12 October 2026.
  1. Lewis, P. et al. "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks." NeurIPS, 2020. arxiv.org/abs/2005.11401
  2. Model Context Protocol. Specification, revision 2026-07-28: server primitives and tools.
  3. Anthropic. "Code execution with MCP." 4 November 2025. anthropic.com. On the token cost of tool definitions and results.
  4. Edge, D. et al. "From Local to Global: A GraphRAG Approach to Query-Focused Summarization." 2024. arxiv.org/abs/2404.16130
  5. Liu, N. F. et al. "Lost in the Middle: How Language Models Use Long Contexts." TACL 12, 2024. aclanthology.org/2024.tacl-1.9
  6. TypeSafe. "Introducing System One models and Jev." typesafe.ai
  7. The worked request, catalogue and sources are illustrative. Storage sifting is an architecture pattern, not a demo feature.