Skip to main content
Glama

ntimer

Record Coding Activity

ntime_heartbeat

Use this when you need to record a coding activity signal. It starts a coding session for the project or selected work item when none is open, or extends the existing session. With parallel timers disabled, starting a session stops another running timer. An idle session closes at its last signal, and writes are limited to once per project per minute.

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": {
      "project": "<project>"
    },
    "name": "ntime_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoFile currently being edited, if any.
typeNoActivity type for a new session. Defaults to coding.
workNoWork item that receives the signal. Defaults to the project-named work item.
projectYesProject name, normally the Git repository root directory.
idleMinutesNoMinutes without a signal before a new session closes. Defaults to 30; zero disables idle closing.

Output Schema

NameRequiredDescriptionDefault
actionYes
projectYes
sessionNo
coalescedYes
nextWriteAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses concrete side effects: with parallel timers disabled, starting a session stops another running timer; idle sessions close at their last signal; and writes are throttled to once per project per minute. These are exactly the operational facts an agent needs before invoking a non-idempotent write, and none of them are recoverable from the annotations.

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?

Four sentences, front-loaded with the trigger condition followed by state and side-effect behavior. Nothing is redundant, though the opening sentence is slightly padded ('Use this when you need to...') where a direct statement of the trigger would be tighter.

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?

An output schema exists, so return values need no explanation, and the description covers the side effects and rate limit that matter for a mutation tool. The remaining gap is routing guidance against sibling session-start tools, which is the one thing an agent still has to guess.

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 every parameter (project, work, file, type, idleMinutes) is already documented in the schema, including defaults and bounds. The description adds only a light gloss ('project or selected work item') and no format or precedence detail beyond the schema, 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?

The description names a specific action (record a coding activity signal) and explains the resulting state change: it opens a session when none is open or extends the existing one. That is more than a restatement of the name. It does not explicitly contrast itself with siblings like ntime_start or ntime_log, so an agent must infer the boundary.

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?

Usage is stated only as 'when you need to record a coding activity signal,' which is close to restating the tool's purpose. There is no explicit when-not guidance and no named alternative for the case where an agent wants to start a timer deliberately rather than passively report activity.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.