Skip to main content
Glama

ticktick_convert_datetime_to_ticktick_format

Convert an ISO 8601 datetime into TickTick's storage format using an IANA timezone and return the UTC-offset timestamp for startDate or dueDate fields.

Instructions

Convert an ISO 8601 datetime string into TickTick's storage format.

TickTick uses YYYY-MM-DDTHH:MM:SS+0000 (UTC offset, no colon).

Args: datetime_iso_string (str): ISO 8601 datetime, e.g. "2026-04-13T20:45:00+01:00". Naive strings are accepted and interpreted in tz. tz (str): IANA timezone name used for the UTC conversion, e.g. "Europe/London" or "America/Los_Angeles".

Returns: On success: {"ticktick_format": "2026-04-13T19:45:00+0000"}. On parse error: {"error": "Invalid datetime format...", "status": "error"}. On any other conversion error: {"error": "Conversion failed: ...", "status": "error"}.

Agent Usage Guide: - Call this when you need to set startDate or dueDate on a task dict by hand. The ticktick_create_task and ticktick_update_task tools accept ISO strings directly and run this conversion internally.

Example: ticktick_convert_datetime_to_ticktick_format( datetime_iso_string="2026-04-13T20:45:00+01:00", tz="Europe/London", )

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": {
      "datetime_iso_string": "<datetime_iso_string>",
      "tz": "<tz>"
    },
    "name": "ticktick_convert_datetime_to_ticktick_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzYes
datetime_iso_stringYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "ticktick_convert_datetime_to_ticktick_formatOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that naive strings are interpreted in ``tz``, that conversion is to UTC, and enumerates two distinct error shapes (parse error vs. other conversion error). Nothing about the operation's safety profile or failure modes is left to inference.

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?

Content is front-loaded with the core purpose in the first line, and every section (Args, Returns, Usage Guide, Example) adds information. The Args section, however, largely repeats the example given later in the Example block, so there is modest redundancy typical of docstring formatting.

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

Completeness5/5

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

The tool is simple (two string parameters, no annotations), yet the description still documents return values and error payloads even though no output schema exists. An agent has everything needed to call it and interpret the response.

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?

Schema description coverage is 0%, so the description must supply all meaning, and it does: ``datetime_iso_string`` is defined as ISO 8601 with a concrete example including an offset, and ``tz`` is defined as an IANA name with two valid examples. Both required parameters are fully explained.

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 names a concrete verb and resource ("Convert an ISO 8601 datetime string into TickTick's storage format") and gives the exact target format ``YYYY-MM-DDTHH:MM:SS+0000``. This is unambiguous and clearly distinct from the sibling task-mutation tools.

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 "Agent Usage Guide" states precisely when to call it (setting ``startDate``/``dueDate`` on a task dict by hand) and explicitly routes the agent away from unnecessary calls by noting that ``ticktick_create_task`` and ``ticktick_update_task`` already run this conversion internally.

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