0Pricing
MCP Academy · レッスン

適切なプリミティブを選ぶ

機能にツール、リソース、プロンプトのどれを使うか判断します。

「適切なプリミティブを選ぶ」はCoddyKit上の無料MCP Academyレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはMCP Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 MCP Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Three Choices, One Question

You know tools, resources, and prompts. Now the skill is choosing the right one for each feature you want to expose. 🧭

Who Is in Control?

The clearest divider is control. Tools are model-controlled, resources are application-controlled, and prompts are user-controlled.

Does It Take Action?

If a feature does something, like sending mail or writing a row, it is almost always a tool. Action is the tool's signature trait.

Is It Just Information?

If the model only needs to read something, a file, record, or setting, reach for a resource. No side effects, just context.

Is It a Saved Way to Ask?

If you want a one click, repeatable way to start a task, that is a prompt. The user triggers it and fills in a few inputs.

Weather: Tool or Resource?

Fetching live weather usually fits a tool, since the model decides when it needs fresh data and passes a city argument.

A README: Resource

Your project's README is static context the AI should see. That is a textbook resource, attached by the app, not run by the model.

Summarize This: Prompt

A reusable summarize this command the user picks from a menu is a prompt. It templates the instruction so every summary starts the same way.

They Work Together

Real servers combine all three: a resource feeds context, a prompt frames the request, and a tool carries out the resulting action.

When in Doubt

Unsure between tool and resource? Ask whether it changes anything. If yes, it is a tool; if it only informs, it is a resource.

Map Features to Primitives

Before coding, list each feature and tag it tool, resource, or prompt. That quick mapping keeps your server clean and predictable.

Quick Check

Pick the right primitive for this case.

Recap: Choosing Wisely

Well done! Ask who controls it and whether it acts: tool for actions, resource for read-only data, prompt for saved requests. ✅

よくある質問

「適切なプリミティブを選ぶ」レッスンは無料ですか?

はい。「適切なプリミティブを選ぶ」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、MCP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 MCP Academyコースには全4レッスンが含まれています。

「適切なプリミティブを選ぶ」で何を学びますか?

機能にツール、リソース、プロンプトのどれを使うか判断します。 ブラウザで直接実行するハンズオンコードでMCP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

MCP Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのMCP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「適切なプリミティブを選ぶ」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このMCP Academyレッスンでコードを書いて実行できますか?

はい。すべてのMCP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. ツール:モデルが実行するアクション
  2. リソース:モデルが読み取るデータ
  3. プロンプト:再利用可能な指示
  4. 適切なプリミティブを選ぶ
← MCP Academyに戻る