Skip to main content
Glama

List scripts

automations_list_scripts
Read-onlyIdempotent

List all Home Assistant scripts and their current state, friendly name, and last triggered time to track script status.

Instructions

List all scripts with their current state.

Reads ha.get_states() and keeps entries whose entity_id starts with 'script.'.

Returns: list[dict] {"entity_id", "state", "friendly_name", "last_triggered"} per script.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuinely new behavioral context beyond them: it discloses the data source (ha.get_states()) and the exact filtering rule (entity_id prefix 'script.'), which tells the agent what will and will not appear in the results.

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?

Three short, front-loaded sections: purpose, mechanism, return shape. No filler sentences and the essential information leads.

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 zero-parameter read-only listing tool with an output schema and full annotation coverage, the description is essentially complete. The only missing piece is routing guidance versus sibling list tools, which is a minor gap given the tool's simplicity.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4. The description correctly introduces no parameter discussion and instead explains the implicit scoping of results, which is the only 'parameter-like' semantics available here.

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

Purpose4/5

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

States a specific verb and resource ('List all scripts') plus the data they expose ('current state'). It is distinguishable from automations_list_automations and automations_list_scenes by resource name, though it never explicitly contrasts itself with those siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of when another tool (e.g. automations_list_automations, automations_get_script_config) is the better choice, and no preconditions. The implementation note about filtering script. entities implies usage but does not guide selection.

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

Deploy Server

Other Tools