User-in-the-Loop

User-in-the-Loop (UITL) is a control pattern in MCP where certain operations are paused until a human user reviews and approves them.

Implementation

MCP hosts usually implement UITL for tools marked as "risky" or "destructive."

Importance

This pattern is the primary safeguard against "runaway" AI agents making unauthorized changes or exposing sensitive data without oversight.

Questions & Answers

What is the "User-in-the-Loop" (UITL) control pattern?

UITL is a safety mechanism where certain agent operations are paused until a human reviews and approves them. This pattern ensures that a person remains responsible for the outcome of high-risk actions.

How do MCP hosts typically distinguish between automatic and UITL-required tools?

Hosts usually distinguish based on the risk associated with a tool's action. Non-destructive actions (like reading a public file) may be automatic, while sensitive actions (like deleting data or making financial transactions) require explicit approval.

What information is typically displayed to a user during an approval flow?

The host application’s confirmation UI usually displays the tool name, the specific arguments the model intends to send, and a brief explanation of the tool’s potential impact on the system or data.

Back to Glossary