Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Dec 28, 2025

Motivation and Context

Follow-up to #199 (comment)

Tool names are now validated to comply with the specification. https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names

Since the tool name is optional, nil value is treated as "not specified" and is ignored without validation.

How Has This Been Tested?

This introduces stricter naming validation that complies with the specification.

Breaking Changes

This makes the tool naming checks stricter.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Follow-up to modelcontextprotocol#199 (comment)

Tool names are now validated to comply with the specification.
https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names

Since the tool name is optional, `nil` value is treated as "not specified" and is ignored without validation.
@koic koic force-pushed the make_tool_names_stricter branch from 2df02dd to 84ff1fc Compare December 28, 2025 16:19
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.

1 participant