Skip to content

Codify MCP tool name requirements into the spec #145

@domfarolino

Description

@domfarolino

MCP has official constraints on what a tool name can and cannot contain: https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names. These are SHOULDs, not MUSTs, but I think we should carry over these the best practices into the platform, since it increases developer feedback and predictability, and decreases subtle errors.

One of the motivations for this was trying to write a WebMCP tool in Chrome whose name contained a space, and scratching my head when built-in Gemini failed to call it, with no good feedback. As a developer, I would've appreciated the platform catching this and giving some feedback on my tool definition, instead of implicitly loading it into the model when it violates something so simple.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions