Skip to content

Conversation

@cristiand391
Copy link
Member

What does this PR do?

Adds a default value for isError in when capturing the TOOL_CALLED telemetry event.

mcp spec:

If not set, this is assumed to be false (the call was successful).

https://modelcontextprotocol.io/specification/2025-06-18/schema#calltoolresult

The WI mentions changing the CallToolResult type to mark isError required but since we only want this for telemetry it's easier to handle it here (also avoid overriding a type from the SDK and tools can still omit it for successful scenarios)

What issues does this PR fix or reference?

@W-19760313@

@iowillhoit iowillhoit merged commit a7f9568 into main Oct 23, 2025
16 checks passed
@cristiand391 cristiand391 deleted the cd/enforce-is-err-boolean-telemetry branch October 27, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants