Knowledge context on Google Cloud: the tools, and the ways to use them

Knowledge context is what an agent or a person needs to know about your data: what a column means, which rules apply, how a metric is computed. It steers agents (which SQL they write) and people (what they read and approve). Google gives you several tools for it. Each does one job, and each works without the others.

Labels: verified we ran it and saw it · docs from Google's docs, a spec or a README · guess not checked. Colours only mark the tool (orange = the MCP server); the labels alone say how sure we are. Based on hands-on tests, 2026-11-22 to 11-28 (Knowledge Studio in Preview, kcmd 0.2.5) on a GA4 table and a Citi Bike table. Proof sits in the collapsed "What we saw" boxes; every step, command and screenshot is in the detailed report and agent-platform-poc.

1The toolboxwhat each tool is, the overview picture, the catalog's words

One picture first. Context goes in one of three ways, gets reviewed (or not), lives in one catalog, and is used by people and agents.

Swipe sideways to see the whole picture →

Three ways in (by hand, Studio, local agent and files) fill Knowledge Catalog, which holds table cards and context sets; it is read by people in the Google Cloud web console, by agents live through the KC MCP server, or as OKF files via kcmd pull. Every path was tested. 1 · WAYS IN · ANY ONE WORKS ALONE 2 · STORED 3 · USED · SAME FOR EVERY WAY IN A · By hand ✓ tested you type it: bq, gcloud, console writes: card + pages review: none, live at once B · Knowledge Studio ✓ tested Google's agent reads your docs writes: pages only review: change request, on screen C · Local agent + files ✓ tested kcagent or yours; files in git writes: card + pages review: git diff / PR, then push Knowledge Catalog Table card one per table: schema, descriptions, aspects, glossary links Context set Markdown pages for agents: rules, metrics, playbooks entry link People ✓ tested console (web UI) or gcloud: search, read, review, approve Agent · live ✓ tested KC MCP server, hosted by Google Agent · files ✓ tested kcmd pull → OKF; read, or kcmd mcp Your agent
The whole page in one picture. "Card" = the catalog's record for a table; "pages" = Markdown pages in a context set. ✓ tested = we ran that path end to end on GA4. Details for each way in are in the cards below. verified

The three ways in, up close

A · by hand
You type it yourself
You do
bq update or the console (Google Cloud web UI) for table and column descriptions; gcloud for aspect types, aspects on columns and glossary terms; BigQuery views for metric formulas; Markdown pages sent with kcmd push
Sources
what you and your team know
Writes
the table card + pages
Review
none: live as soon as it's written verified
B · Knowledge Studio
Google's hosted enrichment agent
Point it at
the tables to enrich; docs in a Cloud Storage bucket (we used this); test questions with known-good SQL
Also offered
connectors for Drive, Docs, Sheets, Slides, Confluence, Jira, GitHub, SharePoint: seen, not tried
It does
drafts pages, scores them on your questions, waits for a person
Writes
pages in a context set only
Review
a change request, page by page, on screen verified
C · local agent + files
kcagent (a sample) or your own
You give it
a folder of your docs (Markdown) + kcmd's local copy of the card
It does
runs on your machine and writes an overview into those files; kcmd push sends them up
But
a sample: needed 3 fixes to run; plan to customize it
Writes
the card overview + pages
Review
git diff / pull request before you push; the push itself skips review verified

The six tools, one job each

