Skip to main content
Glama

tududi_get_habit_stats

Retrieve completion statistics and streaks for a habit, optionally scoped to a start and end date, to track consistency and progress.

Instructions

Get completion statistics and streaks for a habit

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": {
      "id": "<id>"
    },
    "name": "tududi_get_habit_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesHabit UID
endDateNoOptional range end date (ISO/YYYY-MM-DD)
startDateNoOptional range start date (ISO/YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. "Get" hints at a read-only operation and names the returned metrics, but it says nothing about the default range when startDate/endDate are absent, how streaks are counted, or whether empty ranges error out.

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?

A single front-loaded sentence with no filler, though that brevity is part of why behavioral and usage detail are missing. Nothing is redundant or buried.

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

Completeness3/5

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

The tool is simple, read-only, and its inputs are fully schematized, so the description is adequate to call it. It falls short of complete because an agent cannot predict what the statistics payload looks like or how the date range changes results, and no output schema exists to cover that.

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%, so each of the three parameters (id, startDate, endDate) is already documented with type and format. The description adds no extra meaning about how the range bounds interact with streak calculation, so the baseline score 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?

"Get completion statistics and streaks for a habit" states a specific verb (get) and two specific resources (statistics, streaks) scoped to one entity. It is distinguishable from sibling tududi_get_habit, which fetches the habit itself, though the description never explicitly says so.

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 guidance on when to prefer this over tududi_get_habit, nor on what the optional date range is for or what happens when it is omitted. The agent must infer that this is the analytics view rather than the detail view.

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