Skip to main content
Glama

set_datetime

Idempotent

Set a camera’s date and time manually to correct clock drift; this disables NTP synchronization.

Instructions

Manually set camera date and time (disables NTP).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "year": "<year>",
      "month": "<month>",
      "day": "<day>",
      "hour": "<hour>",
      "minute": "<minute>"
    },
    "name": "set_datetime"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYesDay (1-31)
hourYesHour (0-23)
yearYesYear
monthYesMonth (1-12)
minuteYesMinute (0-59)
secondNoSecond (0-59)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, idempotent, non-destructive mutation, so the safety profile is covered. The description adds genuinely useful context that the call disables NTP, a side effect not present in annotations. It omits other behavioral facts that matter for a clock tool, notably whether the supplied values are local time or UTC and whether the change persists across reboots.

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?

A single short sentence with the action front-loaded and the consequential side effect placed in a parenthetical where it is immediately visible. Nothing in it is filler.

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 annotations covering mutation semantics and the schema fully documenting all six parameters, the definition needs only to establish purpose and the NTP consequence, both of which it does. The remaining gap is the time semantics (local vs UTC), which is a meaningful omission for a clock-setting tool.

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%, with every field documented along with min/max ranges and the second default, so the schema carries the parameter burden. The description adds no extra meaning such as timezone, 24-hour format, or handling of leap/DST cases, so the baseline 3 applies.

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+resource: 'set camera date and time', with 'Manually' distinguishing it from an NTP-driven sync. It does not name the read counterpart get_datetime or the set_ntp alternative, but the verb/resource pair alone makes the intent unambiguous.

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

Usage Guidelines3/5

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

'Manually' plus '(disables NTP)' signals the context in which to reach for this tool, and implicitly points to NTP configuration as the alternative. It stops short of an explicit when-to-use statement or naming set_ntp as the route to re-enable synchronization.

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