Skip to main content
Glama

get_scanner_output

Retrieve scanner output for a specific issue occurrence using issue_id and occurrence_id to analyze detailed results on the intruder-mcp server.

Instructions

Get scanner output for a specific occurrence of an issue. Args: issue_id: The ID of the issue occurrence_id: The ID of the occurrence

Input Schema

NameRequiredDescriptionDefault
issue_idYes
occurrence_idYes

Input Schema (JSON Schema)

{ "properties": { "issue_id": { "title": "Issue Id", "type": "integer" }, "occurrence_id": { "title": "Occurrence Id", "type": "integer" } }, "required": [ "issue_id", "occurrence_id" ], "title": "get_scanner_outputArguments", "type": "object" }

Implementation Reference

  • The main handler function decorated with @mcp.tool() that implements the logic for the get_scanner_output tool. It fetches all scanner outputs via the API client, formats them with plugin names, CVEs, and output lines, and returns a newline-separated string.
    @mcp.tool() async def get_scanner_output(issue_id: int, occurrence_id: int) -> str: """ Get scanner output for a specific occurrence of an issue. Args: issue_id: The ID of the issue occurrence_id: The ID of the occurrence """ outputs = api.get_scanner_output_all(issue_id=issue_id, occurrence_id=occurrence_id) formatted = [] for output in outputs: plugin_info = f"Plugin: {output.plugin.name}" if output.plugin.cve: plugin_info += f" (CVEs: {', '.join(output.plugin.cve)})" formatted.append(plugin_info) formatted.append("Output:") formatted.extend(str(line) for line in output.scanner_output) formatted.append("") return "\n".join(formatted)
  • Supporting generator function in the IntruderAPI client that fetches all scanner outputs by paginating through the API endpoints with limit=100.
    def get_scanner_output_all(self, issue_id: int, occurrence_id: int) -> Generator[ScannerOutputList, None, None]: offset = 0 while True: response = self.get_scanner_output(issue_id, occurrence_id, limit=100, offset=offset) for output in response.results: yield output if not response.next: break offset += len(response.results)
  • Low-level paginated API call in the IntruderAPI client to retrieve scanner output from the Intruder API server.
    def get_scanner_output(self, issue_id: int, occurrence_id: int, limit: Optional[int] = None, offset: Optional[int] = None) -> PaginatedScannerOutputListList: params = {} if limit: params["limit"] = limit if offset: params["offset"] = offset return PaginatedScannerOutputListList(**self.client.get(f"{self.base_url}/issues/{issue_id}/occurrences/{occurrence_id}/scanner_output/", params=params).json())

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/intruder-io/intruder-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server