get_report
Retrieve the path to the report file generated from the last run, aiding in the analysis of LLM vulnerability scans with Garak-MCP.
Instructions
Get the report of the last run.
Returns:
str: The path to the report file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:142-150 (handler)The handler function for the 'get_report' MCP tool. It is registered via the @mcp.tool() decorator and simply returns the fixed path to the report file generated by previous runs.@mcp.tool() def get_report(): """ Get the report of the last run. Returns: str: The path to the report file. """ return os.path.join(os.path.dirname(os.path.dirname(__file__)), 'output', 'output.report.jsonl')