AWS Context Explained: Context Graphs That Make AI Agents Understand Your Data
Ask an AI agent for “net revenue by region last quarter” against a real warehouse and it will usually return a number. The problem is that the number is often wrong. The agent picked the gross revenue column, joined orders to customers on the wrong key, or forgot that refunds live in another table. AWS Context, made generally available at re:Invent on 1 December 2026, is Amazon’s answer to that failure. It builds a governed “context graph” of your tables, joins, business terms and rules, then hands it to agents through Model Context Protocol (MCP) tools. Graph creation is free for core AWS data services, but using the graph is metered.
This matters now because most enterprise agent pilots stall on accuracy rather than on model quality. This explainer takes the launch apart: what the graph contains, how it is built and queried, what it really costs, how it compares with a semantic layer, and how to measure whether it helps you.
What this covers: the text-to-SQL failure modes, graph anatomy, build pipeline, query-time flow, pricing maths, semantic-layer comparison, failure modes and an evaluation method.
Context and Background
Text-to-SQL has looked “nearly solved” for years on academic leaderboards, then fallen apart on real schemas. The gap is well documented. The Spider 2.0 benchmark paper was built from real enterprise workflows with large schemas, multiple SQL dialects and project-specific documentation. Its authors reported that an o1-preview-based agent solved only about 21.3% of Spider 2.0 tasks, against 91.2% on Spider 1.0 and 73.0% on BIRD. We covered measured accuracy and latency across models in our text-to-SQL LLM benchmark analysis. The lesson is consistent: model capability is rarely the bottleneck. Missing knowledge is.
The industry has tried three answers to that missing knowledge. The first is the semantic layer, such as dbt MetricFlow or Cube. Engineers define metrics, dimensions and joins once in code, and agents request “revenue by region” instead of writing raw SQL. We compared those two tools in depth in our semantic layer architecture guide for LLM analytics. The second is context engineering: stuffing schema snippets, glossaries and few-shot examples into the prompt at the right moment. The third is knowledge-graph retrieval, often called GraphRAG, which retrieves connected entities instead of isolated text chunks.
AWS Context combines all three ideas inside a managed service. AWS first showed it at the AWS Summit New York on 17 June 2026, when it was labelled “coming soon”. According to the AWS Machine Learning Blog post from that event, it extends the knowledge graph behind Amazon Quick from a personal graph to an organisational one. On 31 July 2026 AWS released the open-source Context Ontology Accelerator under Apache 2.0 on GitHub. It lets teams draft an ontology with AI help, have domain experts approve it, and store it in a graph they own.
The general-availability announcement on 1 December 2026 completed the picture. Per the AWS What’s New post, the service is available in US East (N. Virginia), US West (Oregon) and Europe (Ireland). Ontologies, learning from agent feedback, and Databricks and Snowflake connections remain in preview. Amazon also says it has run an internal version for more than a year. That internal graph reportedly spans more than 9 million nodes and over a million dashboards and datasets.
How AWS Context Works: The Context Graph Architecture
AWS Context is a managed service that connects to your databases, catalogs and documents and builds an “Agent Context”. This is a governed graph of data assets, business definitions and rules. Agents query it through MCP tools to find the right tables, follow join paths and run read-only SQL. Every answer is scoped to the caller’s permissions and cites its sources.

