get_contam_program_help
Retrieve command-line usage text for CONTAM executables to determine appropriate tools and arguments for airflow and contaminant transport modeling.
Instructions
Use this when you want the built-in command-line usage text for a CONTAM executable before deciding which tool or arguments to use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes |
Implementation Reference
- contam-mcp/src/server.js:2100-2121 (handler)Handler for the "get_contam_program_help" MCP tool. It resolves the executable path for the requested CONTAM program and runs it with help arguments (if defined) to retrieve help text.
server.tool( "get_contam_program_help", "Use this when you want the built-in command-line usage text for a CONTAM executable before deciding which tool or arguments to use.", { program: z.enum(["contamx", "prjup", "simread", "simcomp"]) }, async ({ program }) => { const definition = programDefinitions[program]; const executablePath = await resolveExecutable(program); const helpResult = await runProcess(executablePath, definition.helpArgs, { cwd: path.dirname(executablePath), timeoutSeconds: 15 }); return toolResponse(`Fetched help text for ${program}.`, { program, executablePath, helpText: helpResult.stdout || helpResult.stderr, exitCode: helpResult.exitCode }); } );