MCP: Model Context ProtocolBeginnerModule 01 — Understanding the need for MCP

What problems does MCP not solve, and which responsibilities remain application-specific?

Question 10 of 43 · Updated

On this page

Direct answer#

The Model Context Protocol (MCP) standardizes how compatible applications communicate with external capabilities. It does not define the entire AI application or guarantee that a business task is completed correctly. It is a communication and capability boundary, not a reasoning engine, agent framework, memory database, retrieval engine, universal authorization system, transaction coordinator or reliability platform.

A host still needs to decide what the user wants, what information is relevant, which operations are permitted, which model or workflow should run, and how to interpret results. The MCP server and its downstream services must implement business rules, enforce access to resources and report authoritative operation outcomes. Infrastructure teams must provide appropriate security, capacity, monitoring and recovery.

Think of MCP as a standardized way to ask a service for a capability. It makes the question and response easier to exchange across compatible implementations; it does not make the service's answer correct or complete the user's entire workflow by itself.

Learning continuity: The previous lessons introduced integration reuse, interoperability and external context. This lesson makes their limits explicit through a single application scenario and a responsibility map. Detailed implementations of authorization, context budgets, orchestration, reliability and distributed transactions appear in later roadmap modules.

Verification scope: Prepared under the authorized offline research and changelog exceptions, using MCP 2025-06-18 as a historical specification baseline rather than a claim about the latest revision. Official reference links were not opened live. The Python outcome-classification example was syntax-compiled and executed locally on Python 3.13.5; all ten checks passed. No real MCP server, model, payment service, transaction or network failure was exercised. Two Mermaid diagrams are stored in standard fenced syntax and were reviewed structurally; the Mermaid parser and live frontend were unavailable in this environment.

1. A shared protocol is not a complete application architecture#

Consider the retailer from earlier lessons. A customer asks its assistant to order seven units of product A12.

The assistant may use an inventory MCP server, an order MCP server and an authorized payment capability. The user expects one outcome: an order is correctly placed, or the application explains why it cannot complete the purchase.

The protocol can help the host discover and invoke the relevant capabilities. It does not decide the price, check whether the customer's address is deliverable, determine whether the user has approved the final purchase, guarantee a successful payment, or ensure that stock is reserved exactly once.

Those responsibilities belong to application and service implementations.

Loading diagram…

The arrows are conceptual application flow, not literal JSON-RPC messages. Each server has an appropriate client connection, and credentials, lifecycle and error handling are omitted for readability. The MCP boundary is between client and server. Policy, reasoning, business state and the user's final experience span several other layers.

2. The responsibility map#

ResponsibilityWhat MCP providesWhat the application must implement
Capability accessCommon supported discovery and invocation interfacesServer configuration, capability selection and integration logic
Model reasoningAccess to information and operations that can assist reasoningModel selection, task interpretation, evaluation and output quality
Agent orchestrationBuilding blocks for calling external capabilitiesWorkflow order, branching, state, stopping conditions and approval gates
Context and memoryAccess to resources, prompts and tool resultsRetrieval, relevance, token budgets, persistence and privacy
Authentication and authorizationRevision-appropriate authorization framework for applicable transportsIdentity mapping, policy, tenant isolation and resource permissions
Business logicA way to invoke a business capabilityPrices, validation, inventory constraints and authoritative writes
ReliabilityProtocol mechanisms for reporting messages, errors and progress where supportedDeadlines, retries, backpressure, monitoring and recovery
Distributed consistencyIndependent requests to compatible servicesTransaction boundaries, idempotency, reconciliation and compensation

The table does not mean that MCP implementations cannot include these additional features. A server may implement durable state or a host framework may offer an orchestration engine. The point is that those guarantees are not automatically supplied by using the protocol.

3. MCP does not solve model reasoning or hallucinations#

A model can misunderstand a request, choose the wrong operation, construct invalid arguments, ignore a relevant result or produce a confident but false final answer.

For example, a stock tool reports seven available units. A model might answer that seventy units are available, or interpret a stock count as an accepted order. The fact that a tool was called through MCP does not prevent either mistake.

A reliable application should:

  • Validate critical model-generated arguments before execution.
  • Use deterministic checks for numeric calculations, state transitions and business constraints where appropriate.
  • Evaluate tool selection, argument accuracy, grounding and final outcomes using representative test cases.
  • Preserve authoritative results and report uncertainty when required evidence is unavailable.

