MCP Server Architecture — Tools, Resources, Prompts
As of 2026-11-14
What is MCP Server Architecture?
An MCP server exposes three primitives with three different controllers: tools are model-controlled, resources application-controlled, prompts user-controlled. The design decision that makes a server usable is which primitive each capability lives on — a write action published as a resource can never execute, and static reference data published as a tool costs a model round trip every time.
An MCP server exposes three primitives to a client: tools, resources and prompts. The specification assigns each one a different controller (MCP server overview): tools are model-controlled, resources application-controlled, prompts user-controlled. The architecture decision that defines a good server is which primitive each capability lives on — get it wrong and agents either cannot trigger an action or waste round trips fetching text they could have had as context.
The three primitives and who controls them
Tools are functions the language model decides to call, with arguments it chooses: they take actions or compute something. Each declares a name, a description the model reads, a JSON Schema for its input and, optionally, an output schema and behaviour annotations (tools specification). Resources are URI-addressed content — documents, schemas, catalogues — that the host application brings into context: the user may pick them, search them, or the host may include them automatically, by heuristics or by the model's selection (resources specification). Reading a resource is a read; there is no call semantics. Prompts are templates the user invokes, typically as a slash command or a menu entry; the server returns a message sequence the model then works from.
Why it matters
- Tools are model-controlled (the model decides when to call them), resources application-controlled (the host decides how they enter context), prompts user-controlled (picked from a menu) — three different controllers, not interchangeable labels.
- On stdio the server must write nothing to stdout that is not an MCP message; logs belong on stderr, or the client receives corrupted frames.
- Validation and business errors should come back as tool results with isError: true, so the model can read the message and correct its call instead of hitting a protocol error.
Key points
- Tools = model-controlled functions with a JSON Schema input (e.g. search_firms, get_firm, search_news on this platform's MCP server).
- Resources = application-controlled, URI-addressed content the host brings into context (e.g. analytics-legends://tranche, analytics-legends://agents-policy); reading one never executes anything.
- Prompts = user-controlled templates invoked from a menu or slash command (e.g. brief_sap_analytics_market, shortlist_firms_for_requirement).
- Operational rules: nothing but MCP messages on stdout for stdio servers, logs on stderr; tool errors as isError: true results; heavy reference files cached once at module level.
- Attribution and usage terms belong in the server's published policy (here a resource stating that retrieval with attribution is permitted and AI-training use is prohibited), applied to every response.
- SAP: SAP's @cap-js/mcp-server exposes two read-only tools (search_docs, search_model) over stdio; Joule agent extensions accept MCP tools (GA in phases); the MCP gateway in SAP Enterprise AI Gateway is planned for Q1 2027.
- Revision history to check: tool annotations 2025-03-26; elicitation 2025-06-18; URL-mode elicitation 2025-11-25; stateless protocol, Multi Round-Trip Requests and the extensions capability 2026-07-28.
Terms used on this page
- Tool (MCP)
- A model-controlled function declared with a name, a description the model reads and a JSON Schema input (optionally an output schema and annotations); the model decides when to call it and with which arguments.
- Resource (MCP)
- Application-controlled, URI-addressed content (text or binary) that the host brings into context — by user selection, search or automatic inclusion; reading it has no side effect and executes nothing.
- Prompt (MCP)
- A user-controlled named template, typically exposed as a slash command or menu entry; the server returns a message sequence that the model then works from.
- Lazy module-level cache
- Server pattern in which heavy reference files are read once, on first use, and kept in memory for later calls instead of being re-read on every request.
- Elicitation
- A server's request for missing input from the user, added in the 2025-06-18 revision; since 2026-07-28 it travels inside an input_required result (Multi Round-Trip Requests) and the client retries the original call with the answer.
- Data Access Control-scoped tool
- A tool whose input schema and server-side validation enforce the same row-level rules (Data Access Controls in SAP Datasphere, authorization objects in SAP S/4HANA) that would apply to the calling user in any other SAP interface.
Sources
- MCP specification 2026-07-28 — Server features (prompts user-controlled, resources application-controlled, tools model-controlled)
- MCP TypeScript SDK (registerTool, registerResource, registerPrompt)
- MCP specification 2026-07-28 — Tools (isError results, unknown-tool protocol error, deterministic ordering)
- MCP specification 2026-07-28 — Resources (application-driven inclusion, templates, -32602 for missing resources)
- MCP specification 2026-07-28 — stdio transport (stdout reserved for MCP messages, logs on stderr)
- MCP specification — Key changes 2025-03-26 (tool annotations, OAuth 2.1 authorization, Streamable HTTP)
- MCP specification — Key changes 2025-06-18 (elicitation, structured tool output)
- MCP specification — Key changes 2025-11-25 (URL-mode elicitation, tasks, Client ID Metadata Documents)
- MCP specification — Key changes 2026-07-28 (stateless protocol, Multi Round-Trip Requests, extensions, deprecations)
- Model Context Protocol — Extensions overview (MCP Tasks, MCP Apps, Skills over MCP)
- SAP — @cap-js/mcp-server, MCP server for AI-assisted CAP development (search_docs, search_model)
- SAP News — SAP TechEd: developers, you can build the autonomous enterprise (28 Oct 2026; SAP Enterprise AI Gateway announced)
- Snowflake docs — Snowflake-managed MCP server
- Databricks docs — Databricks-managed MCP servers
- Microsoft Learn — Fabric Core MCP Server overview
Full card with the Consultant plan — €19.90/month. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.
Related guides
These guides cite this page as a source.
Open missions
56 live roles and contracts in SAP AI & Joule right now — see the SAP AI & Joule missions · freelance SAP contracts.