Skip to content

Commit 498871c

Browse files
committed
fix: resolve descriptions
1 parent 2905692 commit 498871c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mcp/protocol.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,8 @@ type ElicitParams struct {
916916
Meta `json:"_meta,omitempty"`
917917
// A human-readable message describing what information is being requested.
918918
Message string `json:"message"`
919-
// A JSON Schema object defining the structure of the requested data.
919+
// A restricted subset of JSON Schema.
920+
// Only top-level properties are allowed, without nesting.
920921
RequestedSchema *jsonschema.Schema `json:"requestedSchema"`
921922
}
922923

@@ -930,8 +931,8 @@ type ElicitResult struct {
930931
Meta `json:"_meta,omitempty"`
931932
// The action taken by the user: "accept", "decline", or "cancel".
932933
Action string `json:"action"`
933-
// The data provided by the user if action is "accept". This should conform
934-
// to the requested schema.
934+
// The submitted form data, only present when action is "accept".
935+
// Contains values matching the requested schema.
935936
Content map[string]any `json:"content,omitempty"`
936937
}
937938

0 commit comments

Comments
 (0)