Skip to content

Codify MCP tool name requirements and add title#152

Merged
domfarolino merged 9 commits intowebmachinelearning:mainfrom
DavidMulder0:name-and-title
Apr 9, 2026
Merged

Codify MCP tool name requirements and add title#152
domfarolino merged 9 commits intowebmachinelearning:mainfrom
DavidMulder0:name-and-title

Conversation

@DavidMulder0
Copy link
Copy Markdown
Contributor

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 and others added 2 commits March 23, 2026 15:02
Co-authored-by: Dominic Farolino <domfarolino@gmail.com>
@DavidMulder0
Copy link
Copy Markdown
Contributor 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
Contributor Author

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

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.

Thanks a lot! I've prepared https://crrev.com/c/7744064 and https://crrev.com/c/7742044 to implement these changes in Chromium, and provide web platform tests for them.

@domfarolino domfarolino merged commit 1380910 into webmachinelearning:main Apr 9, 2026
2 checks passed
github-actions bot added a commit that referenced this pull request Apr 9, 2026
SHA: 1380910
Reason: push, by domfarolino

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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