Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
  • 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()

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/YoussefSahnoun/PentestMCP'

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