Skip to main content
Glama

health

Retrieve Splunk connection details and list available apps for endpoint consistency. Simplify monitoring and management of Splunk resources in enterprise or cloud environments.

Instructions

Get basic Splunk connection information and list available apps (same as health_check but for endpoint consistency)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the MCP tool named 'health'. It delegates to the health_check() function to perform the actual health check logic.
    @mcp.tool() async def health() -> Dict[str, Any]: """Get basic Splunk connection information and list available apps (same as health_check but for endpoint consistency)""" return await health_check()
  • Supporting function health_check() that contains the core logic for checking Splunk connection health, listing apps, and returning status information. Called by the 'health' tool.
    @mcp.tool() async def health_check() -> Dict[str, Any]: """Get basic Splunk connection information and list available apps""" try: service = get_splunk_connection() logger.info("🏥 Performing health check...") # List available apps apps = [] for app in service.apps: try: app_info = { "name": app['name'], "label": app['label'], "version": app['version'] } apps.append(app_info) except Exception as e: logger.warning(f"⚠️ Error getting info for app {app['name']}: {str(e)}") continue response = { "status": "healthy", "connection": { "host": SPLUNK_HOST, "port": SPLUNK_PORT, "scheme": SPLUNK_SCHEME, "username": os.environ.get("SPLUNK_USERNAME", "admin"), "ssl_verify": VERIFY_SSL }, "apps_count": len(apps), "apps": apps } logger.info(f"✅ Health check successful. Found {len(apps)} apps") return response except Exception as e: logger.error(f"❌ Health check failed: {str(e)}") raise
  • splunk_mcp.py:864-864 (registration)
    Registration of the 'health' tool via the @mcp.tool() decorator.
    @mcp.tool()

Other Tools

Related Tools

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/livehybrid/splunk-mcp'

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