Figure 1: AWS Context reference architecture, from source connections through changesets and curation to the MCP tools that agents call.
Figure 1 reads top to bottom. Structured sources, mostly reached through the AWS Glue Data Catalog, and document sources feed connections. Ingestion turns what it finds into changesets. A curation policy decides whether each changeset is applied automatically, held for a human or discarded. Only approved changes reach the Agent Context graph. Agents then reach that graph through a hosted MCP endpoint.
The four first-class resources
The AWS Context user guide defines a small resource model. The first is the Agent Context: “a single, independent instance of a bounded data estate”, with its own ARN. You can create up to 20 per account. The word “bounded” matters. You do not build one graph of the whole company; you build one per domain, such as finance or claims, so that permissions and quality can be managed per domain.
The second resource is a connection. It links an Agent Context to a source and carries the role and authorisation that source needs. A connection can be reused across several Agent Contexts. Its connection configuration sets how entities are extracted from that source for one particular graph.
The third is an ontology. In AWS’s wording, it defines “the entity types, attributes, and relationships of your business domain”. AWS ships three system ontologies, called Enterprise, Business Process and Data. You can also import your own in OWL or RDF Turtle format, though bring-your-own ontology is still a preview feature. The fourth is the curation policy. Every change becomes a changeset, whether it comes from ingestion, analysis, one-time import, a direct API call or feedback. The policy decides its fate, and can range from fully automatic to fully manual.
What is inside a context graph
Under those resources, the graph holds three kinds of node. Data nodes mirror physical objects such as databases, tables, columns and DynamoDB attributes. Ontology types carry business concepts such as Customer, Loan, Claim or Net Revenue. Derived nodes are created by AWS Context itself as it resolves the same entity across systems. For example, it may recognise that cust_id in Redshift and customerId in DynamoDB point to the same customer.
Edges connect these nodes. Some edges are structural, such as table-has-column or foreign-key joins. Others are semantic, such as “this column implements the business term Net Revenue”. A third kind is behavioural: join paths and filters observed in query logs. The features page says the service “discovers cross-dataset joins and partial-view relationships” and uses “weak signals from query logs” to refine knowledge. It also imputes glossary terms and semantic annotations from LLM knowledge, wikis and data dictionaries.
Glossary terms carry much of the value here. A business glossary for LLM agents is the written answer to “what do we mean by active customer?” Most organisations keep that answer in a wiki page or in three analysts’ heads. AWS Context ingests glossaries from the Glue Data Catalog, which gained business-context enrichment in preview in June. It can also read data dictionaries you upload, and it accepts metric definitions written in Apache Ossie format. Ossie is the incubating Apache project formerly known as Open Semantic Interchange.
How agents reach the graph
The integration surface is deliberately MCP-first. AWS hosts one MCP endpoint per Region at https://context-mcp.<region>.api.aws/mcp using Streamable HTTP, so there is nothing to deploy. Each tool call names its graph with an agentContextId. The consumption tools documented on the MCP server page are:
| MCP tool | What it does | Notable limit |
|---|---|---|
context___SearchAgentContext |
Semantic or keyword search for entities | up to 50 results, 30 s |
context___TraverseAgentContext |
Returns neighbours of an entity | depth 1 to 3, 10 s |
context___AgenticRetrieve |
Multi-step retrieval with a natural-language answer | 2 to 50 iterations, 100 s budget |
context___AgenticRetrieveStream |
Same, with progress notifications | stream closed after 300 s |
context___ExecuteSql |
One read-only SQL statement over Glue tables | 1 to 10 tables, 50,000 rows, 5 MiB, 30 s |
context___RetrieveKnowledgeBase |
Passages from a Bedrock knowledge base | 20 s, single attempt |
AWS states that graph search and traversal are powered by Amazon Neptune. The data query engine is DuckDB-based and can join across supported sources without moving data. Additional tools cover changesets, curation proposals and PutTrace, which lets an agent submit its trajectory for curator review. Named clients include Amazon Bedrock AgentCore, AWS Quick, Strands agents, Claude Code and Kiro. Any other MCP-compatible framework should also work.
Why Text-to-SQL Agents Fail Without a Context Graph
Before looking at how the graph is built, it helps to be precise about what it fixes. Agent text-to-SQL accuracy fails in a small number of repeatable ways. Each one maps to a specific kind of node or edge in the context graph.
Schema ambiguity
Real warehouses contain near-duplicate objects. You may find orders, orders_v2, orders_clean and stg_orders, with no obvious sign of which is canonical. Retrieval based on embedding similarity will happily pick the staging table, because its name and columns match the question just as well. A context graph addresses this with usage and lineage signals. If 90% of certified dashboards read orders_clean, that table should rank first. The features page says lineage signals are used to “prefer canonical documents over stale ones”. The same reasoning applies to tables.
Join-path errors
Join-path errors are quieter and more dangerous. Two tables can often be joined in several ways, and only one gives correct results. A many-to-many join through a bridge table, done naively, multiplies rows. Revenue then looks two or three times too high, the SQL runs without error, and the number looks plausible. Learned join paths are the clearest example of “tribal knowledge” made explicit. The June blog post described AWS Context observing “which join paths agents use” and sharing them across agents. A correction made once applies to every agent that uses the same Agent Context.
Metric-definition drift
“Revenue”, “active user” and “churn” each have an official definition, and it is almost never the obvious column. Net revenue might mean gross bookings minus refunds and chargebacks, excluding intercompany transfers, in reporting currency, by booking date rather than ship date. An LLM cannot infer that from column names. It must be told. This is exactly the problem semantic layers were built for. AWS Context tackles it by attaching definitions and rules to ontology types, and by ingesting governed metrics from Snowflake Horizon and Databricks Unity Catalog. That catalog integration is still in preview.
Silent filter omissions
The fourth failure is the missing WHERE clause. Real tables include test accounts, soft-deleted rows, sandbox tenants and cancelled orders. Analysts filter them out from habit. Agents do not, unless a rule tells them to. Retrieval instructions in AWS Context let you state rules such as “always exclude is_test = true“. AWS says these apply immediately, without rebuilding the graph.
The pattern across all four is clear. None of these is a reasoning failure. Each is a knowledge failure, and better models will not fix knowledge they were never given. That is the core argument for a context graph for AI agents: put the knowledge in a shared, versioned place, not in a thousand prompts.
How the Context Graph Is Built

