Join our Newsletter — 33% off our NHI Course
Home› Guides› MCP Sampling and Elicitation for Beginners: When a…
Guide MCP, Protocols & Agent Platforms

MCP Sampling and Elicitation for Beginners: When a Tool Asks the AI, or You, a Question

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 4 December 2026 11 min read
On this page

Sampling and elicitation are two ways an AI tool can ask for help: from the AI, or from you.

This guide is for anyone who uses AI apps that connect to other tools, or who looks after people who do. You do not need to write code. If your AI assistant can reach your files, email or business apps, these requests may reach you.

In short

  • MCP, the Model Context Protocol, is a common way to plug tools into AI apps.
  • Sampling is when a tool asks your AI app to have the AI write something for it.
  • Elicitation is when a tool pauses and asks you a question, through a form or a web page.
  • The rules say a person should be able to check and refuse these requests, and passwords belong on a web page, not in a chat form.

What you will learn

  • Explain sampling and elicitation in plain words.
  • Spot a tool request that asks for a secret in the wrong place.
  • Check what your AI app shows you before you approve a request.
  • Ask your IT team which tools are allowed to make these requests.
Add-on for an AI app (MCP server)
a small program that gives an AI app a new skill, such as reading a calendar.
The app you use (MCP client)
the AI app on your screen, which connects to the add-ons and to the AI.

What are MCP sampling and elicitation?

Think of a builder working in your home. Sometimes they ask to borrow your phone to look something up. Sometimes they knock on your door and ask you a question, such as which colour you want.

An MCP tool works the same way. The Model Context Protocol (MCP) is a shared set of rules for connecting tools to AI apps. A tool connected this way is called an MCP server, and the app you use is the MCP client.

Sampling is the "borrow your phone" request. The tool asks your app to send a prompt to the AI and return the answer [1]. The tool does not need its own AI account, because it uses the one your app already has.

Elicitation is the "knock on the door" request. The tool asks you for a missing detail, either in a short form inside the app or by sending you to a web page [2].

Where the comparison stops working: a builder asks in person, so you know who is asking. A tool's request arrives through your app, so you rely on the app to show you which tool is asking.

New to MCP itself? Start with Model Context Protocol (MCP) for Beginners. This page covers only these two kinds of request.

Why does it matter?

Both requests let a tool reach things it does not own: your AI, or you. That is useful, and it is also a way for a badly built or harmful tool to get more than it should.

If you use an AI assistant at work

What could happen: a tool asks for a password in a chat form, and it ends up stored in the wrong place.

Check this: never type a password, key or card number into a form inside the AI app.

Next: Secrets in AI Chats for Beginners

If you manage a small team

What could happen: a tool keeps sending sampling requests, running up AI costs or sending your data into prompts.

Check this: ask which MCP tools your team has added, and who approved them.

Next: Local MCP Servers for Beginners

If you are new to IT work

What could happen: users press "approve" on every pop-up because they do not know what it means.

Check this: show users what a normal request looks like in the app you support.

Next: Human-in-the-Loop for AI Agents for Beginners

What does it look like?

Here is a made-up text version of an elicitation request inside an AI app. Real apps lay it out in their own way.

Example only. All values are made up.

Request from: EXAMPLE-shipping-tool                 (1)
"Which depot should this order ship from?"           (2)
   ( ) North depot   ( ) South depot                 (3)
[ Accept ]  [ Decline ]  [ Cancel ]                  (4)

Request from: FAKE-helper-0000                       (5)
"Paste your company API key to continue: ______"
  1. The app names the tool that is asking. The rules say apps must make this clear.
  2. A plain message saying why the tool needs the answer.
  3. A simple choice. Forms are meant for everyday details like this.
  4. You can send an answer, say no, or close it without choosing.
  5. In a real message, this line would name the tool. A request for a key in a chat form is a warning sign.

Why this is risky: the second request asks for a secret inside the app. The MCP rules say tools must not use forms to ask for passwords, keys, tokens or payment details [2].

The safer way: secrets go on the service's own web page, opened only after the app shows you the full address and you agree [2].

How does it work?

Sampling first:

  1. The tool asks. It sends your app a request to pass to the AI, such as "summarise this delivery note".
  2. The app shows you. The rules say a person should be able to see, edit and refuse the request [1].
  3. The AI answers. The approved request goes to the AI, and the answer can be shown to you before the tool gets it [1].
  4. The tool carries on. It uses the answer to finish the job it was doing for you.
Diagram titled Sampling: a tool asks your AI app to use the AI. Three boxes in a row: Tool (MCP server) that wants some text written; Your AI app (MCP client) that holds the AI connection; AI model that writes the text. A fourth box below the app is You, who approve, edit or say no. Numbered arrows: 1 the tool sends a request to the app; 2 the app shows it to you, and later the answer too; 3 the approved request goes to the AI; 4 the answer comes back to the app; 5 the app passes it on to the tool. A note says the tool does not need its own AI key, because it uses the app's AI connection.
Figure 1. In sampling, the tool borrows your app's AI, and you can check each step.

Elicitation works in one of two ways [2]:

  • Form mode. The app shows a short form for everyday details, such as a name or a choice from a list. You can accept, decline or cancel.
  • Web page mode. For secrets, payments or connecting another account, the app shows you a web address and asks before opening it. What you type goes to that service, not through the AI app.