Model quality, latency, token consumption and behavior depend on the selected model and serving system. MCP may help a host obtain useful evidence but does not train the model, increase its intelligence, guarantee factual correctness or eliminate hallucinations.

In particular, a model's fluent explanation of a completed order must never be treated as evidence that the order was actually committed.

4. MCP is not an agent orchestration engine#

An agent framework or deterministic workflow decides how a task progresses. It may maintain conversation state, choose the next operation, branch after a failure, request approval or stop after a bounded number of steps.

In the purchase example, the host may need to verify the product, calculate a quote, request confirmation, reserve inventory, process payment and finalize the order. An order of operations must be designed with the business service owners; calling these capabilities in an arbitrary sequence is not sufficient.

MCP does not automatically create this workflow from the available tool list. A model might propose an action, but the host decides whether it is appropriate and the server independently enforces its own policy.

A deterministic application could call the same MCP tools without involving a language model at all. An agent framework can also use MCP-backed tools alongside native functions and other service integrations.

For complex or sensitive workflows, keep important state transitions and approval rules in trusted application code. Set a bound on tool calls, execution time and resource use. Do not assume the model will stop at the right moment or remember every prerequisite.

The next roadmap question examines whether an LLM is required to use MCP; later modules show how to implement multi-step orchestration.

5. MCP is not memory or a retrieval-quality system#

A server can expose a document, a search operation or an application memory capability. That is different from implementing the underlying memory and search systems.

For example, an MCP resource could expose a customer's authorized order history. A retrieval tool could search policy documents. The host still decides which information is relevant, which information can be supplied to the model, and whether the result is sufficiently complete and current.

MCP does not automatically:

  • Persist conversation history or user preferences.
  • Select documents based on relevance to the question.
  • Generate embeddings, rank search results or choose chunk boundaries.
  • Expand the model's context window.
  • Resolve contradictory evidence or guarantee that a document is current.

A RAG system must implement appropriate retrieval, filtering, ranking and grounding evaluation. A memory system needs persistence, retention, consent, access policies and correct identity scoping. A host must manage model input budgets and disclosure rules.

The previous lesson explained context selection in detail. The architectural takeaway here is that MCP can expose a retrieval or memory service without replacing that service's implementation.

6. MCP does not automatically authorize every operation#

A successful connection to a server does not grant unlimited access. Tool discovery does not establish permission to execute a tool, and a valid input schema does not establish that an operation is allowed for a particular resource.

In the historical 2025-06-18 baseline, MCP defines an authorization framework for applicable HTTP deployments. Its existence does not remove the need to configure trusted identity providers, validate tokens and enforce application-specific permissions. Local processes require their own execution and isolation policies.

Suppose a customer can read their own order but cannot read another customer's order or change its payment status. The server and downstream business service must enforce that rule for every relevant operation. A host-side tool filter is useful but cannot substitute for authoritative resource authorization.

Some tools require a separate user confirmation. For example, the user may authorize the assistant to retrieve product prices without authorizing it to charge a payment method. The application must distinguish a model proposal from a trusted user approval, and bind approvals to the intended operation and its parameters.

Even an authorized tool can return untrusted content. The host must treat external text as data, protect credentials, and enforce policy independently of instructions embedded in documents, descriptions or tool results.

7. MCP does not implement business logic#

A tool called reserve_stock might expose an operation with a product identifier and quantity. Its implementation must still enforce actual business rules.

For inventory, these may include:

  • Quantity must be a positive integer within a permitted limit.
  • The product must be available in the requested region or warehouse.
  • The authenticated customer must be eligible to purchase it.
  • Stock must be checked and reserved using an appropriate authoritative transaction.
  • The same reservation request must not incorrectly decrement stock twice.

These are not rules the MCP protocol can infer from a tool name or description. Even a well-defined input schema cannot guarantee that enough inventory exists at execution time.

A host can validate a proposed quantity before calling the server, but concurrent orders may change the available stock. The authoritative inventory service must enforce the invariant when the reservation executes.

The same principle applies to pricing, tax, order cancellation, refunds, legal constraints and access to records. A protocol interface should expose narrow business operations rather than require a model to reconstruct critical domain rules.

