Tools and MCP
Capability Mechanism Selection
Exam objective: Evaluating built-in tools, custom tools, Skills, and MCP servers for a use case, based on where the capability must live, who maintains it, and how Claude discovers and invokes it, and justifying the selection.
What the exam tests
Given a use case, pick the mechanism (built-in or Anthropic-provided tool, your own tool, Skill, MCP server) and justify it. Three questions settle most cases: where must the capability live or run, who maintains it, and how does Claude discover and invoke it.
Key rules
Tools on the Messages API
- Server tools (web search, web fetch, code execution, tool search, and the MCP connector) run on Anthropic's infrastructure. You write no handler.
- Anthropic-schema client tools (bash, text editor, memory, computer use, browser use) have schemas Anthropic defines, but your application executes every call.
- User-defined tools: you write the schema and description, and you run the code. Use them for your own logic, data and credentials.
- Claude decides to call a tool from the request and the tool's description.
Skills
- A directory with
SKILL.md(frontmatternameanddescription), optionally with scripts and reference files. They carry knowledge and procedures. - Progressive disclosure: metadata is loaded up front, the body when triggered, bundled files only when accessed. The description is what Claude matches against.
- On the Messages API: list them in
container.skillsand include the code execution tool. The container has no network access and no runtime package installs. - In Claude Code: filesystem-based, in
~/.claude/skills/(personal),.claude/skills/(project), plugins or managed settings. - Custom Skills uploaded to claude.ai or the API do not appear on the other. A team shares a Claude Code skill by committing it. (Claude Code can also sync the skills enabled on your own claude.ai account.)
- Anthropic maintains pre-built document Skills (pptx, xlsx, docx, pdf) that API requests can reference by
skill_id.
MCP servers
- Connect Claude to external services; one server can serve many MCP clients and is maintained apart from each application.
- Messages API connector:
mcp_serversplus anmcp_toolset; the server must be public over HTTP, and only tool calls are supported. For local STDIO servers, prompts or resources, run your own client and use the SDK's MCP helpers. - Claude Code scopes: local (default, private, this project), project (
.mcp.json, committed), user (private, all projects). - Agent SDK: define your functions with
tool()/@toolin an in-process server.
query({ prompt, options: {
mcpServers: { crm: createSdkMcpServer({ name: "crm", tools: [findAccount] }) },
tools: [], // availability: remove built-ins
allowedTools: ["mcp__crm__find_account"] // permission: pre-approve
}});
Claude Code extras
- Built-in tools cover most coding tasks (files, search, execution, web). Add MCP for new tools; add a skill for a reusable workflow.
- CLAUDE.md is always loaded. Hooks run on lifecycle events without Claude deciding.
Traps
- Putting a live internal API call inside an API Skill. The sandbox cannot reach it.
- Building an MCP server to hold static instructions, or writing a Skill to create a connection.
- Pointing the MCP connector at a STDIO process or a private address.
- Assuming a Skill uploaded in claude.ai appears in the API or reaches teammates through the repository.
- Treating
allowedToolsas a way to hide tools. It only approves calls. - Writing a custom tool for something a server tool already does, such as web search.
- Blaming the Skill body when it never triggers: look at the description first.
Decide quickly
| Situation | Choice | Why |
|---|---|---|
| Current web information, no backend | Web search server tool | Anthropic executes it |
| Analysis in a sandbox you do not host | Code execution tool | Runs on Anthropic's side |
| Commands on your own machine | Bash tool | Anthropic schema, your execution |
| One app calls its own function | User-defined tool | Nothing extra to deploy |
| Agent SDK app exposes its functions | In-process SDK MCP server | Runs inside the app |
| External system shared by many clients | MCP server | One maintained integration |
| Procedure or reference needed sometimes | Skill | Loads on demand |
| Rule every session needs | CLAUDE.md | Always in context |
| Must happen every time | Hook | Not left to the model |
| Excel or PDF output via API | Pre-built Skill + code execution | Anthropic maintains it |
| Right connection, wrong usage | Add a Skill beside MCP | Knowledge complements access |