summaryrefslogtreecommitdiff
path: root/packages/cli/src/tools/tools.ts
diff options
context:
space:
mode:
authorJaana Dogan <[email protected]>2025-04-18 11:06:30 -0700
committerGitHub <[email protected]>2025-04-18 11:06:30 -0700
commite1fac4025606246e284b3e370d22100e8a25d652 (patch)
tree549c3edd9a844756f97c219f5e8b52c2b171fd19 /packages/cli/src/tools/tools.ts
parent7cd3b95317c4d9263e514f33589cb359766d463b (diff)
Rename invalidParams to validateToolParams (#12)
Methods should be verbs. Fixes #4.
Diffstat (limited to 'packages/cli/src/tools/tools.ts')
-rw-r--r--packages/cli/src/tools/tools.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/tools/tools.ts b/packages/cli/src/tools/tools.ts
index 9df90261..dcbd71ac 100644
--- a/packages/cli/src/tools/tools.ts
+++ b/packages/cli/src/tools/tools.ts
@@ -33,7 +33,7 @@ export interface Tool<
* @param params Parameters to validate
* @returns An error message string if invalid, null otherwise
*/
- invalidParams(params: TParams): string | null;
+ validateToolParams(params: TParams): string | null;
/**
* Gets a pre-execution description of the tool operation
@@ -99,7 +99,7 @@ export abstract class BaseTool<
* @param params Parameters to validate
* @returns An error message string if invalid, null otherwise
*/
- invalidParams(params: TParams): string | null {
+ validateToolParams(params: TParams): string | null {
// Implementation would typically use a JSON Schema validator
// This is a placeholder that should be implemented by derived classes
return null;