8. MCP does not guarantee reliability or exactly-once business effects#

Communication and business completion are different events.

A server may receive a request, commit a write, and then lose the connection before the response reaches the host. The host observes a timeout, but the business operation may already have succeeded. Repeating a write without appropriate safeguards can produce an unintended duplicate.

Likewise, an HTTP success status or a valid protocol response does not necessarily mean the requested business operation succeeded. An MCP tool can report an execution error or return business data that indicates rejection or pending processing. The host must inspect the relevant protocol and business outcome, not simply the transport status.

A robust application designs explicit behavior for:

  • Bounded timeouts and cancellation, recognizing that cancelling a request may not undo work already performed.
  • Retry policies based on operation safety and error classification.
  • Durable idempotency identifiers and duplicate prevention where side effects are possible.
  • Status checks and reconciliation after uncertain outcomes.
  • Rate limiting, concurrency budgets, service health monitoring and failure isolation.

MCP provides protocol-level mechanisms that help represent requests, errors, cancellation or progress in applicable revisions. Those mechanisms do not automatically guarantee business rollback, service availability or a particular delivery semantic.

9. Distributed transactions: a concrete failure scenario#

Assume the retailer chooses a reservation-first purchase workflow. Inventory and payment are separate systems. The inventory reservation succeeds, but the payment response may be successful, declined or unavailable due to a timeout.

Loading diagram…

This is an illustrative business workflow, not an MCP method definition or a recommendation that every retailer should charge or reserve in this order. Actual payment and inventory providers have their own authorization, idempotency and lifecycle requirements. All operations in the diagram assume the relevant user authorization and trusted approval were established first.

A successful reservation cannot be automatically undone by the MCP client. Releasing inventory is a separate business operation that can itself fail. A payment timeout must not be interpreted as a definite decline, and the host must not automatically charge the customer again.

When several independent services are involved, the application may use a durable workflow or saga that records completed steps and coordinates appropriate compensating actions. Compensation is a new business action, not a universal rollback. For example, a release may no longer be possible after a shipment has been dispatched.

If operations share a suitable transactional database, the business service may enforce an atomic transaction locally. Across independent services, atomicity is not supplied by an MCP connection; it depends on the transactional guarantees of the underlying architecture.

The important distinction is that a request identifier used to correlate protocol messages is not automatically a durable business idempotency key. A business operation identifier must be implemented and enforced by the relevant services.

10. Tested Python exercise: classify the business outcome#

This small exercise illustrates a host's responsibility to interpret verified business receipts before reporting a final outcome. The example assumes the application has already obtained authenticated, trustworthy receipts from the inventory and payment services, and that both receipts refer to an immutable approved order intent. The status values are invented domain values, not standardized MCP response fields.

It performs no writes, external API calls, payment operations, protocol exchanges or transaction coordination. A result of confirmed means only that both required receipt statuses match this simplified example's success condition. In a full order system, final order persistence and other required checks would also have to succeed before telling the user that an order is placed.

Save as workflow.py:

PYTHON
from dataclasses import dataclass @dataclass(frozen=True) class Receipt: operation_id: str status: str def classify(operation_id, reservation, charge): """Decide what the host may report; never perform a write.""" if any(r is not None and r.operation_id != operation_id for r in (reservation, charge)): return 'reconcile' if reservation is None or charge is None: return 'reconcile' if reservation.status not in {'reserved', 'rejected'}: return 'reconcile' if charge.status not in {'charged', 'declined', 'not_attempted'}: return 'reconcile' if reservation.status == 'reserved' and charge.status == 'charged': return 'confirmed' if reservation.status == 'reserved' and charge.status == 'declined': return 'release_pending' if reservation.status == 'rejected' and charge.status == 'not_attempted': return 'rejected' return 'reconcile' if __name__ == '__main__': op = 'order-42' def r(status): return Receipt(op, status) cases = [ (r('reserved'), r('charged'), 'confirmed'), (r('reserved'), r('declined'), 'release_pending'), (r('rejected'), r('not_attempted'), 'rejected'), (r('reserved'), None, 'reconcile'), (None, r('charged'), 'reconcile'), (r('rejected'), r('charged'), 'reconcile'), (r('reserved'), r('not_attempted'), 'reconcile'), (r('pending'), r('charged'), 'reconcile'), (r('reserved'), r('unknown'), 'reconcile'), (r('reserved'), Receipt('other-order', 'charged'), 'reconcile'), ] for reservation, charge, expected in cases: assert classify(op, reservation, charge) == expected print(f'{len(cases)} workflow outcome checks passed')

