MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / isMutatingTool

Function isMutatingTool

server/src/training-agent/idempotency.ts:79–81  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

77]);
78
79export function isMutatingTool(name: string): boolean {
80 return MUTATING_TOOLS.has(name);
81}
82
83export function validateKeyFormat(key: unknown): key is string {
84 return typeof key === 'string' && IDEMPOTENCY_KEY_PATTERN.test(key);

Callers 2

dispatchCallToolFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected