intermediate~3h
MCP Advanced — Sampling, Elicitation, Resources, Prompts
Tools are the headline feature of MCP. This module covers the four capabilities most tutorials skip — and they're where MCP stops being "remote function calling" and starts being a genuinely two-way protocol between client and server.
Learning objectives
- Beginner: A single MCP server exposing a handful of @Tool methods and nothing else — most real-world MCP servers start here.
- Intermediate: Add @McpResource for read-only config/data access and progress notifications for one genuinely slow tool, improving UX without changing tool logic.
- Advanced: A tool using sampling to summarize fetched content via the client's model, with elicitation gating any destructive action behind explicit human confirmation — full two-way protocol use, not just one-directional tool invocation.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.
MCP Advanced — Sampling, Elicitation, Resources, Prompts