stores
Knowledge Catalog
What
Google's metadata database (part of Dataplex): facts about your data, not the data.
Holds
a card per BigQuery table (made automatically), aspects, glossaries, and context sets of pages.
Format
its own records (entries and aspects) behind an API, not files. Nothing in the catalog is saved as OKF; kcmd converts when you pull or push. verified
You use it via
the console (Google Cloud web UI), gcloud, REST API, the MCP server, kcmd.
writes · hosted
Knowledge Studio enrichment
What
A Google-hosted agent that reads your documents and table, drafts pages, tests them on your questions, and asks a person to approve.
Writes to
a context set only: pages + one link to the table.
Status
Preview; set up in the console (Google Cloud web UI) only (no API for tasks). verified
writes · your code
kcagent
What
Google's open-source sample enrichment agent (in GoogleCloudPlatform/knowledge-catalog). Runs on your machine; you can change it.
Writes to
the table card's overview, through kcmd files.
Status
a sample: needed patches to run. verified
syncs
kcmd
What
Google's "metadata as code" command-line tool. Copies catalog entries to a local folder and back.
Converts
catalog records ↔ OKF Markdown files (--format okf). It is the Google tool that turns catalog context into OKF and back. verified
Commands
init/pull (down), push (up, no review), mcp (serve the local copy).
Status
version 0.2.5, on npm. verified
file format
OKF (Open Knowledge Format)
What
Plain Markdown files with a YAML header, in folders. Any tool or agent can read them; no Google needed.
Used for
keeping context in git, and moving it in and out of the catalog with kcmd.
Not in KC
the catalog doesn't store OKF; you get OKF files only by pulling with kcmd. verified
Status
open spec v0.3; moved out of Google on 2026-11-18. verified
serves · hosted
Knowledge Catalog MCP server
What
Google's endpoint that agents call to search and read the catalog live (and, if you allow it, change it).
Where
https://dataplex.googleapis.com/mcp, 15 tools, uses the caller's Google login.
Status
worked with no extra setup. verified
Two MCP servers with similar namesKC MCP server: hosted by Google, live, 15 tools. kcmd mcp: runs on your machine, 3 tools, serves the local copy from the last pull. verified

The catalog's words

Everything in the catalog is an entry inside an entry group, with aspects attached. Here is how they nest, with real names:

Swipe sideways to see the whole picture →

Project contains location us, which holds entry group @bigquery with entries ga4_sample and events, and entry group ga4-merch-context with page entries; the table page links to the events entry Projectkc-okf-poc-261122 Locationus Entry group@bigquery system group: Google fills it from BigQuery Entryga4_sampletype: BigQuery dataset Entryeventstype: BigQuery table aspects on it: schema storage overview bigquery-table 0 of 24 columns described: names and types only Entry groupga4-merch-context type: context set (made in Studio). Entries = pages agentsroot page assets/…/ga4_sample/eventstable page documents/…topic pages, playbooks assets, documentsindex pages every page has aspects document overview (= the text) entry link reference
How the pieces nest in our GA4 project after Studio run 1. The dashed arrow is an entry link (type reference) from Studio's table page to the real table. verified snapshot
WordPlain meaningSQL Server analogy
EntryOne record per data object: a dataset, a table, a pagea row in sys.objects
Entry groupA folder of entries. @bigquery is Google's; you can make your owna schema such as dbo
Entry typeWhat kind of entry it is; decides which aspects are requiredthe object's class
Aspect typeThe blueprint for a block of fieldsa C# class
AspectA filled-in block on an entry, or on one columnan instance; an extended property with a schema
Entry linkA typed link between two entries: reference, definition, synonym, relateda foreign key between metadata rows
Glossary, termBusiness words stored as entries and linked to columnsa data dictionary
Context setAn entry group of Markdown pages for agentsa schema of curated views
Change requestProposed changes waiting for a different person to approvea pull request

📄 In the detailed report: Concepts in plain words has more terms with the same analogies.

2Ways in: three ways to fill the catalogby hand, Knowledge Studio, local agent + files

Each way works on its own. You can also mix them on the same table (part 5). Every way is laid out the same: when to pick it, the steps, where it lands, watch out.

A · By hand

