{
 "id": "sampling",
 "name": "Sampling",
 "aliases": [
  "MCP sampling",
  "sampling/createMessage"
 ],
 "definition_md": "**Sampling** (`sampling/createMessage`) is a client-exposed capability in the **Model Context Protocol (MCP)** that allows an MCP server to request an LLM completion from the host application rather than bundling its own model API keys. This keeps model selection, token billing, privacy guardrails, and human-in-the-loop approval under the control of the user's host while enabling recursive agentic behaviors inside MCP servers. Used by: mcp.",
 "step": "act",
 "related_protocols": [
  "mcp"
 ],
 "sources": [
  {
   "url": "https://modelcontextprotocol.io/specification/2026-07-28/index",
   "date": "2026-07-28",
   "label": "VERIFIED"
  }
 ],
 "part_of": null,
 "group": null,
 "url": "https://agenticweb.wiki/terms/sampling/",
 "okf_url": "https://agenticweb.wiki/okf/terms/sampling.md",
 "category": "act",
 "type": "term"
}