Skip to content

Your first context query

Once your agent is connected, querying context is the same operation under the hood — the query-context tool — whether you call it over MCP, REST, or an SDK. Here is the same first query, three ways.

Replace <YOUR_API_KEY> with your fab_sk_… key and ws_<your_project> with your workspace ID. Use the URLs shown in your console.

With Fabric installed as an MCP server (see the per-client guides), just ask your agent a question that depends on your data:

“What are the top accounts at churn risk?”

The agent calls the query-context tool; Fabric traverses your context graph and returns the ranked entities and relationships. Nothing else to do — the result is grounded, scope-pinned, and audited.

Your query ran through Fabric’s governed pipeline: it was authenticated, scope-pinned to your workspace, validated, policy-checked, executed by graph traversal over your context graph, post-processed (PII redaction), and recorded in the audit log. The response carries a lifecycle_id you can use to trace and audit the call.

Because retrieval is graph traversal — not a full-corpus dump into the prompt — the result is the connected neighborhood your query actually needs, which keeps token cost low.