forked from modelcontextprotocol/modelcontextprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
4055 lines (4054 loc) · 170 KB
/
schema.json
File metadata and controls
4055 lines (4054 loc) · 170 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"Annotations": {
"description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",
"properties": {
"audience": {
"description": "Describes who the intended audience of this object or data is.\n\nIt can include multiple entries to indicate content useful for multiple audiences (e.g., `[\"user\", \"assistant\"]`).",
"items": {
"$ref": "#/$defs/Role"
},
"type": "array"
},
"lastModified": {
"description": "The moment the resource was last modified, as an ISO 8601 formatted string.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").\n\nExamples: last activity timestamp in an open file, timestamp when the resource\nwas attached, etc.",
"type": "string"
},
"priority": {
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"AudioContent": {
"description": "Audio provided to or from an LLM.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"annotations": {
"$ref": "#/$defs/Annotations",
"description": "Optional annotations for the client."
},
"data": {
"description": "The base64-encoded audio data.",
"format": "byte",
"type": "string"
},
"mimeType": {
"description": "The MIME type of the audio. Different providers may support different audio types.",
"type": "string"
},
"type": {
"const": "audio",
"type": "string"
}
},
"required": [
"data",
"mimeType",
"type"
],
"type": "object"
},
"BaseMetadata": {
"description": "Base interface for metadata with name (identifier) and title (display name) properties.",
"properties": {
"name": {
"description": "Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).",
"type": "string"
},
"title": {
"description": "Intended for UI and end-user contexts — optimized to be human-readable and easily understood,\neven by those unfamiliar with domain-specific terminology.\n\nIf not provided, the name should be used for display (except for Tool,\nwhere `annotations.title` should be given precedence over using `name`,\nif present).",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"BlobResourceContents": {
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"blob": {
"description": "A base64-encoded string representing the binary data of the item.",
"format": "byte",
"type": "string"
},
"mimeType": {
"description": "The MIME type of this resource, if known.",
"type": "string"
},
"uri": {
"description": "The URI of this resource.",
"format": "uri",
"type": "string"
}
},
"required": [
"blob",
"uri"
],
"type": "object"
},
"BooleanSchema": {
"properties": {
"default": {
"type": "boolean"
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"type": {
"const": "boolean",
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"CallToolRequest": {
"description": "Used by the client to invoke a tool provided by the server.",
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"const": "2.0",
"type": "string"
},
"method": {
"const": "tools/call",
"type": "string"
},
"params": {
"$ref": "#/$defs/CallToolRequestParams"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
],
"type": "object"
},
"CallToolRequestParams": {
"description": "Parameters for a `tools/call` request.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"properties": {
"progressToken": {
"$ref": "#/$defs/ProgressToken",
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications."
}
},
"type": "object"
},
"arguments": {
"additionalProperties": {},
"description": "Arguments to use for the tool call.",
"type": "object"
},
"name": {
"description": "The name of the tool.",
"type": "string"
},
"task": {
"$ref": "#/$defs/TaskMetadata",
"description": "If specified, the caller is requesting task-augmented execution for this request.\nThe request will return a CreateTaskResult immediately, and the actual result can be\nretrieved later via tasks/result.\n\nTask augmentation is subject to capability negotiation - receivers MUST declare support\nfor task augmentation of specific request types in their capabilities."
}
},
"required": [
"name"
],
"type": "object"
},
"CallToolResult": {
"description": "The server's response to a tool call.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"content": {
"description": "A list of content objects that represent the unstructured result of the tool call.",
"items": {
"$ref": "#/$defs/ContentBlock"
},
"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).\n\nAny errors that originate from the tool SHOULD be reported inside the result\nobject, with `isError` set to true, _not_ as an MCP protocol-level error\nresponse. Otherwise, the LLM would not be able to see that an error occurred\nand self-correct.\n\nHowever, any errors in _finding_ the tool, an error indicating that the\nserver does not support tool calls, or any other exceptional conditions,\nshould be reported as an MCP error response.",
"type": "boolean"
},
"structuredContent": {
"additionalProperties": {},
"description": "An optional JSON object that represents the structured result of the tool call.",
"type": "object"
}
},
"required": [
"content"
],
"type": "object"
},
"CancelTaskRequest": {
"description": "A request to cancel a task.",
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"const": "2.0",
"type": "string"
},
"method": {
"const": "tasks/cancel",
"type": "string"
},
"params": {
"properties": {
"taskId": {
"description": "The task identifier to cancel.",
"type": "string"
}
},
"required": [
"taskId"
],
"type": "object"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
],
"type": "object"
},
"CancelTaskResult": {
"allOf": [
{
"$ref": "#/$defs/Result"
},
{
"$ref": "#/$defs/Task"
}
],
"description": "The response to a tasks/cancel request."
},
"CancelledNotification": {
"description": "This notification can be sent by either side to indicate that it is cancelling a previously-issued request.\n\nThe request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.\n\nThis notification indicates that the result will be unused, so any associated processing SHOULD cease.\n\nA client MUST NOT attempt to cancel its `initialize` request.\n\nFor task cancellation, use the `tasks/cancel` request instead of this notification.",
"properties": {
"jsonrpc": {
"const": "2.0",
"type": "string"
},
"method": {
"const": "notifications/cancelled",
"type": "string"
},
"params": {
"$ref": "#/$defs/CancelledNotificationParams"
}
},
"required": [
"jsonrpc",
"method",
"params"
],
"type": "object"
},
"CancelledNotificationParams": {
"description": "Parameters for a `notifications/cancelled` notification.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"reason": {
"description": "An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.",
"type": "string"
},
"requestId": {
"$ref": "#/$defs/RequestId",
"description": "The ID of the request to cancel.\n\nThis MUST correspond to the ID of a request previously issued in the same direction.\nThis MUST be provided for cancelling non-task requests.\nThis MUST NOT be used for cancelling tasks (use the `tasks/cancel` request instead)."
}
},
"type": "object"
},
"ClientCapabilities": {
"description": "Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.",
"properties": {
"elicitation": {
"description": "Present if the client supports elicitation from the server.",
"properties": {
"form": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"url": {
"additionalProperties": true,
"properties": {},
"type": "object"
}
},
"type": "object"
},
"experimental": {
"additionalProperties": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"description": "Experimental, non-standard capabilities that the client supports.",
"type": "object"
},
"roots": {
"description": "Present if the client supports listing roots.",
"properties": {
"listChanged": {
"description": "Whether the client supports notifications for changes to the roots list.",
"type": "boolean"
}
},
"type": "object"
},
"sampling": {
"description": "Present if the client supports sampling from an LLM.",
"properties": {
"context": {
"additionalProperties": true,
"description": "Whether the client supports context inclusion via includeContext parameter.\nIf not declared, servers SHOULD only use `includeContext: \"none\"` (or omit it).",
"properties": {},
"type": "object"
},
"tools": {
"additionalProperties": true,
"description": "Whether the client supports tool use via tools and toolChoice parameters.",
"properties": {},
"type": "object"
}
},
"type": "object"
},
"tasks": {
"description": "Present if the client supports task-augmented requests.",
"properties": {
"cancel": {
"additionalProperties": true,
"description": "Whether this client supports tasks/cancel.",
"properties": {},
"type": "object"
},
"list": {
"additionalProperties": true,
"description": "Whether this client supports tasks/list.",
"properties": {},
"type": "object"
},
"requests": {
"description": "Specifies which request types can be augmented with tasks.",
"properties": {
"elicitation": {
"description": "Task support for elicitation-related requests.",
"properties": {
"create": {
"additionalProperties": true,
"description": "Whether the client supports task-augmented elicitation/create requests.",
"properties": {},
"type": "object"
}
},
"type": "object"
},
"sampling": {
"description": "Task support for sampling-related requests.",
"properties": {
"createMessage": {
"additionalProperties": true,
"description": "Whether the client supports task-augmented sampling/createMessage requests.",
"properties": {},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"ClientNotification": {
"anyOf": [
{
"$ref": "#/$defs/CancelledNotification"
},
{
"$ref": "#/$defs/InitializedNotification"
},
{
"$ref": "#/$defs/ProgressNotification"
},
{
"$ref": "#/$defs/TaskStatusNotification"
},
{
"$ref": "#/$defs/RootsListChangedNotification"
}
]
},
"ClientRequest": {
"anyOf": [
{
"$ref": "#/$defs/InitializeRequest"
},
{
"$ref": "#/$defs/PingRequest"
},
{
"$ref": "#/$defs/ListResourcesRequest"
},
{
"$ref": "#/$defs/ListResourceTemplatesRequest"
},
{
"$ref": "#/$defs/ReadResourceRequest"
},
{
"$ref": "#/$defs/SubscribeRequest"
},
{
"$ref": "#/$defs/UnsubscribeRequest"
},
{
"$ref": "#/$defs/ListPromptsRequest"
},
{
"$ref": "#/$defs/GetPromptRequest"
},
{
"$ref": "#/$defs/ListToolsRequest"
},
{
"$ref": "#/$defs/CallToolRequest"
},
{
"$ref": "#/$defs/GetTaskRequest"
},
{
"$ref": "#/$defs/GetTaskPayloadRequest"
},
{
"$ref": "#/$defs/CancelTaskRequest"
},
{
"$ref": "#/$defs/ListTasksRequest"
},
{
"$ref": "#/$defs/SetLevelRequest"
},
{
"$ref": "#/$defs/CompleteRequest"
}
]
},
"ClientResult": {
"anyOf": [
{
"$ref": "#/$defs/Result"
},
{
"$ref": "#/$defs/GetTaskResult",
"description": "The response to a tasks/get request."
},
{
"$ref": "#/$defs/GetTaskPayloadResult"
},
{
"$ref": "#/$defs/CancelTaskResult",
"description": "The response to a tasks/cancel request."
},
{
"$ref": "#/$defs/ListTasksResult"
},
{
"$ref": "#/$defs/CreateMessageResult"
},
{
"$ref": "#/$defs/ListRootsResult"
},
{
"$ref": "#/$defs/ElicitResult"
}
]
},
"CompleteRequest": {
"description": "A request from the client to the server, to ask for completion options.",
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"const": "2.0",
"type": "string"
},
"method": {
"const": "completion/complete",
"type": "string"
},
"params": {
"$ref": "#/$defs/CompleteRequestParams"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
],
"type": "object"
},
"CompleteRequestParams": {
"description": "Parameters for a `completion/complete` request.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"properties": {
"progressToken": {
"$ref": "#/$defs/ProgressToken",
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications."
}
},
"type": "object"
},
"argument": {
"description": "The argument's information",
"properties": {
"name": {
"description": "The name of the argument",
"type": "string"
},
"value": {
"description": "The value of the argument to use for completion matching.",
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"context": {
"description": "Additional, optional context for completions",
"properties": {
"arguments": {
"additionalProperties": {
"type": "string"
},
"description": "Previously-resolved variables in a URI template or prompt.",
"type": "object"
}
},
"type": "object"
},
"ref": {
"anyOf": [
{
"$ref": "#/$defs/PromptReference"
},
{
"$ref": "#/$defs/ResourceTemplateReference"
}
]
}
},
"required": [
"argument",
"ref"
],
"type": "object"
},
"CompleteResult": {
"description": "The server's response to a completion/complete request",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"completion": {
"properties": {
"hasMore": {
"description": "Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.",
"type": "boolean"
},
"total": {
"description": "The total number of completion options available. This can exceed the number of values actually sent in the response.",
"type": "integer"
},
"values": {
"description": "An array of completion values. Must not exceed 100 items.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"values"
],
"type": "object"
}
},
"required": [
"completion"
],
"type": "object"
},
"ContentBlock": {
"anyOf": [
{
"$ref": "#/$defs/TextContent"
},
{
"$ref": "#/$defs/ImageContent"
},
{
"$ref": "#/$defs/AudioContent"
},
{
"$ref": "#/$defs/ResourceLink"
},
{
"$ref": "#/$defs/EmbeddedResource"
}
]
},
"CreateMessageRequest": {
"description": "A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.",
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"const": "2.0",
"type": "string"
},
"method": {
"const": "sampling/createMessage",
"type": "string"
},
"params": {
"$ref": "#/$defs/CreateMessageRequestParams"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
],
"type": "object"
},
"CreateMessageRequestParams": {
"description": "Parameters for a `sampling/createMessage` request.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"properties": {
"progressToken": {
"$ref": "#/$defs/ProgressToken",
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications."
}
},
"type": "object"
},
"includeContext": {
"description": "A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.\nThe client MAY ignore this request.\n\nDefault is \"none\". Values \"thisServer\" and \"allServers\" are soft-deprecated. Servers SHOULD only use these values if the client\ndeclares ClientCapabilities.sampling.context. These values may be removed in future spec releases.",
"enum": [
"allServers",
"none",
"thisServer"
],
"type": "string"
},
"maxTokens": {
"description": "The requested maximum number of tokens to sample (to prevent runaway completions).\n\nThe client MAY choose to sample fewer tokens than the requested maximum.",
"type": "integer"
},
"messages": {
"items": {
"$ref": "#/$defs/SamplingMessage"
},
"type": "array"
},
"metadata": {
"additionalProperties": true,
"description": "Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.",
"properties": {},
"type": "object"
},
"modelPreferences": {
"$ref": "#/$defs/ModelPreferences",
"description": "The server's preferences for which model to select. The client MAY ignore these preferences."
},
"stopSequences": {
"items": {
"type": "string"
},
"type": "array"
},
"systemPrompt": {
"description": "An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.",
"type": "string"
},
"task": {
"$ref": "#/$defs/TaskMetadata",
"description": "If specified, the caller is requesting task-augmented execution for this request.\nThe request will return a CreateTaskResult immediately, and the actual result can be\nretrieved later via tasks/result.\n\nTask augmentation is subject to capability negotiation - receivers MUST declare support\nfor task augmentation of specific request types in their capabilities."
},
"temperature": {
"type": "number"
},
"toolChoice": {
"$ref": "#/$defs/ToolChoice",
"description": "Controls how the model uses tools.\nThe client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.\nDefault is `{ mode: \"auto\" }`."
},
"tools": {
"description": "Tools that the model may use during generation.\nThe client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.",
"items": {
"$ref": "#/$defs/Tool"
},
"type": "array"
}
},
"required": [
"maxTokens",
"messages"
],
"type": "object"
},
"CreateMessageResult": {
"description": "The client's response to a sampling/createMessage request from the server.\nThe client should inform the user before returning the sampled message, to allow them\nto inspect the response (human in the loop) and decide whether to allow the server to see it.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"content": {
"anyOf": [
{
"$ref": "#/$defs/TextContent"
},
{
"$ref": "#/$defs/ImageContent"
},
{
"$ref": "#/$defs/AudioContent"
},
{
"$ref": "#/$defs/ToolUseContent"
},
{
"$ref": "#/$defs/ToolResultContent"
},
{
"items": {
"$ref": "#/$defs/SamplingMessageContentBlock"
},
"type": "array"
}
]
},
"model": {
"description": "The name of the model that generated the message.",
"type": "string"
},
"role": {
"$ref": "#/$defs/Role"
},
"stopReason": {
"description": "The reason why sampling stopped, if known.\n\nStandard values:\n- \"endTurn\": Natural end of the assistant's turn\n- \"stopSequence\": A stop sequence was encountered\n- \"maxTokens\": Maximum token limit was reached\n- \"toolUse\": The model wants to use one or more tools\n\nThis field is an open string to allow for provider-specific stop reasons.",
"type": "string"
}
},
"required": [
"content",
"model",
"role"
],
"type": "object"
},
"CreateTaskResult": {
"description": "A response to a task-augmented request.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"task": {
"$ref": "#/$defs/Task"
}
},
"required": [
"task"
],
"type": "object"
},
"Cursor": {
"description": "An opaque token used to represent a cursor for pagination.",
"type": "string"
},
"ElicitRequest": {
"description": "A request from the server to elicit additional information from the user via the client.",
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"const": "2.0",
"type": "string"
},
"method": {
"const": "elicitation/create",
"type": "string"
},
"params": {
"$ref": "#/$defs/ElicitRequestParams"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
],
"type": "object"
},
"ElicitRequestFormParams": {
"description": "The parameters for a request to elicit non-sensitive information from the user via a form in the client.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"properties": {
"progressToken": {
"$ref": "#/$defs/ProgressToken",
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications."
}
},
"type": "object"
},
"message": {
"description": "The message to present to the user describing what information is being requested.",
"type": "string"
},
"mode": {
"const": "form",
"description": "The elicitation mode.",
"type": "string"
},
"requestedSchema": {
"description": "A restricted subset of JSON Schema.\nOnly top-level properties are allowed, without nesting.",
"properties": {
"$schema": {
"type": "string"
},
"properties": {
"additionalProperties": {
"$ref": "#/$defs/PrimitiveSchemaDefinition"
},
"type": "object"
},
"required": {
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"const": "object",
"type": "string"
}
},
"required": [
"properties",
"type"
],
"type": "object"
},
"task": {
"$ref": "#/$defs/TaskMetadata",
"description": "If specified, the caller is requesting task-augmented execution for this request.\nThe request will return a CreateTaskResult immediately, and the actual result can be\nretrieved later via tasks/result.\n\nTask augmentation is subject to capability negotiation - receivers MUST declare support\nfor task augmentation of specific request types in their capabilities."
}
},
"required": [
"message",
"requestedSchema"
],
"type": "object"
},
"ElicitRequestParams": {
"anyOf": [
{
"$ref": "#/$defs/ElicitRequestURLParams"
},
{
"$ref": "#/$defs/ElicitRequestFormParams"
}
],
"description": "The parameters for a request to elicit additional information from the user via the client."
},
"ElicitRequestURLParams": {
"description": "The parameters for a request to elicit information from the user via a URL in the client.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"properties": {
"progressToken": {
"$ref": "#/$defs/ProgressToken",
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications."
}
},
"type": "object"
},
"elicitationId": {
"description": "The ID of the elicitation, which must be unique within the context of the server.\nThe client MUST treat this ID as an opaque value.",
"type": "string"
},
"message": {
"description": "The message to present to the user explaining why the interaction is needed.",
"type": "string"
},
"mode": {
"const": "url",
"description": "The elicitation mode.",
"type": "string"
},
"task": {
"$ref": "#/$defs/TaskMetadata",
"description": "If specified, the caller is requesting task-augmented execution for this request.\nThe request will return a CreateTaskResult immediately, and the actual result can be\nretrieved later via tasks/result.\n\nTask augmentation is subject to capability negotiation - receivers MUST declare support\nfor task augmentation of specific request types in their capabilities."
},
"url": {
"description": "The URL that the user should navigate to.",
"format": "uri",
"type": "string"
}
},
"required": [
"elicitationId",
"message",
"mode",
"url"
],
"type": "object"
},
"ElicitResult": {
"description": "The client's response to an elicitation request.",
"properties": {
"_meta": {
"additionalProperties": {},
"description": "See [General fields: `_meta`](/specification/2025-11-25/basic/index#meta) for notes on `_meta` usage.",
"type": "object"
},
"action": {
"description": "The user action in response to the elicitation.\n- \"accept\": User submitted the form/confirmed the action\n- \"decline\": User explicitly decline the action\n- \"cancel\": User dismissed without making an explicit choice",
"enum": [
"accept",
"cancel",
"decline"
],
"type": "string"
},
"content": {
"additionalProperties": {
"anyOf": [
{
"items": {