Domain 2 · 18% of exam
Tool Design & MCP Integration glossary
71 terms drawn from this domain’s 6 lessons and the sources they cite. A term that matters in more than one domain appears on each of their pages.
The full glossary is searchable across all five domains, and the domain curriculum explains where each term is used.
- --allowedTools
- The CLI flag listing tools, in permission-rule syntax, that run without a permission prompt. It pre-approves rather than restricts — to restrict which tools exist at all, use `--tools`. code.claude.com › cli-reference
- --disallowedTools
- The CLI flag with two behaviours: a bare tool name such as `"Edit"` (or `"*"`) removes the tool from Claude's context entirely, while a scoped rule such as `Bash(rm *)` leaves the tool available and denies only matching calls. code.claude.com › permissions
- --tools
- The CLI flag that restricts which tools are available to the agent at all, as opposed to `--allowedTools`, which only skips the permission prompt. In the SDK the equivalent `tools` option keeps only the listed built-ins, and `tools: []` removes every built-in while leaving MCP tools unaffected. code.claude.com › overview
- .mcp.json
- The project-scope MCP configuration file in the repository root. It is checked into version control and shared with every teammate, which is why credentials belong in `${VAR}` references rather than literal values. code.claude.com › mcp
- ~/.claude.json
- The personal, non-version-controlled file storing both local-scoped MCP servers (nested under the project's path) and user-scoped ones. It is a different thing entirely from `.claude/settings.local.json`, which holds local settings inside the project directory. code.claude.com › mcp
- Access failure vs valid empty result
- An access failure means the tool could not reach the data source, so it is `isError: true` and a retry candidate. A valid empty result means the tool reached the source and found nothing, so it is `isError: false` with `resultCount: 0` and is the answer, not a failure. Confusing the two causes wasted retries and wrong escalations.
- Agent tool
- The built-in tool that spawns subagents, renamed from `Task` in Claude Code v2.1.63 and emitted as `Agent` in `tool_use` blocks. Current docs list it among tools that "don't ask before running", so its calls run whether or not `allowedTools` lists it; the exam guide still requires `allowedTools` to include it (as "Task"). code.claude.com › subagents
- Alias enumeration
- Collecting every name under which a function leaves its module (aliased exports, star re-exports, namespace imports) before searching for usage, then running one Grep per name. It is the fix for an audit that found only a few of the real call sites.
- Barrel file
- A module, often `index.ts`, that re-exports other modules' functions (`export * from`, `export { x as y }`). Consumers that import through it never write the original function name, so a Grep for that name alone undercounts callers.
- Bash prefix matching
- Bash permission rules match on a command prefix, and the trailing space is load-bearing: `Bash(git diff *)` matches any command starting with `git diff`, whereas `Bash(git diff*)` would also wrongly match `git diff-index`. code.claude.com › permissions
- Bloated tool sets
- Anthropic's named failure mode: tool sets covering too much functionality or creating ambiguous decision points about which tool to use. Each extra overlapping tool costs both decision complexity and context budget, making tool scoping a context-engineering discipline as well as a routing one. anthropic.com › effective-context-engineering-for-ai-agents
- Build-vs-use decision
- Evaluate maintained community MCP servers first for standard integrations such as Jira, GitHub or Notion; build a custom server only for team-specific workflows, business rules that must live in the tool layer, or proprietary internal systems with no community equivalent. Building one "to control the tool descriptions" is still disproportionate.
- Built-in tools
- The tools Claude Code ships with. This task statement names six — Read, Write, Edit, Bash, Grep, Glob — while the documented roster is larger: `Bash`, `Read`, `Write`, `Edit`, `Glob`, `Grep`, `WebFetch`, `Agent`, "and others". code.claude.com › overview
- claude mcp add
- The CLI command with two shapes: `claude mcp add --transport http <name> <url>` for a remote server, and `claude mcp add [options] <name> -- <command> [args...]` for a local stdio server, where the `--` separator is required so everything after it reaches the server process untouched. `claude mcp add-json <name> '<json>'` adds one from a JSON blob. code.claude.com › mcp
- Constrained tool alternative
- Least privilege applied to tool design: give a subagent `load_document`, which validates document URLs only, rather than a generic `fetch_url`. The narrower tool prevents misuse, clarifies purpose, and reduces unintended side effects.
- disable_parallel_tool_use
- The boolean that restricts Claude to a single tool call per response. It lives **inside** the `tool_choice` object, not at the top level: with `auto` it means at most one tool call, with `any` or `tool` exactly one. platform.claude.com › parallel-tool-use
- disallowed_tools
- The deny lever with two distinct forms: a bare entry such as `"Bash"` removes the tool definition from the request entirely so Claude cannot see or attempt it, while a scoped entry such as `"Bash(rm *)"` keeps the tool visible and denies only matching calls, in every permission mode. code.claude.com › permissions
- Edit
- The built-in tool for targeted file modification via a unique `old_string` match. It refuses when the anchor text is not unique — a safety mechanism, not a bug. The exam guide names Read + Write as the fallback when Edit cannot find unique anchor text; current docs first widen `old_string` or set `replace_all: true`. Zero matches is a different failure: fix the text.
- Forced selection suppresses commentary
- With `tool_choice` set to `any` or `tool`, the API makes Claude's response start with a tool call, so it emits no natural-language response or explanation before the `tool_use` blocks even if asked. Any field logging Claude's pre-call commentary will be empty; when commentary matters, use `auto` with an instruction to use the tool. platform.claude.com › define-tools
- Forced tool_choice and extended thinking
- Manual extended thinking (`thinking: {type: "enabled"}`) supports only `tool_choice` `auto` and `none`; `any` and `tool` return an error. Adaptive thinking does not itself block forced tool use, but on models that accept forcing a forced call skips thinking (no `thinking` block). Separately, the newest models (such as Opus 5.5 and Sonnet 5.5) reject `any` and `tool` with a 400 error; the exam answer is unchanged. platform.claude.com › define-tools
- Four error categories
- Every tool failure falls into one of four categories, each with its own recovery: transient (timeouts, unavailability, rate limits — retry after a delay), validation (bad input format or missing fields — fix the input and retry), business (policy violations and limit exceedances — never retry; explain the refusal in customer-friendly terms and take the permitted alternative, often escalation), and permission (access denied or insufficient credentials — escalate or use different credentials).
- Glob
- The built-in tool that matches file **paths** by naming pattern, such as `**/*.test.tsx` or `**/config.*`, returning at most 100 paths sorted by modification time. It finds files by their names; it cannot find what files contain.
- Grep
- The built-in tool that searches file **contents** for patterns — function callers, error messages, import statements — using ripgrep regex and respecting `.gitignore`. It is the exam's answer whenever you are looking for what is inside files. Current Claude Code leaves it out of the default tool set on macOS, Linux and WSL, searching with `grep` through Bash instead.
- headersHelper
- A field on an MCP server entry naming a command that Claude Code runs when connecting, merging its output into the request headers. It suits authentication that needs headers generated at connection time, such as short-lived tokens or internal SSO. code.claude.com › mcp
- Incremental discovery
- The exam guide's exploration order: Grep for entry points, Read to trace flows and follow imports, Grep again for wrapper or barrel names, and Read only what the previous step justified. Reading every file up front is the costliest exploration mistake: it exhausts the context window and dilutes attention across irrelevant files.
- input_schema
- The JSON Schema object on a Messages API tool definition that describes the tool's expected parameters. It is one of three required client-tool fields alongside `name` and `description`, with `input_examples` optional. platform.claude.com › define-tools
- Invalid tool call
- A tool call Claude makes that is invalid, such as one missing a required parameter. Report it like any failure, with a `tool_result` carrying `is_error: true` and a clear message; Claude can then call the tool again with the information filled in. The docs promise no fixed number of attempts, so cap retries in your loop. `strict: true` prevents missing parameters and type mismatches, but not a well-typed wrong value, which only your tool's validation error can catch. platform.claude.com › handle-tool-calls
- is_error
- The optional boolean on a `tool_result` block, "Set to `true` if the tool failed or the call was invalid"; return the error text as `content`. Claude may then call the tool again, so cap retries in your loop. Write instructive messages (what went wrong, what to try next) rather than a bare "failed". For server tools such as web search you send no `is_error` result: the API returns any error inside the tool's own result block. platform.claude.com › handle-tool-calls
- isError
- The MCP flag returned inside an otherwise-successful tool result to signal that tool execution failed, so the model reasons about recovery instead of treating the text as a normal result; if absent it is assumed `false`. It maps directly onto `is_error` in a Messages API `tool_result` and `mcp_tool_result`. modelcontextprotocol.io › tools
- isRetryable
- The structured error field answering one question: can a retry ever succeed? It is `true` for transient errors and `false` for business and permission errors. The exam guide assigns no value for validation errors (the lesson uses `true`); answer by behaviour: fix the input and call again, never resend unchanged. Read it with `errorCategory` to learn how — resend, self-correct, escalate, or take an alternative route. It is an application convention, not an MCP field.
- Local recovery with selective propagation
- The multi-agent error pattern: subagents retry transient failures themselves, propagate only what they cannot resolve, and include partial results plus what was attempted. It prevents both silent suppression and terminating a whole workflow on one failure.
- MAX_MCP_OUTPUT_TOKENS
- The setting for Claude Code's MCP tool output limit: a warning appears above 10,000 tokens and the default maximum is 25,000. Output over the limit is saved to a file and replaced in the conversation by a message naming the path, not truncated. A text result over 50,000 characters is saved to a file regardless, a threshold this setting does not change; a server can raise it per tool with `anthropic/maxResultSizeChars`. code.claude.com › mcp
- MCP (Model Context Protocol)
- The protocol by which servers extend Claude's capabilities with external systems — databases, APIs, development tools, issue trackers — exposing tools, resources, and prompts. The exam answer is that all tools from all configured servers are discovered at connection time and available simultaneously, with no manual activation step; current Claude Code defers each full tool definition through tool search. code.claude.com › mcp
- MCP annotations
- Optional properties describing tool behaviour, through four hints: `readOnlyHint`, `destructiveHint`, `idempotentHint` and `openWorldHint`. They disclose which tools need open-world access or make destructive changes, but they are advisory: the spec says clients MUST treat annotations as untrusted unless they come from trusted servers. modelcontextprotocol.io › schema
- MCP description length limits
- Claude Code's default cut-off for MCP text: 4,096 characters for server instructions and the description of a tool that loads upfront, 16,384 for the description of a tool loaded through tool search (before v2.1.296 the shorter limit was 2,048, hence older "2KB" figures). Claude sees only the text before the cut, so put critical details, especially boundary statements, near the start. `CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH` sets both limits. code.claude.com › mcp
- MCP environment variable expansion
- `.mcp.json` supports `${VAR}`, which expands to the environment variable's value, and `${VAR:-default}`, which falls back when unset. Expansion works in `command`, `args`, `env`, `url`, and `headers`, keeping credentials out of version control. An unset variable with no default still loads, with a warning in `claude mcp list`, and the literal `${VAR}` text is used; an empty string counts as set. Use defaults only for non-secret values. code.claude.com › mcp
- MCP error mechanisms
- MCP separates two channels: protocol errors, standard JSON-RPC errors for an unknown tool, a malformed request or a server error; and tool execution errors, reported inside a successful result with `isError: true`, which include API failures, input validation errors (invalid tool arguments, since the 2025-11-25 revision) and business logic errors. Clients SHOULD pass execution errors to the model and only MAY pass protocol errors. All four error categories are tool execution errors. modelcontextprotocol.io › tools
- MCP human-in-the-loop principle
- The specification's guidance that there SHOULD always be a human in the loop with the ability to deny tool invocations. It is about users confirming tool calls, but it is a useful way to reason about permission errors: someone with authority can say no, so the fitting response is escalation, not a workaround. modelcontextprotocol.io › tools
- MCP prompt slash command
- A prompt exposed by a connected MCP server becomes a command: Claude Code lists it as `/servername:promptname (MCP)`, and typing `/mcp__servername__promptname` also runs it. It takes space-separated arguments, and its result is injected directly into the conversation. code.claude.com › mcp
- MCP resources
- Content catalogues an MCP server exposes so an agent knows what data exists without exploratory tool calls — issue summaries, documentation hierarchies, database schemas. Reference one with `@server:protocol://resource/path` and it is fetched and attached automatically. Resources show what data is available; tools act on it. code.claude.com › mcp
- MCP scope precedence
- When a server name appears at more than one scope, Claude Code uses the whole entry from the highest-precedence source and does not merge fields: local, then project, then user, then plugin-provided servers, then claude.ai connectors. A server provided through the `managedMcpServers` managed setting ranks above all of them. A name defined in several scopes with different endpoints raises no error; `claude mcp list` and `/mcp` show a conflict warning. code.claude.com › mcp
- MCP server management commands
- `claude mcp list`, `claude mcp get <name>`, and `claude mcp remove <name>` manage configured servers; `/mcp` checks status in-session and starts OAuth 2.0 authentication for remote servers (as does `claude mcp login <name>`), with tokens stored and refreshed automatically. Project-scoped servers need approval in interactive sessions (cleared with `claude mcp reset-project-choices`) and load without asking in `claude -p` and Agent SDK runs. `claude mcp serve` runs Claude Code itself as a stdio MCP server. code.claude.com › mcp
- MCP server scopes
- Three scopes, not two: local (the default — current project only, private, stored in `~/.claude.json` under that project's path), project (team-shared via `.mcp.json`), and user (all your projects, private, in `~/.claude.json`). The exam guide's two-tier model (project vs user-level) treats local and user together as personal. code.claude.com › mcp
- MCP tool definition
- An MCP tool carries `name`, `description`, and `inputSchema` (camelCase, unlike the API's `input_schema`), plus optional `title`, `icons`, `outputSchema`, and `annotations`. Clients discover tools with `tools/list` and execute them with `tools/call`. Where the Messages API constrains only the input, MCP lets you pin the output structure too. modelcontextprotocol.io › tools
- MCP transports
- The specification (revision 2026-07-28) defines two standard transports and allows custom ones: stdio, where the client launches the server as a subprocess and exchanges JSON-RPC over stdin/stdout, and Streamable HTTP, where each message is an HTTP POST to one endpoint and the reply is a JSON object or a request-scoped SSE stream. The standalone SSE transport is deprecated in Claude Code, `streamable-http` is a configuration alias for `http`, and an entry with a `url` but no `type` is a configuration error. modelcontextprotocol.io › transports
- mcp__ naming pattern
- MCP tools are addressed as `mcp__<server-name>__<tool-name>` — for example `mcp__github__list_issues`. Permission rules can target a whole server (`mcp__server`), every tool on it (`mcp__server__*`), or a single tool (`mcp__server__tool`). code.claude.com › permissions
- Mistake-proofing the schema
- Designing the tool interface so the error is impossible rather than merely discouraged: naming parameters unambiguously (`user_id`, not `user`) and, in Anthropic's own example, always requiring absolute filepaths so relative-path errors disappear entirely. anthropic.com › writing-tools-for-agents
- Model-controlled vs application-driven
- The MCP specification's split between tools, which the model decides to call, and resources, which are application-driven: the host decides how their content reaches the model. Stems about doing something point to a tool; stems about visibility into what exists point to a resource. modelcontextprotocol.io › resources
- Negative boundary
- The part of a tool description that says when not to use the tool and which sibling tool to use instead. It is the element most often omitted, and for a pair of confusable tools it does more to fix misrouting than a fuller purpose statement.
- Optimal tools per agent
- 4-5 tools, scoped to the agent's role — the exam guide's figure, set against 18 tools on one agent. Selection reliability degrades as the toolkit grows, and relevance matters as much as count: a synthesis agent given web search will run its own searches instead of using results already handed to it.
- outputSchema
- The optional MCP field declaring the expected output structure. Once declared, the server MUST provide structured results conforming to it in `structuredContent` and the client SHOULD validate against it. It has no Messages API equivalent. The spec does not say how it applies to an `isError: true` result, so a schema meant to cover failures must describe the failure shape explicitly. modelcontextprotocol.io › tools
- Parallel tool use
- Claude may call several tools in a single response, and Claude 4 and later do so by default when it helps. Return one `tool_result` per `tool_use` block, all in one user message with no text before them; splitting results across messages teaches the model to stop calling tools in parallel. platform.claude.com › parallel-tool-use
- Protocol error
- An MCP error returned as a standard JSON-RPC error because the request itself could not be processed: an unknown tool, a malformed request, or a server error. Clients only MAY pass these to the model, so a business refusal or validation failure raised this way may never reach it. modelcontextprotocol.io › tools
- replace_all
- The Edit option that replaces every occurrence of a non-unique `old_string`. With widening the anchor, it is the current docs' response to a non-unique match; use it only when every occurrence should change. The exam guide's named fallback, when no unique anchor can be found, is Read + Write.
- Scoped cross-role tool
- A constrained version of another role's capability given directly to the agent that needs it, so the high-frequency simple case is handled locally while complex cases still route through the coordinator. In official sample question 9 it removes the 2-3 extra round trips per task (and 40% added latency) for the 85% of verifications that are simple fact-checks.
- structuredContent
- The MCP result field carrying structured tool output as a JSON value (any JSON type in revision 2026-07-28; the 2025-06-18 revision required an object). It is one place to carry application fields such as `errorCategory` and `isRetryable`. For backwards compatibility, a tool returning it SHOULD also serialise the same JSON into a text block. modelcontextprotocol.io › tools
- Task tool
- The exam guide's name for the mechanism a coordinator uses to spawn subagents; the guide requires `"Task"` in the coordinator's `allowedTools`, and that is the exam answer. Current Claude Code renamed it `Agent` in v2.1.63 (`Task(...)` still works as an alias, and `Task` still appears in the `system:init` tools list). code.claude.com › subagents
- Tool description
- The free-text field on a tool definition and the primary mechanism an LLM uses for tool selection — Anthropic calls it by far the most important factor in tool performance. A production-grade one states what the tool does, its inputs with formats, example queries, edge cases and limits, and explicit boundaries against similar tools. When misrouting occurs, expanding descriptions is the first fix. platform.claude.com › define-tools
- Tool execution error
- An MCP error reported inside a successful tool result with `isError: true`: API failures, input validation errors and business logic errors. Clients SHOULD pass these to the model so it can self-correct. All four of the exam guide's error categories are tool execution errors. modelcontextprotocol.io › tools
- Tool misrouting
- The failure where two tools with overlapping or near-identical descriptions cause the model to select the wrong one — for example routing an order query to `get_customer`. The root cause is description quality, not model capability.
- Tool name regex
- A Messages API tool `name` must match `^[a-zA-Z0-9_-]{1,128}$`. platform.claude.com › define-tools
- Tool namespacing
- Delineating tools that must coexist by prefixing or suffixing them, either by service (`asana_search`, `jira_search`) or by resource (`asana_projects_search`). Anthropic found the choice between prefix- and suffix-based namespacing to have non-trivial effects on tool-use evaluations. anthropic.com › writing-tools-for-agents
- Tool search
- The Claude Code behaviour, enabled by default, in which MCP tools are deferred and discovered on demand: only tool names and server instructions load at session start, and Claude searches for a tool's full definition when it needs it. Matching reads only the part of a description within the shorter limit, and because the search is text-driven, server instructions should describe what category of tasks the tools handle and when to search for them. code.claude.com › mcp
- Tool splitting
- Replacing a generic tool with broad responsibilities (`analyze_document`) with purpose-specific tools that each have one narrow job and a defined input/output contract (`extract_data_points`, `summarize_content`, `verify_claim_against_source`).
- tool_choice
- The parameter controlling how the model interacts with tools, with four documented types: `auto` (model decides; default when `tools` are provided), `any` (must call some tool, chooses which), `tool` (must call the named tool), and `none` (may not call any tool; default when no `tools` are provided). platform.claude.com › messages
- tool_choice and prompt caching
- Changing `tool_choice` between turns invalidates cached message blocks; tool definitions and system prompts stay cached but message content must be reprocessed. It is the hidden cost of a forced-then-auto workflow. platform.claude.com › define-tools
- tool_result block
- The block that returns a tool's output to Claude, carrying `tool_use_id` (matching the request's `id`), optional `content`, and optional `is_error`. It is sent in a **user**-role message — there is no `tool` or `function` role in the Messages API. platform.claude.com › handle-tool-calls
- tool_use block
- The assistant-role content block in which Claude requests a tool call. It carries three fields: `id` (unique, used to match the result later), `name`, and `input` conforming to the tool's `input_schema`. platform.claude.com › handle-tool-calls
- tool_use_id
- The field on a `tool_result` block that matches it to the `id` of the originating `tool_use` block. Results are matched by this ID, which is what makes parallel tool calls in one iteration unambiguous. platform.claude.com › handle-tool-calls
- WebFetch domain rule
- WebFetch uses its own permission-rule shape, a `domain:` prefix matched against the hostname. `WebFetch(domain:example.com)` matches that host; `WebFetch(domain:*.example.com)` matches subdomains at any depth but not the apex domain. code.claude.com › permissions
- Workflow tools
- Tools built around a high-impact user workflow rather than wrapping an API endpoint — `schedule_event` instead of `list_users`/`list_events`/`create_event`, `get_customer_context` instead of three separate lookups, `search_logs` instead of `read_logs`. Merely wrapping existing endpoints is a named common error. anthropic.com › writing-tools-for-agents