MCP: refactor tool names to verb_resource templates and {docs} placeholders#2814
Open
MCP: refactor tool names to verb_resource templates and {docs} placeholders#2814
Conversation
…aceholders
- Add McpToolNameAttribute for explicit tool name templates (e.g. search_{resource})
- Replace ToolNamePrefix with ResourceNoun in profiles (docs, internal_docs)
- Replace {docs} in tool descriptions with profile DocsDescription
- Update tool guidance to use {tool:name_{resource}} placeholders
Made-with: Cursor
…_url, analyze_document_structure) Made-with: Cursor
…nal_document_by_url) Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
[McpToolName]instead of prefix-based naming{docs}in tool descriptions with the profile's DocsDescription at registration timeScopePrefix("" for public, "internal_" for internal) andResourceNoun("docs", "internal_docs") for flexible tool name compositionWhy
search_docsandget_document_by_urlare more readable thanpublic_docs_semantic_searchandpublic_docs_get_document_by_urlTool name and description migration (public profile)
Internal profile (Search + Documents only):
search_internal_docsfind_related_internal_docsget_internal_document_by_urlanalyze_internal_document_structureNotes
{resource}for the resource noun (e.g.search_{resource}→search_docs) and{scope}for the scope prefix (e.g.get_{scope}document_by_url→get_internal_document_by_url)