mold_call_debug
Debug MOLD API calls by executing arbitrary commands with parameters to test and troubleshoot cloud infrastructure interactions.
Instructions
임의의 MOLD API 명령을 호출합니다. (command + params)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| params | No |
Implementation Reference
- src/app/tools.js:37-41 (handler)The handler function for the 'mold_call_debug' tool. It flattens the input parameters using flattenParamsForMold and calls the generic callApi function with the command and flattened params, then returns the JSON stringified response.async ({ command, params }) => { const flat = flattenParamsForMold(params ?? {}); const data = await callApi(command, flat); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; }
- src/app/tools.js:14-35 (schema)The Zod input schema for the 'mold_call_debug' tool, defining 'command' as string and optional 'params' as a record of string keys to union of primitives or nested records.inputSchema: { command: z.string(), params: z .record( z.string(), z.union([ z.string(), z.number(), z.boolean(), z.record( z.string(), z.union([ z.string(), z.number(), z.boolean(), z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])), ]) ), ]) ) .optional(), },
- src/app/tools.js:9-42 (registration)The registration of the 'mold_call_debug' tool using server.registerTool, including title, description, inputSchema, and the handler function.server.registerTool( "mold_call_debug", { title: "MOLD API 호출(범용)", description: "임의의 MOLD API 명령을 호출합니다. (command + params)", inputSchema: { command: z.string(), params: z .record( z.string(), z.union([ z.string(), z.number(), z.boolean(), z.record( z.string(), z.union([ z.string(), z.number(), z.boolean(), z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])), ]) ), ]) ) .optional(), }, }, async ({ command, params }) => { const flat = flattenParamsForMold(params ?? {}); const data = await callApi(command, flat); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );