MCPcopy Index your code
hub / github.com/simstudioai/sim / cappedToolName

Function cappedToolName

apps/sim/lib/copilot/request/metrics.ts:67–69  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

65// catalog tool keeps its name, everything else (user MCP/custom/unknown)
66// collapses to "other" so series count stays finite.
67function cappedToolName(name: string): string {
68 return TOOL_CATALOG[name] ? name : 'other'
69}
70
71// recordSimToolMetric emits copilot.tool.calls (+1) and copilot.tool.duration
72// for one server-side Sim tool dispatch (executor=sim). outcome is the bounded

Callers 1

recordSimToolMetricFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected