Skip to content

Codify MCP tool name requirements and add title#152

Open
DavidMulder0 wants to merge 9 commits intowebmachinelearning:mainfrom
DavidMulder0:name-and-title
Open

Codify MCP tool name requirements and add title#152
DavidMulder0 wants to merge 9 commits intowebmachinelearning:mainfrom
DavidMulder0:name-and-title

Conversation

@DavidMulder0
Copy link
Copy Markdown

Addressing #145 and #133 .

(Related topic: some guidance regarding localization would be great. name does not have to be localized presumably (it won't be shown to the user presumably). title may be localized. Will description be shown to the end user? From personal experience I am treating that as a solid 'no' (all MCP descriptions I have written so far were 'prompt engineered'). Lastly I have seen the tool arguments get presented to the user relatively often, so should there be a way to localize the display of those?)

@DavidMulder0
Copy link
Copy Markdown
Author

DavidMulder0 commented Mar 23, 2026

First of all: Apologies for wasting your time and thank you for being kind about it. Sincerely hope I did better this time 😅.

Anyway, I included the checks in the registerTool. I referred to ASCII alphanumeric from Infra, but for the other characters from the MCP spec I just gave their plain code points, hope that's the correct way of going about it.

Copy link
Copy Markdown
Collaborator

@domfarolino domfarolino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't sweat it, specs are hard! Thanks for the contribution.

@domfarolino
Copy link
Copy Markdown
Collaborator

I've pushed a couple small changes to make this more spec idiomatic. Can you take a look @DavidMulder0?

@DavidMulder0
Copy link
Copy Markdown
Author

Thank you! Just fixed a typo and a missing verb.

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