Skip to main content
Glama

Log time

log_time

Add one time entry: a project, a date, how long, and what was done. Give minutes or a duration text. This adds a new entry; it never merges with an existing one. Check list_entries first if the day may already be logged. Pass the same key when retrying a call, so the time is logged once. 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>",
      "date": "<date>"
    },
    "name": "log_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoOptional retry key, max 100 characters: calling again with the same key returns the first entry instead of adding another
dateYesThe day the work was done, YYYY-MM-DD
noteNoWhat was done (max 2,000 characters)
minutesNoWhole minutes worked (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 such as "1h30" (use this or minutes)

Output Schema

NameRequiredDescriptionDefault
loggedNoThe saved entry (absent in a preview)
previewNoTrue when this is a preview: nothing was saved
would_logNoWhat would be saved (preview only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 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"
      +}
    • addedOutput schema / properties / logged / description
      Added value: +"The saved entry (absent in a preview)"
    • addedOutput schema / properties / logged / properties / logged_by
      Added value: +{
      +  "description": "Name of the access token that logged this entry, or null when it was logged in the UseHourly app",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / logged / required
      Previous value: -[
      -  "id",
      -  "date",
      -  "minutes",
      -  "hours",
      -  "note",
      -  "running",
      -  "started_at",
      -  "project",
      -  "client"
      -]New value: +[
      +  "id",
      +  "date",
      +  "minutes",
      +  "hours",
      +  "note",
      +  "running",
      +  "started_at",
      +  "logged_by",
      +  "project",
      +  "client"
      +]
    • 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: +{
      +  "additionalProperties": {},
      +  "description": "What would be saved (preview only)",
      +  "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"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "logged"
      -]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond readOnlyHint=false/destructiveHint=false, it discloses that entries never merge, that preview writes nothing, and that a repeated key returns the first entry rather than adding another. The key-based dedupe is conditional and does not conflict with idempotentHint=false, which describes default behavior; it usefully explains the mechanism.

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?

Front-loaded with the core action, then retry safety, then the confirmation workflow — a logical order for an agent to act on. Every sentence carries information; nothing is redundant with the title or repeated.

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?

For a 7-parameter mutation tool it covers the mutation semantics, duplicate-check path, retry safety, and human confirmation flow, and an output schema exists so return values need no explanation. Nothing needed to invoke it correctly 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 description coverage is 100%, so project, date, minutes/duration, note, key, and preview are already documented. The description restates the minutes-or-duration choice and the preview gating but adds no syntax or format detail beyond the schema, so this sits at the baseline for a fully covered schema.

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?

States a specific verb and resource with scope — 'Add one time entry' — and enumerates the core inputs (project, date, how long, what was done). It separates itself from merge_entries by declaring 'it never merges with an existing one' and from bulk/other logging paths by emphasizing the single-entry semantics.

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?

Gives explicit preconditions and alternatives: check list_entries first if the day may already be logged, and pass the same key when retrying. It also specifies the ordering of the preview vs. non-preview calls, so the agent knows exactly when each mode applies.

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.