list_saved_quereis
Retrieve stored BloodHound queries for Active Directory penetration testing to analyze attack paths and identify vulnerabilities during security assessments.
Instructions
list already saved queries in bloodhound
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/pentestmcp/server.py:347-350 (handler)MCP tool registration and handler function for 'list_saved_quereis'. This thin wrapper delegates the execution to the bloodhound.list_saved_queries() helper function.@mcp.tool(name="list_saved_quereis",description="list already saved queries in bloodhound") def list_saved_queries(): return bloodhound.list_saved_queries()
- src/pentestmcp/bloodhound.py:170-178 (helper)The core helper function that implements the logic: creates authenticated BloodHound client and performs GET request to /api/v2/saved-queries endpoint to list saved queries.def list_saved_queries(): credentials = Credentials( token_id=config.BHE_TOKEN_ID, token_key=config.BHE_TOKEN_KEY, ) client = Client(scheme=BHE_SCHEME, host=config.BHE_DOMAIN, port=config.BHE_PORT, credentials=credentials) response=client._request("GET","/api/v2/saved-queries") return response.json()