intermediateModel Context Protocol — Architecture

What are the three main things an MCP server can expose to a client?

Tools (callable functions the model can invoke), Resources (readable data/context the client can pull in, like files or API responses), and Prompts (reusable prompt templates the server provides) — together these let a server expose a full slice of capability, not just a single function call.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to What is MCP 'sampling', and why is it a notably different direction of control flow than a normal tool call?← Back to all Spring AI questions