Skip to main content
Glama

faiss_status

Check the operational status of the external FAISS vector database tether to monitor connectivity and availability for neural memory storage and retrieval.

Instructions

Check external FAISS tether status (if enabled).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'faiss_status' tool, which uses the FaissTetherBridge to query the status of an external FAISS service.
    elif name == "faiss_status":
        if not tether.is_available():
            return [
                types.TextContent(
                    type="text",
                    text=json.dumps(
                        {
                            "success": False,
                            "status": "offline",
                            "enabled": Config.FAISS_TETHER_ENABLED,
                            "host": Config.FAISS_TETHER_HOST,
                            "port": Config.FAISS_TETHER_PORT,
                        },
                        indent=2,
                    ),
                )
            ]
    
        status = tether.status()
    
        return [
            types.TextContent(
                type="text",
                text=json.dumps(
                    {
                        "success": True,
                        "status": "connected",
                        "host": Config.FAISS_TETHER_HOST,
                        "port": Config.FAISS_TETHER_PORT,
                        "tether_info": status,
                    },
                    indent=2,
                ),
            )
        ]
  • The registration of the 'faiss_status' tool in the list_tools() function.
        name="faiss_status",
        description="Check external FAISS tether status (if enabled).",
        inputSchema={"type": "object", "properties": {}},
    ),
  • The status method of the FaissTetherBridge class that executes the status command against the FAISS service.
    def status(self) -> Dict:
        if not self.enabled:
            return {"status": "error", "message": "FAISS tether not enabled"}
        try:
            sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            sock.settimeout(5)
            sock.connect((self.host, self.port))
            request = json.dumps({"cmd": "status"})
            sock.sendall(request.encode("utf-8"))
            response = sock.recv(16384).decode("utf-8")
            sock.close()
            return json.loads(response)
        except Exception as e:
            return {"status": "error", "message": str(e)}

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/For-Sunny/hebbian-mind-enterprise'

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