Skip to content
Agentic Levels
Start hereLevelsTracksPromptsAbout
Get my levelGet my level

  • Start hereYour first useful task with AI.
  • Level quiz8 questions. No AI needed.
  • Fluency ScoreYour Level and a score, from your own AI.

  • LevelsThe 11 levels, in order.
  • LessonsShort lessons, filter by level.
  • TracksGuided paths by tool, role or goal.
  • Set up your AI tool
  • Starter packFree files that help AI remember.

  • PromptsReady prompts to copy and adapt.
  • ChatGPT vs Claude vs GeminiPick the right one for the job.
  • How-tos
  • ReferenceCommands for Claude Code, Codex, Antigravity.
  • ResourcesHand-picked reading and tools.

  • Your progress
  • Your next moveAn interview that picks your next skill.
  • Your next lessonsThe next lessons at your level.
  • Updates

  • Pricing
  • About
  • FAQ & Feedback
  • Work with us
  • How we handle your data
Sign inPreferences
AboutPricingHow-tosPromptsStarter packMy stackHow we handle your data

© 2026 Fuentes Studio

PrivacyTermsRefundsAccessibilityAI content policyCredits
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

←Level 7
  1. Levels
  2. ›Level 7
  3. ›How MCP Servers Work
7

Deep dive · Jump here anytime when you want more on this idea · Free

How MCP Servers Work

Tools your AI can actually call

After this, you'll be able to explain why MCP is different from prompting, identify the minimum permissions a tool needs, and sketch a tool schema you would actually trust to run on your systems.

Before you start

Complete Compounding Engineering Patterns first; this lesson builds on the codification loop you established there by giving your agent real tools to act on your systems.

The idea

Levels 4 and 5 solve for context. Level 7 solves for capability. MCP (Model Context Protocol) is how you give your agent hands. Instead of thinking about your database or CI pipeline, it can write to them, run them, and read the results. You define what a tool does and what inputs it takes. The model decides when to call it.

Worked example

Before and after

A developer built an MCP server with read-write access to the entire src/ directory plus shell execution. One malformed API response later, the agent deleted 12 files it confused with a temp directory. A read-only tool scoped to src/data/ and a separate write tool scoped to src/data/output/ would have limited the blast radius to two directories. Scoping took 10 minutes. Recovery took 3 hours.

A custom skill packages a repeatable workflow into a named, invocable behavior. A PR review skill that runs linting and pattern checks. A deploy skill that validates the build before pushing. A test generation skill that knows your codebase's conventions. These are not prompts you type each time. They are capabilities the agent can use on its own when the task calls for them.

Least-privilege applies to AI tools as much as any system. An MCP server that can write files, execute commands, and call external APIs has a large blast radius if something goes wrong. Define the minimum permissions each tool needs and be explicit about what it cannot do. Treat MCP tool responses the same way you treat user input. A retrieved document can contain instructions the model may follow.

The ceiling at Level 7 is that the agent can act on your systems but still cannot verify whether what it did was correct. That self-correction loop is what Level 8 builds.

Try it (5 min)

Paste this into Claude

I want to design a least-privilege MCP tool for one step I do manually after every agent session (e.g. running tests, checking lint, querying a dev database). Here's the step: [describe the manual step in one sentence]. Help me sketch the tool schema. For each piece, give me a concrete answer: (1) the tool name as a verb phrase, (2) the inputs and their types, (3) what it returns, (4) the minimum filesystem and shell permissions it actually needs, (5) what it must NOT be able to do, and (6) one realistic way it could go wrong if I scoped permissions too broadly. Then write the schema as a single JSON block I can adapt.

Check yours against

  • The tool name is a verb phrase that names the action, not the system it touches
  • The permission list is the minimum needed to complete the step, with at least one explicit denial
  • You can describe the blast radius in one sentence (which directories, which writes, which external calls)
  • You named at least one realistic failure mode that broader permissions would have amplified
  • Wiring a 'do-everything' MCP server with shell access plus broad filesystem write before you have run one real task with it
  • Treating tool descriptions as documentation for humans. The model uses them to decide when to call. Vague descriptions produce a guessing agent.
  • Pasting MCP tool responses straight into context. A retrieved document can carry injected instructions that hijack the session.
  • Skipping the cost question. A validation MCP call costs far less than a full implementation call. Know which is which before you build.

When this breaks

  • Breaks when scoping is too permissive because the agent's blast radius equals the broadest tool surface, and one malformed response can corrupt anything that surface touches
  • Breaks when tool descriptions describe what the tool is instead of when to call it because the model has no trigger condition to disambiguate similar tools, so it guesses
  • Breaks when MCP responses are trusted by default because external content is untrusted input and any retrieved document can carry instructions the model will follow

AI can help with this

Use AI to apply this lesson to your current work. Share your situation, ask for one concrete next step, and check the answer against this test: Identify the minimum permissions a single MCP tool needs to complete one manual step in your workflow, and name at least one failure mode that broader permissions would have amplified.

You can now

✓

Identify the minimum permissions a single MCP tool needs to complete one manual step in your workflow, and name at least one failure mode that broader permissions would have amplified.

Try it from memory

Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.

Without scrolling up, pick one manual step you repeat after Claude finishes a task. Name the minimum permission a tool needs to do it, and one thing a broader permission could break.

One good answer: 'My manual step is checking my supplier folder each morning for new price files. The tool needs read-only access to that one folder. With write access to my whole drive, a bad tool response could overwrite my files.' If your permission is the least the step needs (read-only if it only reads, one folder rather than the whole drive), it holds. 'Access to everything' fails.

Key takeaways

MCP gives the agent real hands on your systems. The work at Level 7 is not 'connect more tools.' It is scoping each tool to the smallest permission that lets the job get done.

  1. 1MCP gives your agent real access to your systems. It acts on them, not just thinks about them
  2. 2A custom skill is a repeatable workflow packaged as a named capability the agent invokes itself
  3. 3Least-privilege: define minimum permissions per tool and treat tool responses as untrusted input
  4. 4Token costs matter here. A validation MCP call costs far less than a full implementation call. Track cost-per-session.

Was this helpful?

← Back to Level 7