0Pricing
MCP Academy · 강의

클라이언트용 출력 스키마

사용자가 신뢰하고 활용할 수 있도록 출력 구조를 게시합니다.

클라이언트용 출력 스키마은(는) CoddyKit의 무료 MCP Academy 강의입니다. 이것은 4개 중 3번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 MCP Academy 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. MCP Academy 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Publish the Shape

A structured tool can also advertise an output schema: a JSON Schema that tells clients exactly what fields and types to expect.

What an Output Schema Is

It is a machine-readable description of your result, listing each field name and its type. Clients read it before ever calling the tool.

Generated From Your Model

When you return a Pydantic model, the SDK derives the output schema for you. Your type hints become the published contract automatically.

Where Clients See It

The schema rides along in the tool listing under outputSchema. A client inspecting tools learns the shape without trial and error.

{"type": "object", "properties": {"temp_c": {"type": "number"}}}

Why Clients Want It

With a known schema, a client can validate results and build UI ahead of time. There is no guessing about which fields will appear.

Types Carry Meaning

The schema marks temp_c as a number and condition as a string. Consumers trust these types instead of inferring them from one sample.

Required vs Optional

Fields with defaults become optional in the schema; others are required. Clients learn which keys are guaranteed to be present.

class Weather(BaseModel):
    temp_c: float
    note: str = ""

A Stable Contract

Treat the output schema like a promise. Once clients depend on it, changing field names or types can break them downstream.

Schemas Aid Validation

Strict clients validate every result against the schema and reject mismatches. This catches server bugs fast, right at the boundary.

Self-Documenting Tools

An output schema doubles as documentation. New developers read the schema to understand a tool without digging through your code.

Keep Schemas Honest

Make sure your tool always returns what the schema claims. A result that drifts from its schema erodes the trust clients place in it.

Quick Check

Where does a tool publish the shape of its result?

Recap: Output Schemas

You saw how a tool publishes an output schema from your model. It documents fields, enables validation, and forms a stable contract. ✅

자주 묻는 질문

“클라이언트용 출력 스키마” 강의는 무료인가요?

네 — “클라이언트용 출력 스키마” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 MCP Academy 강의 전체를 잠금 해제할 수 있습니다. MCP Academy 강의에는 총 4개의 강의가 포함되어 있습니다.

“클라이언트용 출력 스키마”에서 뭘 배우나요?

사용자가 신뢰하고 활용할 수 있도록 출력 구조를 게시합니다. 브라우저에서 직접 실행하는 실습 코드로 MCP Academy을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

MCP Academy을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 MCP Academy은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 3번째 강의입니다.

“클라이언트용 출력 스키마” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 MCP Academy 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 MCP Academy 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 텍스트와 구조화된 콘텐츠
  2. 형식이 지정된 결과 객체 반환하기
  3. 클라이언트용 출력 스키마
  4. 이미지와 바이너리 데이터 반환하기
← MCP Academy(으)로 돌아가기