Grounded access: one governed interface
A semantic layer helps only if every caller reads the same meaning under the same rules. Colrows gives people, applications, and agents one governed interface to your structured data, your documents, and what was decided before. The same tools are served over REST and MCP, and every call runs with the caller's own access. This page shows who asks, what they can reach, and which rules apply to all of them.
Who asks
| Caller | How it connects | Whose access applies |
|---|---|---|
| People in Colrows | AI Data Analyst, SQL Editor, dashboards, and the Excel add-in. | The signed-in user. |
| MCP client apps such as ChatGPT, Claude, Cursor, and Codex | The client connector at /api/mcp/mcp-clients. Six intent tools, and no tool accepts SQL text. See MCP Integration. | The user who approved the app. |
| Your applications and agents | Agent REST under /api/agents/v1, or the agent endpoint at /api/mcp/agents. Every agent tool has both. | The user who approved the app, or an organization service principal for a server-to-server client. |
| Governed agents | The same agent tools, with a run token that the agent control plane issues for one run. | The user or the agent that the run acts for, as the agent's spec says. |
All four go through the same compile-then-execute pipeline. A dashboard, a chat assistant, and an agent that ask for the same metric get the same definition.
Four sources of grounding
Structured data: governed SQL, run live
Queries run in place on your sources, read-only, with the caller's access and masking policies. An agent finds meaning with searchSemanticEntities, resolves phrases such as "West" to stored values with resolveValues, and gets validated SQL from compileSQL or from a structured plan with compilePlan. It runs a verified query with executeSQL, or SQL when its token also holds data:sql. Each result is traced to the definitions and versions that produced it. The full catalog is in the MCP Tool Reference.
Documents: cited answers
askDocuments answers a question from your organization's documents, and every claim cites its source. Document access is checked for each caller. Documents also feed the foundation: Colrows promotes document claims into proposals for the semantic layer, so a methodology document and a metric definition do not drift apart. See Ask Your Documents.
Context over time: agent memory
An agent can recall a user's explicit preferences and query corrections across sessions. Memory is private to its owner, and a remembered query is reused only after it passes current validation. See Agent memory.
Business applications: governed API sources
Some facts are not in a database or a document. They are in a business application, behind an API. An administrator registers a read-only API as a governed API source, with named operations. A registered agent whose scope lists the source and the operation reads it with callSource. Colrows makes the call, the way it runs SQL on a warehouse. The records pass through Colrows and are not stored. An answer cites the call as evidence, and Colrows checks that each cited value is a value that the call returned. See API sources.
One question, any source
askQuestion takes one question and returns one answer with its evidence, from the database, the documents, the semantic layer, or a mix. Colrows splits a mixed question into at most three parts and sends each part to the matching source, so each part stays as governed as its source. An ambiguous question returns a clarification; Colrows does not guess. See Answering.
One set of rules for every caller
- Scoped tokens. A token lists only the tools its scopes allow, and each call checks scope and resource access again. The scopes are separate grants: a token that can compile a query cannot run raw SQL unless it also holds
data:sql. See Authentication. - The caller's own access. Every executed query passes through the same data access, row-level, and masking paths as the Colrows apps. See Data Access Control.
- Compile-time governance. SQL is validated before it is returned, and checked for safety, access, and cost before it runs. A plan the caller is not allowed to run is not produced.
- Read-only. No tool on either endpoint changes the data in your datasources.
- An audit trail. Tool calls from MCP client apps are kept for audit with the question and the SQL, never the result rows. A governed agent run records every tool call it makes. See Audit & Traces.
What comes back with an answer
An answer from the governed interface carries what a reviewer needs to check it.
- An
executionIdfor each query that ran, which an agent cites as evidence. - A citation for each document passage used.
- The definitions the SQL used, each with its version and whether a person confirmed it. See how answers report trust.
- A clarification, not a guess, when the question is ambiguous.
Choose your entry point
| You want to | Use | Read |
|---|---|---|
| Ask questions from ChatGPT, Claude, or Cursor | The MCP client connector | Connect an MCP client app |
| Add governed answers to your product for each signed-in user | Agent REST with an app that acts for users | Agent Query API for Your Users |
| Build an agent that plans its own queries | The agent tools over REST or MCP | MCP Tool Reference |
| Get one answer with evidence from one call | askQuestion | Answering |
| Investigate why a metric changed | startAnalysis | Analysis |
| Answer from contracts, policies, and other documents | askDocuments | Ask Your Documents |
| Run an agent in production under review and limits | The agent control plane and the SDK | Agents at work |