Skip to main content
Glama

Log the same time on several days

log_time_on_days

Add the same entry (project, minutes, note) on up to 31 dates. Days that already have time for this project are skipped and reported unless skip_existing is false. Before saving, call with preview: true, show the person the list (project, date, hours, note) and ask "Log these N entries? (y / edit)"; call again without preview only after they say yes.

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>",
      "dates": "<dates>"
    },
    "name": "log_time_on_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoOptional retry key, max 100 characters: calling again with the same key returns the first entry instead of adding another
noteNoWhat was done (max 2,000 characters)
datesYesThe days to log, YYYY-MM-DD (1 to 31 dates)
minutesNoWhole minutes per day (use this or duration)
previewNotrue = check and show what would be saved, write nothing
projectYesProject id, or "Client / Project" (just the project name works when it is unique)
durationNoDuration text per day, such as "1h30" (use this or minutes)
skip_existingNoSkip days that already have time for this project (default true)

Output Schema

NameRequiredDescriptionDefault
createdNoDays that got an entry (absent in a preview)
minutesYesMinutes logged on each day
previewNoTrue when this is a preview: nothing was saved
projectYes"Client / Project"
skippedYesDays skipped because they already had time
would_logNoThe entries that would be saved, by date (preview only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / key
      Added value: +{
      +  "description": "Optional retry key, max 100 characters: calling again with the same key returns the first entry instead of adding another",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / preview
      Added value: +{
      +  "default": false,
      +  "description": "true = check and show what would be saved, write nothing",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / created / description
      Previous value: -"Days that got an entry"New value: +"Days that got an entry (absent in a preview)"
    • addedOutput schema / properties / preview
      Added value: +{
      +  "const": true,
      +  "description": "True when this is a preview: nothing was saved",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / would_log
      Added value: +{
      +  "description": "The entries that would be saved, by date (preview only)",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "client": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "date": {
      +        "description": "Local calendar date, YYYY-MM-DD",
      +        "type": "string"
      +      },
      +      "hours": {
      +        "description": "Hours, rounded to 2 decimals",
      +        "type": "number"
      +      },
      +      "minutes": {
      +        "description": "Whole minutes",
      +        "type": "number"
      +      },
      +      "note": {
      +        "description": "What was done",
      +        "type": "string"
      +      },
      +      "project": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "date",
      +      "minutes",
      +      "hours",
      +      "note",
      +      "project",
      +      "client"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "project",
      -  "minutes",
      -  "created",
      -  "skipped"
      -]New value: +[
      +  "project",
      +  "minutes",
      +  "skipped"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations only declare write/non-destructive flags, and the description adds real value: existing-time days are skipped and reported, preview writes nothing, and retry keys avoid duplicate adds. It does not cover what 'reported' looks like on a partial run or permission/auth requirements, but combined with the annotations and output schema the behavior is reasonably clear.

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?

Three tight sentences: scope and cap first, skip semantics second, the mandatory preview-confirm loop last. Every clause carries operational information and none restates the tool name or annotations.

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?

An output schema exists, so return values need not be explained, and the description still covers the write scope, date cap, partial-skip behavior, preview safety gate, and confirmation phrasing. Nothing an agent needs in order to call this correctly on a multi-date bulk write is missing.

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 coverage is 100%, so per-parameter meaning (key, note, dates pattern, minutes/duration alternatives, skip_existing, preview) is already documented in the schema. The description reinforces how preview and skip_existing are meant to be sequenced but adds no format or constraint detail beyond the schema, so baseline 3 is appropriate.

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?

"Add the same entry (project, minutes, note) on up to 31 dates" gives a specific verb, resource, and scope, and the 31-date cap plus 'same entry' implicitly separates it from single-entry logging siblings. It stops short of naming the single-entry alternative (log_time) or set_day_totals, so the boundary is inferable rather than explicit.

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?

Prescribes an explicit two-phase workflow: call with preview: true first, show the person project/date/hours/note, ask "Log these N entries? (y / edit)", and only call again without preview after confirmation. It also states the skip behavior and its opt-out (unless skip_existing is false), so an agent knows both the sequence and the fallback.

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.