CertPrep
Domain 3 · Lesson 3.6 · 7 min read

Choosing a Connection Mechanism

Exam skillConnection Mechanism Selection

Evaluating MCP, direct API/CLI, and agent-to-agent handoff against scenario constraints on latency, security, and statefulness, and selecting the connection mechanism the constraints favor.

Weigh MCP, a direct API or CLI call, and agent-to-agent handoff against the scenario's latency, security and statefulness constraints, and choose the mechanism they favour.

What you need to know

Integration choices sit at two levels: how your code talks to Claude (the build-time interface) and where the traffic goes (the delivery route). The exam tests both, and especially the cases where two options look interchangeable but are not.

Build-time interfaces

InterfaceWhat it gives youChoose it whenTrade-off
Direct APIRaw HTTP requests and responsesYou need full control, or a new feature is not in the SDK yetYou build retries, streaming and tool plumbing yourself
Client SDKsThe same API with typed, language-native helpersThe default for embedding Claude in a productYour code still owns any loop or orchestration
Agent SDKA managed agent loop: iteration, tool execution, terminationClaude must act over many turns inside your own applicationLess control over each individual turn
MCPAn open protocol for exposing tools, resources and prompts from a serverThe same tools must be reachable from several Claude clientsAn extra protocol layer to run and debug
Claude CodeAn agentic coding tool for engineersThe user is a developer working in a codebaseNot a backend for a customer-facing product

Two distinctions come up again and again:

  • MCP and the Agent SDK are different layers. MCP is how tools are exposed; the Agent SDK is the loop that decides when to call them. They are often used together.
  • MCP versus plain tool use. If the tools live inside one product, define them directly with tool use. MCP earns its extra layer when the same tools must serve several clients (Claude Code, Claude apps, an internal portal).

Agent-to-agent

Sometimes one agent hands work to another: an orchestrator delegating to specialist subagents in the same system, or two separately owned agents exchanging tasks. Inside one system, treat it as the orchestration design from lesson 1.4, with structured results and shared trace IDs. Across organizational boundaries it is an integration contract: define the message format, authenticate both sides, limit what each agent may ask the other to do, and log every exchange.

Delivery routes

The same models are available directly from Anthropic and through major cloud platforms (for example Amazon Bedrock, Google Cloud Vertex AI and Microsoft's catalogue). Feature availability and model release timing can differ by route, so check before committing.

Pull towardsRoute
Newest features first, no cloud commitmentAnthropic's API directly
Existing cloud agreement, identity, network and billing on that cloudThe matching cloud platform
Regulated data (healthcare, government, data residency)Whichever route is covered by the required agreement and authorization for the exact configuration

Latency, security and state

ConstraintFavours
Tight latency on one application's pathA direct API call, with no extra hop
One capability reused by several Claude clientsAn MCP server, authenticated and authorized per client
Work that keeps its own multi-step state, owned by another team or platformAgent-to-agent handoff with a defined contract
Stateless lookupsA direct call or a simple MCP tool, not a conversation with another agent

In the exam

Connection items describe what must be connected, who else needs it, how fast it must be, and what state it carries, and ask which mechanism fits. A direct call suits one consumer and a tight latency budget; an MCP server suits a capability several Claude clients reuse; agent-to-agent handoff suits multi-step work owned by another agent that keeps its own state; a mature CLI is often enough for developer tools. Distractors add an agent or a protocol layer where a direct call fits.

Check your understanding

Question 1

A bank wants its internal loan portal to let Claude investigate a case over several steps, calling five internal services. Only this portal will use the tools. What fits best?

Show answer

Answer: D. Multi-turn action inside the bank's own application is the Agent SDK's job. With one consumer of the tools, MCP adds a layer without reuse.

Question 2

A company's ticketing tools must be usable from Claude Code by engineers and from Claude apps by support staff. What is the best way to expose them?

Show answer

Answer: C. Several clients sharing the same tools is exactly the case MCP was designed for. Copying definitions duplicates work and drifts.

Question 3 · select 2

Which TWO statements are correct?

Show answer

Answer: A, C. MCP and the Agent SDK are complementary layers, and procurement or compliance constraints come before technical convenience. The client SDKs leave orchestration to your code, and availability can differ by route.

Apply it: Map Northgate's integrations

Exercise · about 15 minCase: Northgate Software

Northgate has four AI initiatives: Claude Code for engineers, a CI bot that reviews every pull request, an incident-diagnosis agent inside the internal developer portal, and the in-product assistant for bank customers. Several of them need the same internal tools (service catalogue, logs search, deployment history).

  1. Choose the build-time interface for each initiative with a one-line reason.
  2. Decide where MCP belongs and where it does not.
    Why: MCP is justified by sharing, so you have to know which tools are shared.
  3. Name one constraint that could change the delivery route, using the case facts.
Check your work
Show model answer

1. Interfaces

InitiativeInterfaceReason
Engineers' coding workClaude CodeDevelopers working in repositories
CI pull request reviewClient SDK from the CI jobOne request per pull request, response posted as a review
Incident-diagnosis agent in the portalAgent SDK in the portal's backendMulti-step investigation inside Northgate's own application
In-product assistant for banksClient SDK (or Agent SDK if it must act over several steps) behind Northgate's productCustomer-facing; Claude Code is the wrong shape

2. MCP. The service catalogue, logs search and deployment history are used by Claude Code and by the incident agent, so expose them once as internal MCP servers. The in-product assistant's tools (a bank's own accounts and reports) are used only by the product, so define them directly with tool use; they must also never be reachable from engineers' tools.

3. Delivery-route constraint. Source code may only go to vendors approved under Northgate's SOC 2 vendor process, and the banks may require their data to stay with an approved cloud or region. Either can decide the route before any technical preference does.

Key termsIterationModel Context Protocol (MCP)Tool use

Sources

Go hands-on optional, needs a Claude API key

Runnable notebooks from Anthropic's Claude Cookbook that build the patterns in this lesson.