Diagram titled Elicitation: two ways a tool can ask you something, with two panels. Form in the app: for everyday details such as a name, a date or a choice from a list; you can edit, accept, decline or cancel; not for passwords, keys, tokens or card details. Web page outside the app: for secrets and sign-ins such as passwords, keys, payments or connecting another account; the app shows the full web address and asks first; what you type goes to the service, not the chat.
Figure 2. Forms for everyday details, web pages for secrets.

The web page mode was added in the November 2025 version of the MCP rules, and the rules say its design may change [2]. Not every app supports both requests yet, so what you see depends on the app.

Diagram titled Spot the signs: a safe request and a risky one, with two panels. Risky: a request saying paste your API key here to continue, with a blank box; signs listed are no name of the tool asking, a secret typed into the chat, and pressure to answer quickly; advice is decline and tell your IT team. Safer: a request saying shipping tool asks which depot should I use, with a list; signs listed are names the tool asking, asks only for what the job needs, and Accept, Decline and Cancel shown; advice is answer only if it makes sense.
Figure 3. Signs of a safe request and a risky one.

A worked example

This story is made up to show the idea.

Yusuf Demir plans deliveries at Kestrel Freight. His team uses an AI assistant with a few MCP tools added, including one that books lorry slots.

On Tuesday, the booking tool sends a sampling request. The app shows Yusuf the prompt: "Write a short note to the depot about order EXAMPLE-0000." He reads it, sees nothing odd, and approves it. The AI writes the note, and the app shows it to him before passing it back.

Later the same tool asks a question through a form: "Which depot should this ship from?" Yusuf picks one from the list and presses accept.

Then a second tool, added by a colleague last week, shows a form. It asks him to paste the company's courier account key "to continue".

Yusuf stops. He remembers the IT briefing: a tool should not ask for a key in a chat form. He presses decline and messages the IT team.

IT checks the tool. It came from an unknown website and was not on the approved list. They remove it from the team's app and check that no keys were shared. They then send the team a short note with a picture of a normal request and a risky one.

Yusuf learned that the app's pop-ups are worth reading. A request for a simple choice was fine. A request for a secret in the chat was the signal to stop.

Myths and mistakes

What people thinkWhat to do instead
If my AI app shows a form, it must be safe to answer.Check which tool is asking and what it wants. Forms should not ask for passwords or keys.
Sampling means the tool gets my AI account.The tool asks your app to make the request. The app keeps control of which AI is used.
Approving every pop-up saves time.Read each one. The approval step is there so a person can catch a bad request.
Declining will break the tool.Tools are meant to handle a "no". You can usually try again later.
A web page link from a tool is always safe.Check the full address the app shows you before you agree to open it.

What can I do this week?

  • Open your AI app's settings and list the MCP tools that are connected.
  • Remove any tool you do not use or do not recognise.
  • Read the next request your app shows you before you approve it.
  • Agree a simple team rule: no passwords or keys in chat forms.
  • Ask IT who approves new MCP tools and where the approved list is kept.

Checklist

  • I can explain sampling as a tool asking to use the AI through my app.
  • I can explain elicitation as a tool asking me a question.
  • I check which tool is asking before I answer.
  • I never type a password, key or card number into a chat form.
  • I read the full web address before I let the app open a page.
  • I know I can decline or cancel a request.
  • I know which MCP tools are connected to my app, and who approved them.
  • I report odd requests to IT.

Common questions

What is the difference between sampling and elicitation?

Sampling asks the AI; elicitation asks you. In sampling, a tool wants the AI to write or decide something and asks your app to pass the request on. In elicitation, the tool needs a detail only you can give, such as a choice, and asks you directly.

Can I say no to these requests?

Yes. The MCP rules say people should be able to refuse sampling requests, and that apps must give clear decline and cancel options for elicitation. If your app gives you no way to refuse, raise it with whoever supports the app.

Why would a tool send me to a web page?

To keep secrets out of the AI app. For passwords, keys, payments or linking another account, the rules say tools should use a web page. What you type there goes to that service, not through the chat, which lowers the chance it is stored in the wrong place.

Do all AI apps support sampling and elicitation?

No. They are optional parts of MCP, and an app has to say it supports each one when it connects to a tool. So the requests you see depend on which app you use and which tools you have connected to it.

Is it safe to share my email address in a form?

Often, if the tool needs it and you trust the tool. The rules allow everyday details like a name or email in forms, but you can still decline. Share only what the task needs, and check which tool is asking first.

Where next?

Ready for the detail? Read the practitioner guide: MCP Sampling and Elicitation Security Guide. It goes further into the message rules, approval design, rate limits and how teams check that the right person completes a web page request.

Also useful:

Related NHI Mgmt Group resources: Index of MCP and Agent Protocol Guides, MCP Client and Server Security Responsibilities and Secrets in AI Chats for Beginners.

Key terms

Model Context Protocol
An open set of rules that lets AI apps connect to tools and data sources.
MCP server
A tool that connects an AI app to another system, and should be reviewed like any other connector with access.
MCP client
The AI app that connects to MCP servers and passes their requests on.
Sampling
In MCP, a tool asking the app to send a prompt to the AI and return the answer.
Elicitation
In MCP, a tool asking the person using the app for extra information.
URL-mode elicitation
Sending the person to a trusted web page for sensitive steps, so secrets stay out of the AI app.
Human-in-the-loop
A person checks and approves an AI action before it goes ahead.

Sources and further reading

  1. Model Context Protocol, "Sampling", Specification version 2025-11-25. https://modelcontextprotocol.io/specification/2025-11-25/client/sampling (accessed 4 Dec 2026).
  2. Model Context Protocol, "Elicitation", Specification version 2025-11-25. https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation (accessed 4 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.