Pick it whenyou know exactly what each column means and which rules apply, and you want structured fields that other tools can use.
Sourceswhat you and your team already know: metric definitions, data policies, notes, the people who own the data. You type it in yourself.
You needBigQuery and gcloud access; a context set for pages.
Lands inBigQuery (descriptions, views), the table card (aspects, glossary links), a context set (pages).
  1. Describe the table and its columns in BigQuery (bq update or the console (Google Cloud web UI)). The card copies them by itself.
  2. Tag columns with an aspect: create an aspect type once (a blueprint), then attach it to columns (gcloud dataplex aspect-types create, entries update).
  3. Add a glossary of business terms and link them to columns (terms with gcloud; the link in the console (Google Cloud web UI)).
  4. Make views for metrics, so every agent uses the same formula instead of rewriting it.
  5. Write pages for rules and playbooks as Markdown files and push them into a context set (way C's tools), linking the key page to the table.
The aspect type data-tier defines tier (public, internal, personal) and rule; three aspects attach it to birth_year, gender and bikeid Aspect type: data-tier the blueprint (like a class) tier: public | internal | personal rule: text @Schema.birth_year tier: personal rule: aggregate only, groups of 100+ trips @Schema.gender tier: personal rule: aggregate only, groups of 100+ trips @Schema.bikeid tier: internal rule: a bike, not a rider; don't combine
The key reads type@path: left of @ = which aspect type, right = where on the card; no path = the whole table. One aspect per type per path; writing again replaces it. Created with gcloud dataplex aspect-types create, attached with gcloud dataplex entries update --update-aspects. A global aspect type worked on a us table. verified lesson 26
Watch out A table copy (CREATE TABLE … AS SELECT) drops its column descriptions. Aspects and glossary links don't reach an agent's main lookup (part 4); put what agents need every time in descriptions or a linked page. verified
What we saw (Citi Bike table)

We added each layer one at a time and measured the agent's lookup (characters returned):

A rule only in a column description ("PERSONAL data: aggregate only") was ignored: the agent answered a per-station, per-day age question. With the same rule also in a linked page and a view, it refused and gave the allowed monthly figure. verified (one run, 4 questions) · lesson 26

First three sizes measured with gcloud dataplex context lookup, which adds a ~260-character wrapper to the same text.

📄 In the detailed report: Step 1 shows what a fresh GA4 card holds before any of this (almost nothing). Citi Bike isn't in the report; see lesson 26.

B · Knowledge Studio enrichment

Pick it whenthe knowledge sits in team documents (policies, metric definitions, notes) and you want agent-ready pages quickly, tested on your own questions.
Sources you point it atthe tables to enrich; documents in a Cloud Storage bucket (we used Google's 8 sample docs plus our own policy doc, and Studio's pages quoted facts found only in our doc); optional glossaries; test questions with known-good SQL. The task's Scope page also lists external sources: Google Workspace (Drive, Docs, Sheets, Slides), Atlassian (Confluence, Jira), GitHub and Microsoft SharePoint, each with a Set up button. We saw them in the console (Google Cloud web UI) but did not connect any. verified
You needa source (see above), the table, optionally test questions with golden SQL, a service account, a context set, and a person to approve.
Lands ina context set only: Markdown pages + 1 link to the table. Nothing on the table card.
Studio's external sources: Google Workspace, Atlassian, GitHub, Microsoft SharePoint, each with a Set up button
Why the external sources matter

Most team knowledge lives in Drive, Docs, Sheets, Slides, Confluence, Jira and GitHub, not in a storage bucket. Studio's task setup offers a Set up button for each of them. verified

If they work as the screen says, Studio reads your knowledge where it already lives: no export step, and a scheduled run could pick up edits to a Doc or a wiki page. That would make keeping agent context fresh much cheaper. guess

Not tried yet: we don't know what they read, how access is granted, or how they handle permissions. It's the next thing worth testing.

Setting up a Studio task, step by step verified

Create context set panel: display name, context set id, description, location us-central1 (cannot be changed later)
Step 1 of 7 · Create a context set

The folder Studio writes into. A name, an id and a location you can't change later. The default is us-central1; we chose us to match the data. A project Owner still needed the Dataplex Content Editor role to open it. verified

Create enrichment task, Define: display name, task ID, custom instructions box
Step 2 of 7 · Name the task

A name, a task id, and optional custom instructions ("in one or two sentences, say what this task should improve"). In run 2 an instruction changed how much Studio wrote, not what kind of thing it wrote. verified

Scope: project, context set picker listing our context sets, more BigQuery or Lakehouse resources, knowledge signals for Cloud Storage and glossaries
Step 3 of 7 · Choose what to enrich and read

Pick the context set, then the resources to enrich (BigQuery or Lakehouse tables). Knowledge signals are extra sources it reads but doesn't change: Cloud Storage buckets, folders or files, and glossaries. We gave it one table and a bucket of 9 documents. verified

External sources: source configuration file, Google Workspace (Drive, Docs, Sheets, Slides), Atlassian (Confluence, Jira), GitHub (repositories and READMEs), Microsoft (SharePoint), each with Set up
Step 4 of 7 · Connect external sources

Same page, further down: Google Workspace (Drive, Docs, Sheets, Slides), Atlassian (Confluence, Jira), GitHub (repositories, READMEs) and Microsoft (SharePoint), each with Set up, or one Cloud Storage YAML file for all of them. Seen, not tried. verified (the options)

Improve: evaluation set and curation set files, enable auto-publish checkbox, self-learning toggle
Step 5 of 7 · Add a test and choose publishing

Evaluation set: questions with known-good SQL, to score the change. Curation set: questions to tune on. Auto-publish off means a person reviews every change. We used 12 questions; auto-publish and self-learning off. verified

Run: user service account picker, trigger, notifications, Create button
Step 6 of 7 · Choose who it runs as

A service account reads the sources and writes the context set. Run on demand or on a schedule; email a report after each run. Creating the task took about 4.5 minutes with no progress shown. verified

Jobs tab: the run with status Needs review, 29 min 12 sec, 104K tokens
Step 7 of 7 · Wait for review

Run 1 took 29 minutes and 104K tokens and ended as "Needs review", not "Succeeded". Nothing is published yet: a person reviews it (part 3). verified

Studio wrote nothing on the BigQuery table card (0 column descriptions, 0 sensitivity fields, 0 glossary terms) and wrote 7 or 8 pages in the context set, linked to the table Studio runrun 1 or run 2 nothing Table card @bigquery / events column descriptions0/24 nested fields0/109 sensitivity fields0 personal-data flags0 glossary terms0 rule objects0 overview: kcagent's text from step 2, unchanged Context set ga4-merch-context agents ├ assets │ └ …/events └ documents ├ metrics ├ governance └ pitfalls each page = 1 entry with 2 aspects: document + overview (the Markdown) + 1 entry link → table
Both runs, read back through the API after approval. Run 1's page list shown (run 2 merged governance into the table page). verified run 2 snapshot · Google's docs agree: enrichment doesn't overwrite BigQuery descriptions or create glossary terms docs
Watch out Studio writes pages beside the table, not fields on it: no column descriptions, sensitivity fields, glossary terms or rule objects, even when the instruction asks for them. Its confidence score measures whether a statement traces to a source, not whether it's right, so the review matters. verified · docs agree it doesn't create glossary terms or overwrite BigQuery descriptions docs
What we saw (GA4, two runs)
Run 1Run 2 (+ instruction asking for fields, terms, rules)
Column description fields · glossary terms · rule objects0 · 0 · 00 · 0 · 0
Columns described in prose12 of 2424 of 24
Planted policy facts found, citedall14 of 14
Studio's own test, before → after67% → 100%50% → 100%
Time · tokens (free in Preview) · BigQuery29 min · 104K · ~USD 0.4133 min · 108K · ~USD 0.40
Flaws a reviewer had to catcha page that contradicts itself (83% confidence)wrong tier for 19 columns (84%); SQL missing

The instruction changed how much Studio wrote, not what kind. Same inputs gave a 67% and a 50% "before" score, so treat its test as rough. With Studio's pages, an outside agent went from 6/15 to 10–12/15 on our questions, and from 0/3 to 3/3 on held-out policy questions. verified

📄 In the detailed report: Step 3 · run 1 (setup, logs, every proposal, screenshots), Step 7 · run 2, Step 5 · agent test.

C · Local agent + files (kcagent, OKF, kcmd)

Pick it whenyou want to own the code that writes context, review it in git, hand-write playbooks, or build context outside Google and then publish it.
Sourcesfiles on your machine. kcagent reads a folder of your docs (we gave it Google's 8 sample Markdown docs) through a small file-search tool, plus kcmd's local copy of the table card. Your own agent or a person can use anything they can read. verified
You needkcmd on your machine; a folder of your source docs; a writer: kcagent, your own agent, or a person; a context set. kcagent is a sample: it needed 3 fixes to run, and you should expect to change it to fit your data.
Lands inwherever the files point: the table card (e.g. its overview) or pages in a context set.
  1. Get a local copy: kcmd init + pull writes catalog entries as files. Use --format okf for pages.
  2. Write or generate: kcagent fills in a table's overview from your docs; your own agent or a person writes OKF pages (a page needs the document aspect in its header).
  3. Review in git: diffs, pull requests, rollback.
  4. Publish: kcmd push writes straight to the catalog, no review; or send a change request by API so a second person must approve.
kcmd pull copies the context set down to OKF files; kcmd push writes files back with no review and not atomically; a change request is the reviewed route; kcmd mcp serves the local files to an agent Context set in Knowledge Catalog ga4-merch-context pull init --kb … --format okf --pull push direct, no review not atomic change request raw API call someone else approves Local folder (OKF bundle) 7–8 Markdown files + _links.yaml keep it in git: diffs, review, rollback kcmd mcp Any agent, anywhere reads the files, or 3 tools over stdio
The kcmd round trip on GA4. verified step 4
Watch out kcmd push skips the catalog's review (anyone with contentEditor can change what agents read) and isn't atomic: a failed page can leave an index pointing at nothing. kcmd's default layout pulls nothing for pages (a 403); use --format okf. kcagent is a sample, not a product. verified
What we saw (GA4)
  • kcagent: needed 2 patches to run in a new project, has no retry on a 429 quota error, and two identical runs shared 0 sentences. Its SQL examples were valid 8/8 for the table and invalid 8/8 for the dataset. It wrote a ~5,400-character overview onto the real table card, with nothing in the console (Google Cloud web UI) showing a machine wrote it. verified
  • Hand-written playbook pushed with kcmd: published directly, no change request. First push applied 2 of 3 changes until we added the document aspect. An agent then read it alongside Studio's pages. verified
  • Change request by API: created in state NEW; the author got 403 "not authorized to approve their own ChangeRequest", even as project Owner. verified

📄 In the detailed report: Step 2 · kcagent, how kcagent works, Step 4 · OKF and playbooks.

3Review: who checks it before people and agents use itchange requests, git, and the route with no review

Agents act on whatever is in the catalog, so someone should check context before it's published. Each way in has a different gate, and one route has none.

Does a manual push show up for review? No.kcmd push, gcloud and bq update write straight to the catalog. We listed the change requests before and after a kcmd push: still only Studio's one request, nothing new. After kcagent's text was pushed, the console (Google Cloud web UI) showed it as the table's overview with an Edit button and no sign a machine wrote it. verified

Swipe sideways to see the whole picture →

Four routes into the catalog and their review gates: Studio change request reviewed in the console; OKF files reviewed by git pull request then kcmd push; change request by API approved by a second person; direct edits with no gate WHO WRITESTHE REVIEW GATEPUBLISHED TO Studio run Google's enrichment agent Change request, reviewed on screen in the console (Google Cloud web UI): per page view, edit, remove; then approve or deny ✓ tested OKF files in git kcagent, your agent, a person Git pull request, then kcmd push diff, comments, rollback in git; we used git diff as the preview. The catalog checks nothing. PR not tried A script or app anything that calls the API Change request by API a second person approves in the console; the author can't approve: 403, even as Owner ✓ tested Direct edits bq update, gcloud,console edits, kcmd push No gate live as soon as it's written; the console shows no sign of who or what wrote it ✓ tested Knowledge Catalog what people and agents read
The four routes we used, and where the check happens. Only change requests are enforced by the catalog itself; a git review only works if you also limit who can run kcmd push. verified

Studio's review screen, in the Google Cloud web console

A Studio run ends as "Needs review", not "Succeeded". Its pages wait in a change request until a person approves. Auto-publish is off by default; turning it on publishes changes that pass a quality score without a person. verified

Run details: 9 proposals grouped as document entries, index entries and entry links, each with a checkbox, View proposal, Remove selected, Approve selected
Step 1 of 3 · See every proposal

Every proposed page, index and link, each with a checkbox: remove some, approve the rest.

Proposal viewer 2 of 8: the events table page, confidence 86%, Changes and Preview, edit pencil, Remove proposal
Step 2 of 3 · Read each page

Step through "2 of 8" like files in a pull request: raw changes or rendered preview, a confidence score, an edit pencil.

Run overview after approval: status Approved, applying changes; evaluation baseline 67% to projected 100%; 8 approved, 0 rejected
Step 3 of 3 · Approve and publish

The test score before approval (67% → projected 100% on our 12 questions), then "8 approved, 0 rejected". Pages went live about 2 seconds later.

Reviewing OKF files in git

With way C, the context is files, so git is the natural review tool.

Our advice: pick one gate and make it the only oneEither git pull requests + kcmd push (fast, but the catalog enforces nothing), or change requests (the catalog enforces a two-person rule for API requests). Don't mix them without a rule, because kcmd push silently skips the catalog's review. Our verdict

📄 In the detailed report: Step 3 · Studio (every review screen), Step 4 · OKF and kcmd (push vs change request).

4Use it: people, command line, agentspeople in the console or command line; agents live or from files

However the context got in, it's used in four ways: two for people, two for agents. All four read the same published catalog.

WhoHowGood for
A person, visuallythe console (Google Cloud web UI): Knowledge Catalog search, the table's page (Overview, Schema with a description cell per column, aspects), context sets in Knowledge Studioreading, checking, editing, approvingverified
A person or script, command linegcloud dataplex entries search, gcloud dataplex entries lookup --view=ALL, gcloud dataplex context lookup, the REST APIchecks, scripts, CI, measuring what an agent will getverified
An agent, livethe KC MCP server (below)agents on Google Cloud that need the current, approved contextverified
An agent, from filesOKF files from kcmd pull, read directly or through kcmd mcp (below)agents outside Google, offline, or with context kept in gitverified
All four are tested and workPeople: we searched, read and approved in the console (Google Cloud web UI) and checked every step with gcloud. Live: our ADK agent called Google's KC MCP server, got the table card and Studio's pages back, wrote the SQL and answered "2,434 purchases", the same number a hand-written bq query gave. Files: kcmd pull wrote the catalog to local OKF files, and kcmd mcp served them to a LangGraph agent, which got 12 of 15 GA4 questions right. verified
Tip: see what an agent seesgcloud dataplex context lookup returns the same text the MCP server's lookup_context gives an agent (plus a ~260-character wrapper). Run it before blaming the agent. verified

1 · Live, through the KC MCP server

Pick it whenthe agent runs with Google credentials and must see the current, approved context, checked against the caller's permissions.
The agent getsa list of tools; you choose which ones with a filter.
Sequence: the agent calls search_entries, then lookup_context, through the MCP server, then execute_sql on BigQuery, and answers 2,434 purchases ADK agentGemini KC MCP serverreads the catalog BigQueryBigQuery tools Q: "How many purchases in December?" 1 search_entries 2 hits: the table and its dataset 2 lookup_context ~35,500 characters: the card + Studio's linked pages (with the partition column and MSC-417 rules) 3 execute_sqlfiltered on event_date_dt 2,434 Answer: 2,434 purchases bq query by hand gave the same number
A real trace on GA4. 5 model calls, 4 tool calls (one more was remember_analyst), 30.8 s. The large lookup stays in the conversation, so the SQL call alone sent ~31,000 input tokens. verified lesson 3

The 15 tools. Highlighted = the 3 a question-answering agent needs. Struck = the 7 that change things; leave them out and the agent can't delete anything. verified

search_entrieslookup_contextlookup_entry lookup_entry_linkslist_entriesget_glossaryget_operationget_entry_group_iam_policy create_entry_groupupdate_entry_groupupsert_entryupsert_entry_linkdelete_entrydelete_entry_linkset_entry_group_iam_policy
What one lookup_context call brings Brings: the table card (names, types, descriptions, overview) + every context-set page linked to that table + the dataset's card.
Leaves out: custom aspects and glossary links. For those the agent needs lookup_entry, lookup_entry_links or get_glossary, and an instruction saying when. verified
What we saw: lookups grow with linked pages

The lookup stays in the conversation, so it's re-sent on every later model call. On Citi Bike both versions got all 4 questions right, but the agent used 282K input tokens with Studio's pages vs 171K with the hand-built ones. verified (one run) · lesson 3, lesson 26

2 · As files: kcmd pull → OKF

Pick it whenthe agent runs outside Google, offline, or on a schedule, or you want the context in git.
The agent getsa folder of Markdown files. It reads them directly, through kcmd mcp, or through your own small MCP server.
The catalog doesn't store OKFIt keeps entries and aspects behind an API. OKF files exist only after kcmd pull with --format okf writes them, and kcmd push turns them back into entries. Without --format okf, kcmd uses its own layout, which pulled nothing from our context set (a 403 error that kcmd 0.2.5 treats as fatal). verified

kcmd init --kb <project>.<location>.<context-set> --format okf --pull gives you this:

bundle/
├ agents.md                 ← root page (not index.md)
├ assets.md                 ← index page, next to its folder
├ assets/bigquery/kc-okf-poc-261122/
│  ├ ga4_sample.md
│  └ ga4_sample/events.md   ← table page
├ documents.md
├ documents/calculating-core-metrics.md
├ documents/pitfalls.md
└ _links.yaml               ← entry links (page → table)
---
type: knowledge-base
x-kcmd:
  entryType: …/entryTypes/document
  entrySource:
    labels: {generator: enrichment_agent, source: knowledge_agent}
  aspects:
    dataplex-types.global.document:
      job: {name: enrichment-agent/enrich-…, runTime: 2026-11-24T19:45:19Z}
---
# Pitfalls that silently produce wrong answers
…  cites sources as [1], [2] …
OKF v0.3 fieldIn Google's export?
type (the only required one)yes
title, descriptionno
generated, verified, sources (trust)no
index.md, footnote citationsno: agents.md root, [n] lists
Watch outFiles are as fresh as the last pull. And because the approval isn't written into the files, a strict OKF reader treats every page as "unverified", even after a person approved it. verified (fields) · effect on readers docs
What we saw: files vs MCP

Same agent, same 15 GA4 questions: schema only 6/15; Studio's pages as files 10/15 and 12/15; through kcmd mcp 12/15 and 12/15. Files and MCP were equally accurate; MCP used about 3× the tokens in one test and 1.25× in the other. Our own OKF MCP server (3 tools: list_pages, get_page, search_pages) reads the catalog live instead of files, because a copy drifts. verified · lesson 5

📄 In the detailed report: Where OKF fits (all the ways an outside agent reads context), Step 5 · agent test. The hosted MCP server is in lesson 3, not the report.

5Choose & combinehow they fit together, and which to use when

They don't depend on each other

ToolNeedsDoesn't need
Studiothe catalogkcmd, OKF, kcagent
KC MCP serverthe catalogStudio, kcmd, OKF
kcmda Knowledge Catalog: every command names oneStudio
kcagentkcmd (to read and write entries), gcloud login, Gemini on Vertex AI (hard-coded; we patched the model name)Studio
OKFnothing: it's filesanything from Google

Why kcmd and OKF exist, and what needs Google

Our reading of whykcmd and OKF are Google's bridge between the catalog and everything outside it. Context made in Google (by hand or by Studio) can leave as plain files for agents that don't run on Google, and context made outside (your docs, your own agent, git) can come in. Google doesn't say this in one place; we're inferring it. guess What supports it: the spec calls OKF "a universal, vendor-neutral format" docs, and it moved out of Google into its own open project on 2026-11-18 verified.
Your setupWhat works
You use Google CloudThe full loop: your sources → kcagent (or your own agent, or Studio) → the catalog → kcmd pull --format okf → OKF files any agent can read. And back with kcmd push. verified
No Google Cloud at allOKF still works: it's just Markdown files, which any agent can read. But kcmd and kcagent don't work as shipped: kcmd always talks to a Knowledge Catalog, and kcagent runs gcloud at start and calls Gemini on Vertex AI verified. So you write OKF yourself, or with your own agent (kcagent's code is a useful pattern to copy). The OKF project ships agent skills okf-generate and okf-consume for this docs (we didn't try them).

Mixes we actually ran

Which to use when

I want to…UseDon't expect
describe columns, mark sensitive onesA: BigQuery descriptions + custom aspectsStudio to do it (0 fields in 3 runs)
turn team documents into agent pagesB: Studio (or C with kcagent if you must own the code)structured fields, exact SQL, a flaw-free draft
keep context in git, hand-write playbooksC: OKF files + kcmd push, or a change requesta review on kcmd push; atomic pushes
a person approves every change before agents see itB (Studio's review screen) or a change request by API; limit who holds dataplex.contentEditor so nobody can kcmd push around itStudio to require a second person; a record of removed pages
review AI-written context line by line in gitC: commit first, then git diff and a pull request before kcmd pushkcmd push --dry-run to list the changes
check what an agent will seegcloud dataplex context lookup, or read the table's page in the console (Google Cloud web UI)custom aspects or glossary links in that lookup
a GCP agent that reads current, permission-checked contextLive: KC MCP server with a short tool filtersmall token bills: linked pages come with every lookup
an agent outside Google or offlineFiles: kcmd pull → OKFfreshness between pulls; OKF trust fields
a business glossary agents useA: glossary + links, and tell the agent to call get_glossary; or put meanings in descriptions or pageslookup_context to include glossary links

Before you build your own

If you're building…Already existsThe real gap
an OKF viewerOKF is plain Markdown; any Markdown viewer reads it, and the console (Google Cloud web UI) shows the same pagesGoogle's export has no titles, descriptions or trust fields to show
a local "knowledge catalog engine"kcmd pull + kcmd mcp, or the hosted KC MCP serverkcmd 0.2.5 rough edges (default layout 403, no atomic push)
an app feeding glossaries into the catalogglossary and entry-link APIs; the MCP server's upsert_entry_link, get_glossarylookup_context doesn't pass glossary links to agents; not tested from an app
a context-writing agentStudio (hosted, with tests and review) and kcagent (open source)structured output: neither filled column fields or glossary terms for us

📄 In the detailed report: Step 6 · Verdict: capability by capability, plus a checklist for comparing with a home-built context agent.

Sources

Caveats: one or two runs each, one GA4 table (public, obfuscated) and one Citi Bike table. Studio is in Preview and changes week to week.