
Prefer resources for application-managed, infrequently changing data (e.g., schemas, manifests, or documentation). Use tools for actions that must be executed (e.g., cancel_order). This prevents repeated, unnecessary retrievals and inconsistent state in the model’s context.

Tools (model-controlled)
- Servers publish available tools with
tools/list. - Hosts invoke tools with
tools/call. - Tools are model-controlled: the model decides when to run a tool and what arguments to pass.
check_shipmentbook_slotcancel_order
- Servers publish available resources with
resources/list. - Hosts fetch a resource using
resources/read. - Resources are application-controlled: the host determines what to fetch and when; the model cannot initiate the fetch.
read result (illustrative):
- Servers may publish URI templates with RFC 6570-style placeholders (see RFC 6570).
- Hosts fill placeholders (e.g.,
manifest://{id}) and then perform a singleresources/read.
- Servers publish prepared prompts via
prompts/list. - Hosts fetch a prompt with
prompts/get. - Prompts are user-controlled: think of them as ready-made workflows the user explicitly triggers (slash commands, canned traces, reports).
prompts/list result:
- Use elicitation when the server needs more data from the user while a task is in progress.
- The server creates an elicitation request (
elicitation/create) and the host renders the UI because the server has no direct UI.
- Form mode: server supplies a small JSON Schema; the host renders form fields and returns structured answers.
- URL mode: server returns a URL; the host opens it and the user completes the flow there.
- Accept: user supplies requested data — continue with the task.
- Decline: user refuses — continue without it if possible.
- Cancel: user cancels the workflow — the server must stop the task.

sampling/createMessageallowed a server to borrow the host’s model to generate messages.roots/listallowed a client to tell a server which filesystem directories to consider.
- Replace sampling by calling your model provider’s API directly.
- Replace roots with explicit tool parameters, parameterized resource URIs, or server-side configuration.
- For true filesystem sandboxing, enforce restrictions at the OS or container level — “roots” in MCP were informational only and did not enforce access.

Sampling and roots are deprecated in this revision. Migrate sampling to your model provider’s API and replace roots with explicit tool parameters or resource URIs; enforce any required sandboxing at the operating system level.
- If the model needs to perform an action or effect a change, expose that capability as a tool.
- If you want to provide application-managed contextual data (schemas, manifests, docs), expose it as a resource and let the host fetch it deterministically and infrequently.
- If the user explicitly triggers a workflow, expose it as a prompt the user can choose.
- If the server needs more inputs during an operation, use elicitation.
schema://warehouse) and read once at conversation start. Making the schema a tool allowed the model to call it repeatedly, which led to stale or inconsistent behavior.
References