docs: cover the remaining Tier 1 audit items (#3325)
This commit is contained in:
parent
2a1cc94493
commit
9057285683
1 changed files with 247 additions and 1 deletions
|
|
@ -34,6 +34,8 @@ From those type hints the SDK generates a JSON Schema and sends it to the client
|
|||
|
||||
Both arguments are in `required` because neither has a default. You'll fix that in a moment. (The `title` keys are Pydantic artifacts; the properties, their types, and `required` are the contract.)
|
||||
|
||||
There is no `$schema` key either: MCP treats a schema without one as **JSON Schema 2020-12**, which is what Pydantic generates, so there is nothing to choose until you write schemas by hand on the **[low-level Server](../advanced/low-level-server.md#the-dialect-is-json-schema-2020-12)**.
|
||||
|
||||
!!! tip
|
||||
Type hints aren't documentation here. They are **the contract**. If a client sends `"limit": "ten"`,
|
||||
the SDK rejects it before your function ever runs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue