AIML-238: Define MCP tool naming standards and conventions #34
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.
Why
The MCP tool consolidation project (AIML-239) requires consistent naming standards before implementation begins. Without standardized naming conventions, consolidating 20 tools down to 12 would result in inconsistent patterns across the codebase and poor developer experience.
This establishes the foundation that all subsequent consolidation work will follow, ensuring consistency across 7 domains (Applications, Vulnerabilities, Attacks, Libraries, Route Coverage, SAST, and Prompts).
What
Created MCP_STANDARDS.md defining comprehensive naming conventions for all MCP tools in the mcp-contrast server.
Standards established:
action_entitysnake_case format for all tool namessearch_*(flexible filtering) >list_*(scoped) >get_*(single item)*Id,*Name)Updated CLAUDE.md with MCP Tool Standards section requiring all tool development to follow MCP_STANDARDS.md.
How
Approach:
Key design decisions:
search_*for multi-filter queries,list_*for scoped queries,get_*for single-item retrievalappId,vulnId,sessionMetadataName/Valueused throughoutseverities), singular for single values (appId)Step-by-Step Walkthrough
1. MCP_STANDARDS.md (103 lines)
The complete standards document with sections:
Core Convention (lines 9-27):
action_entitysnake_case formatVerb Hierarchy (lines 30-56):
search_*- For flexible filtering with multiple optional parameterssearch_vulnerabilities(severities, statuses, appId, ...)list_*- For scoped lists requiring an identifierlist_application_libraries(appId)get_*- For single item retrieval by IDget_vulnerability(vulnId, appId)Parameters (lines 59-89):
*Idfor UUIDs,*Namefor strings)Checklist (lines 93-103):
2. CLAUDE.md (12 lines added)
Added MCP Tool Standards section (after Architecture):
This ensures all AI agents and developers see the standards requirement prominently in project instructions.
Testing
Type: Documentation-only change
Validation approach:
Future validation:
Expected outcomes:
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com