Courseiva

CCDV-F · domain

Tools and MCP Integration

This domain covers Claude's tool use contract: JSON Schema tool definitions, the description field, tool_choice, and streaming tool_use blocks. It also covers MCP architecture — Host, Client, Server, and transports like Stdio and HTTP — and how tool results are returned. Questions are scenario-based: given a schema or transport setup, predict Claude's behavior or the client's handling.

39 questions8 easy16 medium15 hard

Focused practice

Practice Tools and MCP Integration questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Tools and MCP Integration

Be able to read a tool definition and predict Claude's call-or-answer behavior, name the description field as the selection signal, and explain MCP Host/Client/Server roles. The key skill: knowing streamed tool arguments arrive incrementally as input_json_delta and must be accumulated before parsing.

Reading JSON Schema tool definitions to predict whether Claude calls a tool or answers directly

Identifying the description field as the primary signal for when Claude selects a tool

Tracing MCP Host, Client, and Server roles across Stdio and HTTP transports

Handling streamed tool_use blocks and input_json_delta events in the Anthropic API

Watch out for

Common Tools and MCP Integration exam traps

  • ▸Assuming a tool is called whenever the query matches its name, ignoring whether the schema's required parameters can be satisfied from the user's message
  • ▸Confusing tool_choice values: auto lets Claude decide, any forces some tool, and a named tool forces that specific one
  • ▸Treating MCP reconnection as automatic; with Stdio, a crashed server process typically ends the session and the Host must restart it

Question index

All Tools and MCP Integration questions (39)

Click any question to see the full explanation, or start a practice session above.

1

A developer is defining a tool for Claude that fetches the current stock price for a ticker symbol. The tool will be called `get_stock_price`. Which `input_schema` definition best enables Claude to call the tool correctly?

Easy
2

A developer is building a customer-support agent using the Anthropic API with the Claude 3.5 Sonnet model. The agent exposes a `lookup_order` tool that takes an `order_id` string. During testing, a user asks 'Where is my order 88213?' and Claude returns a `tool_use` block with `name: "lookup_order"` and `input: {"order_id": "88213"}`. What must the developer send back to Claude in the next API request so it can produce a natural-language answer?

Medium
3

A developer is creating an MCP server that exposes a tool to query a PostgreSQL database. The tool definition includes a parameter 'sql_query' that accepts a raw SQL string. During a security review, it was flagged that this design could allow SQL injection if Claude generates malicious SQL. Which change should the developer make to mitigate this risk?

Medium
4

A developer is building an MCP client that connects to a remote MCP server over HTTP. After the initial handshake, the client needs to discover what prompts the server exposes so they can be surfaced in a slash-command menu. Which MCP capability should the client invoke?

Medium
5

Refer to the exhibit. A developer is debugging an MCP integration and sees these logs in their console. What is the most likely cause of this error?

Hard
6

A developer registers a tool named get_order_status with an input_schema that declares order_id as a string. During testing, Claude repeatedly emits tool_use blocks where order_id is the numeric value 10482 instead of a string. The downstream API rejects numeric IDs. Which change most reliably fixes this at the tool-definition layer?

Hard
7

A developer is architecting a system where Claude must interact with a proprietary internal database. According to the Model Context Protocol (MCP) architecture, which component is responsible for surfacing the database schemas and handling the actual execution of the SQL queries?

Medium
8

A developer's MCP client launches a local stdio server that exposes a `query_metrics` tool. The server process writes diagnostic log lines to standard output while handling requests. Claude's tool calls intermittently fail with JSON parse errors on the client side. Which change best resolves this?

Hard
9

A team wants Claude to query their internal ticketing system through MCP. The operations are read-only lookups and the team wants the model to decide when a lookup is needed based on the conversation. Which MCP primitive is the appropriate choice?

Easy
10

Which property in the Anthropic Messages API allows a developer to prevent Claude from generating any text before it calls a tool?

Medium
11

Which TWO benefits does the Model Context Protocol (MCP) provide to developers building AI-powered applications? (Select TWO)

Easy
12

Refer to the exhibit. A developer provides this tool definition to Claude. If a user asks 'What is the tax on $100?', how will Claude likely behave based on the provided JSON schema?

Medium
13

When implementing a tool use loop in a custom application, what is the correct sequence of events after the model generates a 'tool_use' content block?

Medium
14

In the Model Context Protocol (MCP) architecture, which component is responsible for providing specific resources, tools, and prompts to the rest of the ecosystem?

Easy
15

A developer is implementing a complex MCP Server to expose local file system operations. Which THREE security practices should be prioritized to ensure the server does not compromise the host system? (Select THREE)

Hard
16

A company wants Claude to answer questions about their internal HR policies. They are deciding between fine-tuning a model and using a Tool-calling (RAG) approach. Why is Tool-calling usually preferred for this use case?

Easy
17

A developer's MCP client sends a tools/call request for a tool that performs a database write. The tool result comes back with is_error set to true and a message about a unique-constraint violation. What is the most appropriate way for the client to handle this result?

