File tree Expand file tree Collapse file tree
src/ModelContextProtocol.Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,19 +60,19 @@ public enum McpErrorCode
6060 /// </summary>
6161 /// <remarks>
6262 /// <para>
63- /// In MCP, this error is returned in various contexts when request parameters fail validation :
63+ /// In MCP, this error is returned for protocol-level parameter validation failures in various contexts :
6464 /// </para>
6565 /// <list type="bullet">
66- /// <item><description><b>Tools</b>: Unknown tool name or invalid tool arguments.</description></item>
67- /// <item><description><b>Prompts</b>: Unknown prompt name or missing required arguments.</description></item>
66+ /// <item><description><b>Tools</b>: Unknown tool name or invalid protocol-level tool arguments.</description></item>
67+ /// <item><description><b>Prompts</b>: Unknown prompt name or missing required protocol-level arguments.</description></item>
6868 /// <item><description><b>Pagination</b>: Invalid or expired cursor values.</description></item>
6969 /// <item><description><b>Logging</b>: Invalid log level.</description></item>
7070 /// <item><description><b>Tasks</b>: Invalid or nonexistent task ID or invalid cursor.</description></item>
7171 /// <item><description><b>Elicitation</b>: Server requests an elicitation mode not declared in client capabilities.</description></item>
7272 /// <item><description><b>Sampling</b>: Missing tool result or tool results mixed with other content.</description></item>
7373 /// </list>
7474 /// <para>
75- /// Note: Input validation errors within tool/prompt/resource arguments should be reported as execution errors
75+ /// Note: Application-layer validation errors within tool/prompt/resource arguments should be reported as execution errors
7676 /// (for example, via <see cref="Protocol.CallToolResult.IsError"/>) rather than as protocol errors, allowing language
7777 /// models to receive error feedback and self-correct.
7878 /// </para>
You can’t perform that action at this time.
0 commit comments