0Pricing
MCP Academy · Lektion

Was Sampling ermöglicht

Lassen Sie einen Server Denkarbeit an das Modell delegieren.

Was Sampling ermöglicht ist eine kostenlose MCP Academy-Lektion auf CoddyKit. Dies ist Lektion 1 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des MCP Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der MCP Academy-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

Flipping the Direction

Usually the model calls your tools. Sampling flips that: your server asks the model to generate text for it. 🔄

Borrow the Model You Already Have

With sampling, your server can use the host’s LLM without ever holding an API key. The client owns the model access.

No API Keys in Your Server

Because the client runs the completion, your server needs no provider credentials. That keeps secrets out of your code entirely.

Agentic Behavior, Nested

Sampling lets an LLM call happen nested inside a tool. Your tool can think with the model mid-task, not just return data.

A Tiny Example: Summarize

Imagine a tool that fetches a report, then asks the model to summarize it. The summarizing happens through sampling.

You Stay in Control of Cost

The client picks the model and pays for it, so the host decides cost, limits, and which model runs your request.

Server Delegates Reasoning

Think of sampling as the server saying: I have data, you have a brain. It delegates the reasoning step back to the model.

What You Can Ask For

A sampling request can ask the model for text, and clients may also support image or audio content in messages.

It Is Opt-In on the Client

Sampling only works if the client declares the sampling capability at startup. Not every host enables it.

"capabilities": {
  "sampling": {}
}

Why It Matters

Sampling unlocks smart, self-contained servers: data tools that can reason, classify, and write — powered by the user’s own model.

The Catch: Trust

Because servers can trigger model calls, there must be a human able to approve them. You’ll see that safety flow soon.

Quick Check

Quick gut check on what sampling really does.

Recap

Sampling flips control: your server asks the host’s model to think for it — no keys, opt-in, and always with a human able to approve. ✅

Häufig gestellte Fragen

Ist die Lektion „Was Sampling ermöglicht“ kostenlos?

Ja — der vollständige Text von „Was Sampling ermöglicht“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des MCP Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der MCP Academy-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Was Sampling ermöglicht“?

Lassen Sie einen Server Denkarbeit an das Modell delegieren. Du übst MCP Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um MCP Academy zu starten?

Keine Vorkenntnisse erforderlich. MCP Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 1 von 4.

Wie lange dauert die Lektion „Was Sampling ermöglicht“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser MCP Academy-Lektion Code schreiben und ausführen?

Ja. Jede MCP Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. Was Sampling ermöglicht
  2. Eine Vervollständigung beim Host anfordern
  3. Nachrichten und Präferenzen gestalten
  4. Genehmigung durch den Menschen
← Zurück zu MCP Academy