Hard
18

Claude requests a tool call to 'query_database', but the database is currently down. What is the best practice for handling this error so Claude can inform the user effectively?

Hard
19

A developer is writing an MCP client that must stay responsive while a server performs a slow operation during a tool call. The client should allow the user to cancel the request without terminating the whole session, and the server should be able to stream incremental output before finishing. Which two MCP features should the developer implement? (Choose two.)

Medium
20

A developer is implementing an MCP client that connects to a remote MCP server over HTTP. The server requires authentication using an API key. The developer wants to ensure that all requests from the client include the API key in the headers. Which approach is correct for configuring the MCP client?

Hard
21

Refer to the exhibit. Claude has generated two 'tool_use' blocks in a single response. Which approach is valid for handling these calls in the client application?

Hard
22

Claude generates a response containing three separate 'tool_use' blocks in a single turn. How should the developer process these tool calls to maintain optimal performance and follow Anthropic's best practices?

Hard
23

A developer is adding a 'calculate_shipping' tool to an existing MCP server used by a Claude-based checkout assistant. The tool needs the destination country, package weight in kilograms, and an optional express flag. Which tool definition practice will MOST reliably let Claude call the tool correctly?

Easy
24

Refer to the exhibit. A developer provides this tool definition to Claude. If the user asks for the weather in 'London' without specifying a unit, how will Claude's tool_use block be structured based on this JSON schema?

Hard
25

A developer is using the 'forced tool use' feature. What will be the value of the 'stop_reason' field in the API response when Claude generates the tool call?

Medium
26

A developer is implementing a weather-reporting agent using Claude 3.5 Sonnet. After Claude generates a tool_use block for the 'get_weather' tool, the developer fetches the data. What is the correct next step to ensure Claude can finalize its response to the user?

Medium
27

A developer is building an MCP server that exposes several tools for managing a cloud infrastructure. The server will be used by multiple Claude clients. The developer wants to ensure that tool calls are handled efficiently and that the server can scale. Which two practices should the developer implement? (Choose two.)

Hard
28

A developer is building an MCP client that connects to a remote MCP server over HTTP with Server-Sent Events. The server advertises tools that require user-specific permissions. Which TWO practices should the developer implement to keep the integration secure and functional? (Choose two.)

Medium
29

A developer is building a Claude-powered assistant that uses a tool called 'search_knowledge_base'. The tool definition includes a required parameter 'query' and an optional 'max_results' parameter. During testing, Claude sometimes calls the tool without providing 'max_results'. What should the developer do to ensure the tool call is handled correctly?

Medium
30

A developer is writing a tool called `send_email` for a Claude-based assistant. The tool's description currently reads: 'Sends an email.' During testing, Claude calls the tool for tasks like drafting an email or checking inbox contents. Which revision to the tool definition most directly improves Claude's decision about when to invoke `send_email`?

Hard
31

Which field in the tool definition is primarily responsible for helping Claude determine when a specific tool is appropriate to use for a given user query?

Easy
32

An MCP Server is connected to a Host using the Stdio transport. If the server process crashes, how does the MCP architecture generally handle the reconnection logic?

Medium
33

When using tool use with streaming enabled in the Anthropic API, how does the client receive the tool arguments?

Hard
34

In the context of MCP, what is the primary purpose of the 'List Resources' capability of a server?

Medium
35

A developer is hardening a remote MCP server that exposes a 'run_query' tool against a production analytics database. The server will be reachable over HTTP by multiple Claude clients. Which TWO practices are MOST important to prevent the tool from being abused? (Choose two.)

Hard
36

A developer is integrating a new MCP server that exposes a company's internal HR policy documents. The server implements the Resources capability. The developer wants Claude to access a specific policy document only when the user explicitly asks about it, rather than loading all documents into context upfront. Which MCP method should the developer use to retrieve the content of a single resource by its URI?

Easy
37

A security auditor is reviewing an application that uses the Model Context Protocol (MCP). Which TWO security considerations are most important for the developer to address when implementing the MCP Server?

Hard
38

If a tool execution fails due to an external API timeout, how should the client properly communicate this error to Claude using the Anthropic API?

Medium
39

When using Claude's tool use features in a streaming response, how should the developer handle the 'tool_use' blocks in the stream?

Medium

Frequently asked questions

What does the Tools and MCP Integration domain cover on the CCDV-F exam?
Be able to read a tool definition and predict Claude's call-or-answer behavior, name the description field as the selection signal, and explain MCP Host/Client/Server roles. The key skill: knowing streamed tool arguments arrive incrementally as input_json_delta and must be accumulated before parsing.
How many questions are in this domain?
This page lists all 39 Tools and MCP Integration questions in the CCDV-F question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Tools and MCP Integration questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
anthropic-claude-developer ANTHROPIC-CLAUDE-DEVELOPER tools and mcp integration Practice Questions