Learn · updated 2026-11-27
MCP Explained: How Models Take Actions Through Tools
The Model Context Protocol, MCP, is an open protocol that standardizes how a model is handed tools and data: what tools exist, what arguments they take, and what comes back. It replaces a separate bespoke integration per tool with one interface, so a model session can search, read files, run code or query a system through a declared tool set rather than ad-hoc prompts.
What the protocol standardizes
MCP describes servers that expose capabilities - tools, resources and prompts - and clients that connect to them. A tool is a callable function with a schema for its arguments and a structured result. The model sees the declared tool set, chooses one, and the client executes it and returns the result into the model context.
The value is portability. Without a protocol, every integration is a custom function with its own auth and schema. With one, a server written once works with any compatible client, and a client can add capabilities by connecting another server.
How Riven uses it
Riven Cortex exposes 23 MCP tools across six families: search and retrieval, files, code, data, communication and platform. A model session declares which families it may use, and Cortex refuses calls outside that declaration rather than failing open.
The public MCP library lists 131 servers that can be connected to a Riven workspace. Each connection carries its own auth, and credentials for outbound integrations are resolved at call time from Keymaster rather than entering the model context.
The permission model that makes it safe
A tool call is only as safe as the identity behind it. Every Cortex tool call inherits the calling identity, so a tool cannot read data the user could not read directly. Write-capable tools are gated separately from read-only ones, so a read-only session cannot mutate state by choosing a different tool.
Tool results re-enter the model context as untrusted input. Cortex marks tool output as such so downstream reasoning does not treat a retrieved document as an instruction, which closes the most common prompt-injection path in tool-using systems.
Where MCP is not enough
A protocol does not supply authorization policy, audit or approval. Those are product concerns, and a team that connects a powerful server without an approval rail has built a fast path to unintended actions. Riven pairs MCP with the Propose-Approve-Act-Audit rail and per-invocation telemetry for that reason.
A protocol also does not guarantee tool quality. A server that returns stale data or the wrong record will produce a confident wrong answer. Evaluate the servers a workflow depends on, and start with read-only tools before enabling writes.
Riven Cortex tool families
| Family | What it covers |
|---|---|
| Search and retrieval | Web search through the Web Index, grounded lookup, document retrieval |
| Files | Read, write, list and diff files inside a sandbox |
| Code | Run a command, run a test, inspect a repository |
| Data | Scoped queries against ERP and commerce data |
| Communication | Draft mail, post to comms channels |
| Platform | Quota lookup, model listing, scheduling work |
Frequently asked questions
What does MCP stand for?
Model Context Protocol. It is an open protocol that standardizes how a model is given tools and data, so integrations are portable between compatible clients and servers.
How many MCP tools does Riven ship?
23 tools in Riven Cortex across search, files, code, data, communication and platform families. A session declares which families it may use and cannot call outside that declaration.
Can a tool read data I cannot access?
No. Every Cortex tool call inherits the calling identity, and write-capable tools are gated separately. Credentials for outbound integrations are resolved at call time and never enter the model context.
Are MCP tool outputs trusted?
No. Tool results re-enter the context as untrusted input and are marked as such, so retrieved content is not treated as an instruction. That closes the most common prompt-injection path.
More in learn
Sources and read dates
- Model Context Protocol - specification and introduction (read 2026-11-26)
- Riven docs - Riven Cortex, 23 MCP tools and the permission model (read 2026-11-26)
- Riven MCP library - the 131-server integration directory (read 2026-11-26)
- Riven docs - Riven API, OpenAI-compatible gateway (read 2026-11-26)