MCP elicitation: when live data decides to ask the user

Elicitation is one of the features of MCP 2.0, the 2026-07-28 revision of the protocol: a tool can answer a call with a question for the user. This post shows what that is good for when the tool sits on a live stream: the same request, two customers, and only one of them gets asked.

Isometric model block topped with a network of nodes beside the title 'MCP elicitation: when live data decides to ask the user'

From a tool that answers to a tool that asks

In the previous post an AI agent got fresh state from a Kafka stream through an MCP tool. The tool was a Nussknacker scenario: it read what a streaming job had computed, classified it, and answered. That was all it could do with a call. Answer it, or fail.

Some calls should not be answered straight away. A tool that changes a card limit, issues a refund or cancels an order sometimes needs one more fact from the person on the other side, and only the tool knows when.

In the previous example the tool could only return a result. Here we extend the scenario so it can ask the user for input before it continues. MCP calls that elicitation. It is one of the features of the new revision of the protocol, and this post shows it on one example, built end to end in Nussknacker.

What elicitation is in the new MCP revision

Elicitation lets a tool put a question to the user in the middle of a call and carry on once it has the answer. It has been part of the protocol since the 2025-06-18 revision; the new revision of the specification changed how it happens. The server no longer pushes a request to the client over an open connection. Instead the tool answers the call itself with "input required" and the question. The client shows the question, and sends the same call again with the answer attached.

For the person it looks like this: they ask the assistant for something, a question from the tool appears with its options, they pick one, and the assistant comes back with the result.

Claude Code showing a question from the MCP server: 15 small payments at 9 online shops in 10 minutes, are they yours, with two options

The example: two customers ask for a higher card limit

Anna and Peter both ask their bank's assistant to raise their card limit to 5000 euro. The assistant calls the same MCP tool for both.

Anna gets her limit. The tool applies the bank's rules and changes it, no questions.

Peter gets a question first. On his card a streaming scenario has just seen fifteen small payments at nine online shops in ten minutes, so before the tool touches the limit it asks whether those payments are his. He does not recognise them, and the card is frozen instead.

This is a demo: the payments come from a generator, and the services that change the limit and freeze the card are stand-ins, not a bank's systems.

MCP Elicitation in Nussknacker: the tool asks the user before it acts

Two scenarios do the work, the same split as in the previous post: a streaming one that computes the state, and a request-response one that serves it as a tool.

The streaming scenario: noticing that something is off

The first scenario reads every card payment from a Kafka topic and keeps only the small ones.

Streaming scenario in Nussknacker: card payments source, two filters and a ten-minute sliding window, with live record counters on each node

A sliding window then keeps three things per card for the last ten minutes: how many small payments there were, at which shops, and which payments they were.

The window node's settings: Group by the account number, the aggregations Count, Set and List, and a Window length of 10 minutes

Many small payments spread over many shops is a common pattern of a stolen card being tested. When both counts cross their thresholds, the scenario marks the card as suspicious. It writes the card's risk state to a key-value store: the flag, the numbers and the payments in question. Each matching payment updates the aggregate without waiting for the window to close, and the stored entry expires after fifteen minutes unless a new payment refreshes it, so a card that goes quiet does not stay marked forever.

Nothing here knows about agents or MCP. It is a stream job that keeps a fact current.

The tool scenario: where the question lives

The second scenario is the MCP tool. It takes an account number and a new limit, reads the card's record from the key-value store when the tool is called, and decides what the card needs. A quiet card goes straight to the limit rules. That is Anna's path.

A suspicious card goes to a node that asks.

Request-response scenario: a node named 'ask about the payments' with three outputs leading to 'record them as recognized', 'freeze the card' and 'answer not understood'

The node holds everything the question needs: its text, the options, and one output per answer.

The menu node: items 'Yes, I recognize them' and 'No, freeze my card', and a Question built from the number of payments, shops and minutes

The question is an expression, not a fixed string. It is built from the data the stream wrote, so Peter is asked about fifteen payments at nine shops because those are the numbers on his card right now. Another card would get its own.

Pause and resume

When the scenario reaches the node, it pauses. It keeps its state, and the tool answers the call with the question. The MCP client shows it to the user.

The answer arrives as a repeated call. Nussknacker matches it to the paused scenario and resumes it on the output of the chosen option. The answer applies to the payments shown in the question, the ones captured before the pause. "Yes" records them as recognised, reads the card's state again in case new suspicious payments arrived while the question was open, and only then returns to the limit rules. "No" freezes the card and leaves the limit as it was. The assistant gets the final result and explains it to the customer.

The scenario did not start over. Everything it had read before the question is still there after it, so the branch after the answer can use that snapshot of the card's state, the request and the answer together.

Who decides to ask

The model did not decide to ask Peter anything. It called a tool, as it did for Anna. The scenario decided, from state a stream computed minutes earlier.

That is the part worth keeping. Whether to involve a person is a business rule: which pattern is suspicious, how many payments are too many, what the options are, what happens after each one. Put in a prompt, that rule is a request the model may or may not follow, repeated in every agent that uses the tool. Put in a scenario, it is one node and a few branches that someone owns, can read on the canvas and can test. Change the threshold in the streaming scenario and other cards start getting the question, with no prompt to edit.

The previous post ended on serving logic rather than data. Elicitation extends the same idea to the conversation: the tool serves not only the answer, but also the question.

What to know before you use it

  • The question reaches the user only through MCP clients that speak the new revision and support elicitation. Other clients get the scenario's pause response as before.
  • One node asks one thing: a text field, or a choice of the node's items.
  • The answer has to come back within a time limit, five minutes by default.
  • If the user declines or cancels the question, the call ends with an error result. The scenario has no branch for that.

You can try it on Nussknacker Cloud or request a self-managed version.

The visual Flink interface for real-time decision logic.

Enrich, decide, and act on every event.