get_batch_result
Retrieve the detailed results of a previous batch SQL injection scan by providing its batch ID.
Instructions
Retrieve a previous batch scan result by ID.
Args: batch_id: Batch ID from a previous batch scan
Returns: Batch scan result details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes |
Implementation Reference
- src/sqli_mcp/server.py:794-795 (registration)The @mcp.tool() decorator registers get_batch_result as an MCP tool.
@mcp.tool() def get_batch_result(batch_id: str) -> dict: - src/sqli_mcp/server.py:795-807 (handler)Handler function for get_batch_result tool - looks up a previous batch scan result by batch_id from the batch_results dictionary.
def get_batch_result(batch_id: str) -> dict: """ Retrieve a previous batch scan result by ID. Args: batch_id: Batch ID from a previous batch scan Returns: Batch scan result details """ if batch_id in batch_results: return batch_results[batch_id] return {"error": f"Batch ID {batch_id} not found"} - src/sqli_mcp/server.py:482-482 (helper)batch_results dictionary used by get_batch_result to store and retrieve batch scan results.
batch_results: dict[str, dict] = {}