Figure 2: The build pipeline: four evidence streams feed a draft graph, which passes entity resolution, ontology mapping and evaluation before promotion.
Figure 2 generalises what AWS documents into a pipeline you can reason about. AWS has not published the internal algorithms, so treat the stage boundaries as a conceptual model, not a disclosed implementation.
Stage 1: catalog crawl, the cheap and deterministic part
The user guide distinguishes structured ingestion from unstructured extraction. Structured ingestion is “deterministic schema ingestion”. It reads databases, tables, columns, data types and attributes from the Glue Data Catalog and supported engines, with no LLM extraction step, so it is faster and more predictable. This is also the part AWS gives away free. The AWS Context pricing page says catalog metadata from supported AWS structured services costs nothing to build and store, with no node limit.
AWS’s own worked example shows the scale. It assumes 800 Redshift tables averaging 40 columns, plus 40 DynamoDB tables averaging about 12 attributes. That produces roughly 33,000 nodes and a 0.17 GB in-memory graph, at a cost of $0.00. The arithmetic checks out: 800 × 40 = 32,000 column nodes, plus 480 attribute nodes, plus table nodes, is close to 33,000.
Stage 2: query-log mining
Schemas tell you what can be joined. Query logs tell you what people actually join, filter and aggregate. Mining logs from Redshift, Athena and other engines yields frequency-weighted join paths, common filters and popular tables. AWS describes these as “weak signals”, which is an honest label. Logs contain plenty of bad queries too, so frequency is evidence, not truth.
Stage 3: LLM enrichment and document extraction
This is where an LLM writes column descriptions, proposes synonyms (“rev” for revenue, “cust” for customer) and maps columns to glossary terms. Unstructured extraction also reads SharePoint, Confluence, Google Drive, Salesforce and similar sources. It infers entities and relationships, such as a metric definition buried in a finance wiki page. The documentation warns that this mode “does more work per unit of content and takes longer”. You can limit it with data-mapping filters on file type, tags, dates and size.
Cost follows the same split. Document-derived graph content is billed in agent units for building, and at $5 per GB-month for in-memory storage. In other words, the free tier covers the part that is easy. The part that holds most tribal knowledge, the documents, is the part you pay for.
Stage 4: entity resolution and ontology mapping
The graph becomes useful only when “customer” in the CRM, the billing database and the support desk resolve to one concept. AWS Context does this with derived nodes that link physical objects to ontology types. Teams can start with the system ontologies. They can also use the Context Ontology Accelerator to have an LLM draft a domain ontology, then let experts edit it visually in the console.
Stage 5: curation and evaluation
Every proposed change, whether a new join path, a description or a synonym, lands as a changeset. Background jobs flag contradictions and missing annotations. They also check whether custom ontology types are actually grounded in data columns, which is a useful guard against beautiful ontologies that point at nothing. Teams can write assertion-style evaluation tests and run them against a changeset before approval. This is the single most important feature for production use, and we return to it below.
How an Agent Uses AWS Context at Query Time

