MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / normalize_tool_name

Function normalize_tool_name

src/analytics.rs:72–79  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

70}
71
72pub fn normalize_tool_name(raw: &str) -> String {
73 let trimmed = raw.trim();
74 let without_mcp = trimmed
75 .strip_prefix("mcp__tracedecay__")
76 .or_else(|| trimmed.strip_prefix("mcp_tracedecay_"))
77 .unwrap_or(trimmed);
78 without_mcp.to_ascii_lowercase().replace('-', "_")
79}
80
81pub fn is_skill_view_tool(raw: &str) -> bool {
82 matches!(

Callers 3

insert_tool_eventFunction · 0.85
record_tool_familyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected