optimize_parameters
Generate AI-optimized tool configurations for security testing based on target domain, IP, or URL to enhance bug bounty hunting effectiveness.
Instructions
Optimize tool parameters using AI based on target profile.
Args: target: Target domain, IP, or URL tool: Tool name to optimize parameters for context: Additional context or constraints
Returns: Optimized parameters and configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ||
| target | Yes | ||
| tool | Yes |
Implementation Reference
- src/mcp_server/app.py:1538-1561 (handler)MCP tool handler for 'optimize_parameters'. This function registers the tool using @mcp.tool() decorator and implements the logic by proxying the request to the REST API endpoint '/api/intelligence/optimize-parameters' via the BugBountyAPIClient. The function signature defines the input schema: target (str), tool (str), context (str optional).def optimize_parameters( target: str, tool: str, context: str = "" ) -> dict[str, Any]: """Optimize tool parameters using AI based on target profile. Args: target: Target domain, IP, or URL tool: Tool name to optimize parameters for context: Additional context or constraints Returns: Optimized parameters and configuration """ data = {"target": target, "tool": tool, "context": context} logger.info(f"⚡ Optimizing {tool} parameters for {target}") result = api_client.safe_post("api/intelligence/optimize-parameters", data) if result.get("success"): logger.info(f"✅ Parameter optimization completed for {tool}") else: logger.error(f"❌ Parameter optimization failed for {tool}") return result