MCPcopy Create free account
hub / github.com/freecodexyz/free-code / validateInput

Function validateInput

src/tools/TeamCreateTool/TeamCreateTool.ts:96–105  ·  view source on GitHub ↗
(input, _context)

Source from the content-addressed store, hash-verified

94 },
95
96 async validateInput(input, _context) {
97 if (!input.team_name || input.team_name.trim().length === 0) {
98 return {
99 result: false,
100 message: 'team_name is required for TeamCreate',
101 errorCode: 9,
102 }
103 }
104 return { result: true }
105 },
106
107 async description() {
108 return 'Create a new team for coordinating multiple agents'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected