check method
Reads every property this type defines and returns what could not be read (missing required properties, wrong types), nested types included. Empty = the JSON matches the schema's shape for this type.
Implementation
@override
List<String> check() => [
...McpObject.$check(() => meta),
...McpObject.$check(() => includeContext),
...McpObject.$check(() => maxTokens),
...McpObject.$check(() => messages),
...McpObject.$check(() => metadata),
...McpObject.$check(() => modelPreferences),
...McpObject.$check(() => stopSequences),
...McpObject.$check(() => systemPrompt),
...McpObject.$check(() => task),
...McpObject.$check(() => temperature),
...McpObject.$check(() => toolChoice),
...McpObject.$check(() => tools),
];