Run:

BASH
python -m py_compile workflow.py python workflow.py

Actual output using Python 3.13.5:

10 workflow outcome checks passed

The ten cases cover full receipt success, a definitive decline requiring release, a rejected reservation with no payment attempt, two missing-receipt cases, contradictory outcomes, an incomplete payment attempt, an unexpected reservation status, an unknown payment status and a receipt for another operation.

Notice that release_pending is not a claim that inventory has already been released. The application must request the release if appropriate, verify its result and record the next workflow state. Similarly, reconcile is a decision to investigate authoritative state, not proof that a refund or retry is needed.

This code is intentionally a pure classification function. It assumes typed, trusted inputs and does not validate receipt signatures, tenant, order amount, currency, product, quantity or approval binding. It does not persist workflow state, consume approvals, enforce idempotency, prevent concurrent duplicate writes or implement compensation. These remain mandatory production considerations as applicable. The ten local checks prove only the stated behavior for the supplied fixtures.

11. Observability and production ownership remain necessary#

An application that uses MCP still needs owners for its host, servers, downstream services and business workflows. When something fails, operators should be able to tell whether the problem originated in model selection, host policy, protocol communication, server execution or downstream business state.

Measure more than tool-call counts. Useful signals include business completion rates, invalid tool arguments, authorization failures, unresolved operations, dependency latency, error categories and retry rates. Use correlation identifiers and sanitized logs to connect a user-visible issue to the authoritative outcome without recording credentials or sensitive payloads.

A shared server may help centralize some monitoring and capacity controls, but it also becomes a shared dependency. High availability, recovery plans, deployment testing and appropriate service-level objectives are still engineering work.

A protocol cannot promise that a third-party API remains available or that a model provider will preserve every behavior. The host should define acceptable degradation and make missing information or incomplete operations visible to the user.

12. How to decide which layer should implement a responsibility#

A useful beginner rule is to put decisions at the layer that has the authority and information to enforce them.

QuestionBest starting owner
What does the user intend?Host, possibly assisted by the model
Which capability is appropriate for this workflow?Host orchestration and policy
How is a supported capability discovered or invoked?MCP client and server
Is the authenticated actor allowed to access this record?Resource-owning service, with host policy as defense in depth
Is there sufficient inventory at commit time?Inventory service and its authoritative data layer
Has payment actually completed?Authoritative payment service and verified workflow state
What information may be shown to the model or user?Host disclosure policy and downstream data access controls
What happens when an operation is uncertain?Durable workflow and relevant business services

These are starting ownership boundaries, not a universal deployment blueprint. A single process can implement several of these layers, or an organization can distribute them across teams. The requirement is that critical guarantees are explicitly implemented and verified rather than implicitly attributed to MCP.

Interview-ready answer#

MCP standardizes communication between compatible hosts and servers that expose external capabilities, but it is not an end-to-end AI application platform. It does not guarantee model reasoning, choose or orchestrate an agent workflow, implement persistent memory or retrieval quality, enforce domain-specific permissions automatically, execute business logic correctly, or provide exactly-once writes and distributed transactions. The host owns task orchestration, context selection, approvals and result interpretation. The server and downstream services own resource authorization, business invariants and authoritative state. Infrastructure and workflow systems provide reliability, idempotency, reconciliation and monitoring. I would use MCP as a reusable capability boundary while designing and testing those responsibilities independently.

Next lesson: With these limits established, we can ask a simpler but important architectural question: does MCP require a language model to function?

References

  1. 1.
  2. 2.
    MCP toolsmodelcontextprotocol.io
  3. 3.
    MCP authorizationmodelcontextprotocol.io
  4. 4.
    MCP lifecyclemodelcontextprotocol.io
  5. 5.
    JSON-RPC 2.0jsonrpc.org
  6. 6.
  7. 7.
  8. 8.

Related questions

Explore other topics:Forward Deployed EngineeringAI AgentsLarge Language ModelsRetrieval-Augmented Generation