Chapters
- 01 · The Context Problem
- 02 · Give the Data Business Meaning
- 03 · Decide What the AI Should Trust
- 04 · Build the Context Layer
- 05 · Connect It to Live Data
- 06 · Control What AI Can See and Do
- 07 · Test the System
- 08 · Operate It
- 09 · Expand Beyond the First Workflow
- 10 · Capstone: Trace a Reliable Answer
12 min · Interactive exercise
Connect It to Live Data
Combine reliable tool access with business context.
View your context layer
The context layer can now explain Acme. It still needs a safe way to reach live CRM records. Keep three jobs separate: access, interpretation, and enforcement.
MCP supplies a connection contract
An MCP server can expose tools, resources, and prompts to an AI application. It can authenticate a connection and give the model a structured way to request CRM data. It does not know what “qualified pipeline” means in your company or which abandoned field looks authoritative.
Context shapes the plan before execution
For “How much qualified pipeline did we create last quarter?”, load fiscal dates, qualification criteria, exclusions, currency handling, and the allowed fields. The planner can then produce an exact date range and filters instead of translating business language on the fly.
The tool boundary checks the finished plan
Validate the final objects, fields, operation type, and user scope in code. This happens after planning and before the query runs. A model that plans an unapproved field gets a deterministic error. It does not get to substitute a similar field.
question
→ always-load context
→ relevant rule bodies
→ query plan
→ tool-boundary validation
→ CRM query
→ grounded answer + traceAssemble that sequence in the GTM Lab. A valid tool call is not proof of a valid business answer.
Reference
GTM Lab
Saved locallyThis query uses the fiscal, exclusion, currency, and allowlist rules already in your context layer.
CRM query plan
Qualified pipeline
QRY-3117- Object
- Opportunity
- Date filter
- Last calendar quarter
- Qualification filter
- All open records
- Fields requested
- 12
- Unapproved fields
- 1
- Connection
- MCP · authenticated
Build the query plan
A leader asks: “How much qualified pipeline did we create last quarter?”
What happened
Marcus, CRO asked:
“How much qualified pipeline did we create last quarter?”
Agent response
“$4.8M. I queried every Opportunity created during the last calendar quarter.”
Tool-only agent: MCP returns valid Opportunity rows, but the request contains no definition of qualified pipeline or last quarter.
How to complete this chapter
- Choose the steps that must happen before query execution.
- Keep connection, meaning, and enforcement separate.
- Run the plan.