Skip to main content
Glama

Set an input_datetime value

helpers_set_input_datetime
Idempotent

Write a date, time, or combined datetime to a Home Assistant input_datetime helper; leave date or time unchanged by omitting those parameters.

Instructions

Set an input_datetime helper's date, time or combined datetime value.

Calls input_datetime.set_datetime over HTTP with whichever of date, time, datetime are given; passing none of them still calls the service with only entity_id.

Use when: writing a specific date/time to an input_datetime helper. Returns: the list of states changed by the call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate to set, formatted YYYY-MM-DD. Omit to leave the date unchanged.
timeNoTime to set, formatted HH:MM:SS. Omit to leave the time unchanged.
datetimeNoCombined date and time, formatted 'YYYY-MM-DD HH:MM:SS'. Takes precedence over date/time when given.
entity_idYesFull input_datetime entity ID to set, e.g. 'input_datetime.reminder'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.25.1
    • addedInput schema / properties / date / description
      Added value: +"Date to set, formatted YYYY-MM-DD. Omit to leave the date unchanged."
    • addedInput schema / properties / datetime / description
      Added value: +"Combined date and time, formatted 'YYYY-MM-DD HH:MM:SS'. Takes precedence over date/time when given."
    • addedInput schema / properties / entity_id / description
      Added value: +"Full input_datetime entity ID to set, e.g. 'input_datetime.reminder'."
    • addedInput schema / properties / time / description
      Added value: +"Time to set, formatted HH:MM:SS. Omit to leave the time unchanged."
  2. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-readOnly, idempotent, non-destructive behavior; the description adds real value on top: it names the underlying `input_datetime.set_datetime` HTTP call and discloses the notable edge case that passing none of date/time/datetime still invokes the service with only entity_id.

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

Conciseness4/5

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

Front-loaded purpose sentence followed by two tight supporting sentences. Slightly padded by a 'Returns:' line that duplicates information already available via the output schema, but otherwise no waste.

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?

With an output schema present and 100% schema coverage, the description doesn't need to explain returns or parameter formats; it correctly focuses on the edge-case behavior and usage condition. Slight redundancy in the Returns line keeps it from a 5.

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

Parameters3/5

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

Schema description coverage is 100%, including formats and the datetime-overrides-date/time precedence rule, so the description's 'whichever of date, time, datetime are given' adds no detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Set an input_datetime helper's date, time or combined datetime value') and pins the target helper type, which cleanly separates it from the many sibling helpers_set_input_boolean/number/text/select tools without needing the schema.

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

Usage Guidelines4/5

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

Explicit 'Use when: writing a specific date/time to an input_datetime helper' gives the triggering condition. It doesn't name an alternative tool by name, but the sibling set is already partitioned by helper type, so the context is clear.

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