Figure 3: A typical query-time flow: the agent finds the metric, follows the join path, runs read-only SQL as the caller, validates, then answers with citations.
Figure 3 shows the “lean path”, where the agent orchestrates the steps itself. It searches for “net revenue” and gets back the metric node, with its definition and the tables that implement it. It then traverses up to two hops to collect the join path and mandatory filters. Next it writes SQL and runs it through ExecuteSql. AWS Context executes that query as the caller’s identity, so row- and column-level permissions still apply. Finally, the agent checks the result against the rules it retrieved before replying with citations.
The alternative is AgenticRetrieve, where AWS’s own retrieval agent does the decomposition. It splits the question into sub-queries, retrieves from several sources and returns a natural-language answer. That is simpler to integrate, but it costs more agent units per call and hides more of the reasoning. The pricing page makes the gap concrete, as the next section shows.
Identity propagation is the quiet differentiator
The MCP integration guide is explicit that calls run as the signing identity. If the agent signs with a shared service role, every user sees what that role sees. For per-user results, the session must carry the user’s trusted identity, through IAM Identity Center, a SAML or OIDC identity provider, or similar. AWS’s GA wording, “an agent sees only what the person asking is allowed to see”, is true only when this plumbing is wired correctly. It is the most common way a well-intentioned pilot turns into a data-exposure incident. Our guide to AI agent identity and delegated authorization covers the token-exchange patterns in detail.
A minimal client configuration
The MCP server is hosted, so integration is a configuration exercise rather than a coding one. Below is the mcpServers entry from the AWS Context user guide, which works for clients such as Claude Desktop, Cursor and Kiro. It needs local AWS credentials and uv with Python 3.11 or later. Replace the Region, and copy the prefilled version from the console’s Integration tab, because flags can change after launch.
{
"mcpServers": {
"agent-context": {
"command": "uvx",
"args": [
"mcp-proxy-for-aws-cli@latest",
"https://context-mcp.us-east-1.api.aws/mcp",
"--service", "context-mcp",
"--region", "us-east-1",
"--read-timeout", "310",
"--tool-timeout", "360"
],
"env": { "AWS_PROFILE": "default", "AWS_REGION": "us-east-1" }
}
}
}
Two operational details are easy to miss. First, tools/list is paginated, and the first page contains only four tools. A client that ignores nextCursor will never see search, traverse or SQL. Second, AgenticRetrieveStream sends progress notifications only when the request includes a progressToken and the client accepts text/event-stream. Long retrievals can take up to 300 seconds, so client timeouts must be raised. AWS’s own configuration sets a 310-second read timeout and a 360-second tool timeout for this reason.
AWS Context Pricing: What It Really Costs
The headline “free context graph creation” is accurate but incomplete. AWS Context pricing has three parts, according to the official pricing page checked on 3 December 2026:
| Item | Price | Notes |
|---|---|---|
| Graph creation and storage, supported AWS structured sources | Free | Aurora, RDS, DynamoDB, Redshift, Athena, S3 general purpose and table buckets; no node limit |
| Agentic operations | $0.04 per agent unit | Retrieval, curation, feedback, search, traversal, document graph building |
| In-memory graph storage, other sources | $5 per GB-month | Billed hourly on maximum graph size |
| Trial | 3,750 agent units | One time, first 30 days, does not renew |
An agent unit is defined as “the cumulative inference and compute a Context agent spends executing agentic operations”. AWS does not publish a conversion to tokens or seconds. The pricing page also describes billing “per second of agent time”, which makes it hard to forecast precisely. Agent-unit budgets are listed as “coming soon”, so you cannot yet cap spend natively.
Deriving per-call costs from AWS’s own example
AWS publishes one operational example: 30,000 agentic retrievals, 45,000 feedback calls, 40,000 searches and 80,000 traversals in a month. Dividing units by calls gives implied per-call rates. These are derived figures, not published rates, and AWS says real consumption varies with response mode and workload.
| Operation | Calls | Agent units | Implied units per call | Implied $ per call |
|---|---|---|---|---|
| Agentic retrieval | 30,000 | 24,922.5 | 0.831 | $0.0332 |
| Feedback agent | 45,000 | 14,073.75 | 0.313 | $0.0125 |
| Graph search | 40,000 | 7,500 | 0.1875 | $0.0075 |
| Graph traversal | 80,000 | 2,400 | 0.03 | $0.0012 |
| Total | 48,896.25 | $1,955.85 |
After the one-time 3,750-unit trial, worth $150, the first-month bill is $1,805.85, which matches AWS’s figure. The trial description adds a second data point. AWS says 3,750 units cover about 2,700 retrieval calls with answer generation, which is about 1.39 units per call. That is two-thirds more than the 0.83 implied above. The gap is presumably the difference between response modes: generating a natural-language answer costs more than returning retrieved context.
An illustrative monthly estimate
Here is an illustrative scenario. Every input is an assumption, not an AWS figure. Suppose 200 analysts each ask 25 questions per working day, over 22 working days. That is 110,000 questions a month.
If every question uses one agentic retrieval, two searches and four traversals at the implied rates, each question costs about 1.33 units, or about $0.053. The monthly total is roughly 145,800 units, or about $5,830. If the agent instead uses the lean path (one search, two traversals, then ExecuteSql), the graph cost falls to about 0.25 units per question, or about $1,090 a month. The pricing page does not list ExecuteSql as an agent-unit operation, but the warehouse compute it triggers is still billed by the underlying engine.
Two lessons follow. Orchestration choices move your bill by about 5x, and the cheapest path also gives you the most control over the SQL. Second, add the hidden line items: the LLM tokens your own agent spends, warehouse query cost, and document-graph storage. Even a modest 4 GB document graph adds $20 a month, which is trivial. Nightly regression evaluation is not trivial. Running 300 golden questions three times a night through agentic retrieval for 30 nights costs roughly $900 a month at the implied rate.
AWS Context vs Semantic Layer and GraphRAG
The obvious question for data teams is AWS Context vs semantic layer: does this replace dbt MetricFlow or Cube? The short answer is no. The two solve overlapping but different problems, and AWS’s own design assumes you will feed governed metrics into the graph.
| Dimension | Semantic layer (MetricFlow, Cube) | AWS Context | GraphRAG over documents |
|---|---|---|---|
| Primary unit | Metric, dimension, entity, defined in code | Graph of data assets, terms, rules, join paths | Entities and relations extracted from text |
| How knowledge enters | Engineers write YAML or JS models | Crawl, log mining, LLM inference, curation | LLM extraction from documents |
| Correctness guarantee | Deterministic: the same query always compiles to the same SQL | Probabilistic retrieval, then curated | Probabilistic |
| Coverage | Only what someone modelled | Whole estate, including the long tail | Documents only |
| Agent interface | Metric query API, MCP servers from vendors | MCP tools: search, traverse, retrieve, SQL | Custom retrieval |
| Governance | Code review, Git | Curation policies, changesets, IAM, Lake Formation | Usually ad hoc |
| Best for | Board-level KPIs that must never drift | Exploratory and cross-system questions | Policy and procedure questions |
The deeper difference is determinism versus coverage. A semantic layer is a compiler. If “net revenue” is defined, every query compiles to the same SQL, and accuracy for that metric is effectively 100%. However, only a few hundred metrics are ever modelled, while warehouses hold thousands of tables. A context graph covers the long tail by inference, and pays for that coverage with uncertainty.
The two approaches are therefore complementary. A sensible architecture routes questions about certified KPIs to the semantic layer’s metric API. Everything else goes through the context graph. AWS supports this by ingesting governed metrics from Unity Catalog and Snowflake Horizon (preview), and by accepting Ossie metric files.
Compared with GraphRAG, AWS Context is a more structured, more governed variant of the same idea. Classic GraphRAG, explained in our GraphRAG knowledge graph architecture guide, extracts a graph from text and retrieves community summaries. AWS Context anchors its graph on deterministic catalog metadata first, then adds document-derived knowledge on top. That anchoring is why it can answer data questions with executable SQL rather than prose.
It also fits neatly into the broader practice of context engineering for production LLM agents. The graph is a context source. Your agent still decides how much of it to load into the context window, and when.
Reading the BBVA Numbers Carefully
The launch included two customer claims, both published by Amazon. Per Amazon’s announcement, BBVA tested agents on loan processing tied to applicant default risk. Agents given only raw data were right 54% of the time. With AWS Context in early testing, accuracy rose to 89%, and to 97% after corrections. 3M reported that accuracy on its top sales-order questions “doubled” during preview. AWS also reported an internal test in which agents found the right dashboard 40% more often.
These are customer-reported and vendor-published results. They may well be real, but no release states the number of questions, how they were chosen, who graded them, which model was used, or whether the “after corrections” score was measured on the same questions that were corrected. That last point matters most. If curators fix exactly the questions that failed and then re-run the same set, a high score is close to guaranteed. That is training on the test set.
Sample size matters too. With a 95% normal-approximation interval, an accuracy of 89% measured on 100 questions has a margin of about ±6 percentage points. At 54% on 100 questions, the margin is about ±10 points. The jump from 54% to 89% would still clearly be significant at that size, which is encouraging. The 89% to 97% step, though, cannot be judged without knowing whether a held-out set was used. Treat the numbers as a strong signal that structured context helps, not as a forecast for your estate.
A Worked Evaluation Method for Your Own Pilot

