diff --git a/schema/schema.json b/schema/schema.json index 4cbcc6cdb..771f4c4a3 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -78,12 +78,12 @@ "type": "array" }, "isError": { + "description": "Whether the tool call ended in an error.\n\nIf not set, this is assumed to be false (the call was successful).", "type": "boolean" } }, "required": [ - "content", - "isError" + "content" ], "type": "object" }, diff --git a/schema/schema.ts b/schema/schema.ts index 0db275659..4c67b956b 100644 --- a/schema/schema.ts +++ b/schema/schema.ts @@ -612,7 +612,13 @@ export interface ListToolsResult extends PaginatedResult { */ export interface CallToolResult extends Result { content: (TextContent | ImageContent | EmbeddedResource)[]; - isError: boolean; + + /** + * Whether the tool call ended in an error. + * + * If not set, this is assumed to be false (the call was successful). + */ + isError?: boolean; } /**