Skip to main content
Glama

get_core_logs

Retrieve Home Assistant core logs from Supervisor journal to diagnose system issues, with filtering by level, integration, time, and message patterns.

Instructions

Get Home Assistant core logs (all levels) from the Supervisor journal, with fallback to error log.

Args: limit: Max records (1-200, default: 50) level: Filter: "DEBUG", "INFO", "WARNING", or "ERROR" integration: Filter by integration (e.g. "mqtt", "llmvision") pattern: Case-insensitive substring match on message since_minutes: Only logs from last N minutes lines: Journal lines to request (default: 500) truncate_traces: Truncate stacktraces to 3 lines (default: True)

Use set_log_level to enable DEBUG before reading debug logs; reset to WARNING after.

Examples: get_core_logs(level="DEBUG", integration="llmvision") get_core_logs(pattern="timeout", since_minutes=60)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
levelNo
integrationNo
patternNo
since_minutesNo
linesNo
truncate_tracesNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it specifies the source ('Supervisor journal'), fallback mechanism ('with fallback to error log'), default values for parameters, and practical constraints like the limit range (1-200). However, it doesn't mention rate limits, authentication needs, or what format/log structure is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with a clear purpose statement, organized parameter explanations in bullet-like format, usage guidance, and practical examples. Every sentence adds value without redundancy, and information is front-loaded appropriately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 7 parameters, 0% schema coverage, and no output schema, the description does an excellent job covering purpose, parameters, and usage. The main gap is the lack of information about return format/structure, which would be helpful given the complexity. However, it provides sufficient context for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 7 parameters, the description fully compensates by providing detailed semantics for all parameters: it explains each parameter's purpose, constraints (e.g., '1-200' for limit), default values, and filtering behavior. The examples further illustrate how parameters work together.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verb ('Get') and resource ('Home Assistant core logs'), including details about source ('Supervisor journal') and fallback behavior. It distinguishes from sibling tools like 'get_error_log' by specifying it retrieves 'all levels' with filtering capabilities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool vs alternatives: it mentions the need to 'Use set_log_level to enable DEBUG before reading debug logs; reset to WARNING after' and gives two concrete examples showing different filtering scenarios. This gives clear context for proper usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/rmaher001/hass-mcp-plus'

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