Figure 4: A defensible evaluation loop: a baseline against the raw schema, a run with the context graph, execution-based scoring, an error taxonomy, and re-testing on a held-out split.
The only accuracy number that matters is the one measured on your own data. Figure 4 lays out a method that makes the comparison honest.
First, build a golden set of 200 to 500 real questions taken from analyst tickets, Slack threads and dashboard requests, not invented ones. For each question, have an analyst write the gold SQL and store the expected result set. Then split the set 70/30 into a tuning set and a held-out set before anyone looks at failures.
Next, run the agent twice: once with raw schema access as the baseline, and once with the Agent Context. Keep the model, prompt, temperature and tool budget identical. Score with execution match, meaning you compare result sets, not SQL strings. Two correct queries can look completely different. Allow tolerance for float rounding and row order, but not for missing rows.
Then classify every failure. Did the agent pick the wrong table, the wrong join, the wrong metric definition, or miss a filter? Did it get permissions wrong or simply run out of time? This error taxonomy is your curation backlog. Fix failures on the tuning set only, by turning corrections into changesets and assertion tests. Re-run against the held-out set. If the gain on the held-out set is close to the gain on the tuning set, the graph is learning generalisable knowledge. If it is not, you are memorising answers.
Finally, report results with confidence intervals and per-category breakdowns. “89% overall” can hide 99% on simple lookups and 60% on multi-hop joins. The second number decides whether the system is usable. AWS’s assertion-style evaluation tests can serve as the regression gate, so no changeset is promoted unless the golden set still passes. Our guide to gating AI agent releases with evals describes the same discipline for agent releases in general.
Trade-offs, Gotchas, and What Goes Wrong
Staleness is the default failure mode. A context graph is a cache of meaning, and caches go stale. A column is renamed, a metric definition changes at fiscal year-end, or a table is deprecated. Until the graph is updated, agents confidently use the old knowledge. Structured re-ingestion can be scheduled, but documents and curated definitions drift silently. Make re-ingestion schedules and a “definition owner” for each critical term part of the rollout.
Learning from usage can learn the wrong thing. Usage-based ranking rewards popularity, not correctness. If a team habitually queries a deprecated table, query-log mining will promote it. The feedback loop has the same risk, because agents can propose knowledge from tasks that only looked successful. This is exactly why the curation policy exists. Teams that set every changeset to auto-apply to save time will find their graph slowly filled with confident errors. Start strict, with human review for anything that touches certified metrics.
Identity misconfiguration fails open. If the MCP client signs with a broad service role, the “identity-aware” promise disappears. Test with two users who have different Lake Formation grants and confirm they get different answers.
Regional and catalog limits. At GA the service runs in only three Regions, and sources must sit in the same Region as the Agent Context. Cross-Region connections are not supported. Several popular engines remain in public preview, including RDS for PostgreSQL, MySQL, MariaDB and SQL Server. So do Snowflake and Databricks, and customer-managed keys are listed as “coming soon”. Firms with EU data-residency needs outside Ireland, or heavy Snowflake estates, will find GA coverage thinner than the keynote suggested.
Throughput limits are real. ExecuteSql allows just two concurrent queries per account at GA. A 200-analyst rollout will hit that ceiling at peak hours. Retrieval quotas are not yet in Service Quotas, so increases require an AWS Support request. Plan load tests early.
Cost is hard to forecast. Agent units have no published token equivalent, and native budgets do not exist yet. Set CloudWatch alarms and check your bill weekly during the pilot.
Lock-in is moderate, not total. AWS said in June that key metadata is published to S3 Tables in Apache Iceberg format, which helps. Ontologies use W3C standards. Curated join paths, changesets and evaluation tests, however, live in a proprietary service.
Practical Recommendations
Treat AWS Context as a knowledge-management project with an AI interface, not as an AI project. The service makes it cheap to build a first graph, because structured ingestion is free and quick. The work that decides success is curation: deciding which tables are canonical, writing down metric definitions and filters, and building an evaluation set that catches regressions.
Start with one bounded domain where wrong numbers are expensive and the questions are well understood, such as finance reporting or claims. Keep certified KPIs in your semantic layer and let the graph cover the long tail. Prefer the lean search-traverse-SQL path for analytics agents. It is cheaper by the derived pricing and more auditable, because you can log the exact SQL. Reserve AgenticRetrieve for mixed document-and-data questions.
A pilot checklist:
- Pick one domain and create one Agent Context in a Region where your data already lives.
- Connect the Glue Data Catalog first; add documents only after the structured graph evaluates well.
- Write retrieval instructions for the five filters every analyst applies by habit.
- Build a 200 to 500 question golden set with gold SQL, split into tuning and held-out sets before you begin.
- Set the curation policy to human review for changes touching certified metrics.
- Wire per-user identity through IAM Identity Center and test with two differently-permissioned users.
- Track agent units weekly and alarm on spend until native budgets ship.
- Re-run the held-out evaluation before promoting every graph version.
If the held-out gain is large and stable after four to six weeks, expand to a second domain. If it is not, the problem is usually missing definitions, not the service, and no amount of tooling will substitute for writing them down.
Frequently Asked Questions
What is AWS Context?
AWS Context is a managed AWS service, generally available since 1 December 2026, that builds a governed “context graph” for AI agents. The graph links your data assets, such as tables, columns and documents, to business definitions, rules, join paths and ontologies. Agents access it through hosted MCP tools that search the graph, traverse relationships, run agentic retrieval and execute read-only SQL. Results are scoped to the calling user’s permissions and cite their sources. At GA it runs in US East (N. Virginia), US West (Oregon) and Europe (Ireland).
Is AWS Context free?
Partly. Building and storing graphs from supported AWS structured services is free, with no node limit. This covers Aurora, RDS, DynamoDB, Redshift, Athena and S3 general-purpose and table buckets. Using the graph is not free. Retrieval, search, traversal, curation, feedback and document-based graph building consume agent units at $0.04 each. Storage for graphs built from other sources costs $5 per GB-month. New accounts get a one-time trial of 3,750 agent units, worth $150, within the first 30 days. Native spend budgets are listed as coming soon.
How is a context graph different from a semantic layer?
A semantic layer such as dbt MetricFlow or Cube compiles metric requests deterministically into SQL. It is exact, but it covers only what engineers modelled. A context graph covers the whole data estate by crawling catalogs, mining query logs and using LLM enrichment. It then relies on retrieval and curation, so its answers are probabilistic. The two work best together. Keep board-level KPIs in the semantic layer, and use the context graph for exploratory, long-tail and cross-system questions. AWS Context can ingest governed metrics from Unity Catalog and Snowflake Horizon, currently in preview.
Does AWS Context support Snowflake and Databricks?
Only in preview at GA. Snowflake Horizon Catalog and Databricks Unity Catalog connections are listed as preview features. They enforce native access policies and ingest governed metrics. Lineage discovery from those platforms, from Spark jobs on EMR and Glue, and from SageMaker AI training is also in preview. Several AWS engines, including RDS for PostgreSQL, MySQL, MariaDB and SQL Server, plus Kinesis and MSK, are in public preview. Check the AWS Context features page for current status before you plan a production rollout around them.
How much does AWS Context improve agent accuracy?
AWS has published customer claims, not independent benchmarks. Per Amazon, BBVA’s loan-risk agents went from 54% correct on raw data to 89% with AWS Context in early testing, and up to 97% after corrections. 3M reported accuracy on top sales-order questions “doubled” in preview. Neither release discloses question counts, grading method, model or whether a held-out set was used. Measure your own gain with a golden question set, execution-match scoring and a held-out split, as described in this article.
Which agents can use AWS Context?
Any MCP-compatible client can use it. AWS names Amazon Bedrock AgentCore, AWS Quick, Strands agents, Claude Code and Kiro, and community guides show Cursor and Claude Desktop configurations. The MCP endpoint is hosted per Region and uses Streamable HTTP with IAM SigV4 signing. Make sure your client follows tools/list pagination, because the first page shows only four tools. Raise client timeouts too, since streamed agentic retrieval can run for up to 300 seconds.
Further Reading
- Semantic layer for LLM analytics: MetricFlow vs Cube and governed text-to-SQL: the deterministic half of the architecture described above.
- Context engineering for LLM agents in production: how to budget and assemble what an agent actually sees.
- GraphRAG and knowledge-graph RAG architecture: the document-centric graph retrieval pattern AWS Context builds on.
- AWS Context user guide: official concepts, MCP tools and quotas.
- AWS Context pricing: agent-unit rates and AWS’s worked examples.
By Riju — about
