Skip to main content
Glama

Log a task

log_task

Adds one task (a work log entry) to one of the user's agents in ShiftLog.it and returns it as stored. It only adds: it never changes or deletes a task. The task appears on the timesheets the user sends their client, priced at the agent's hourly rate like any task logged in the app. The duration is hours, or startTime and endTime, or startTime and hours; the tool stores the duration it is given and has no default. IP Box marking (Polish tax relief) is not set by this tool; the user can add it in the app.

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": {
      "description": "<description>"
    },
    "name": "log_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe day the work was done, YYYY-MM-DD, in the user's timezone. Defaults to today in the user's timezone.
hoursNoThe duration the user stated, in decimal hours: more than 0, at most 24, at most two decimals (1.5 = 1 hour 30 minutes). Required unless startTime and endTime are given.
topicNoA short title, up to 120 characters. Optional.
agentIdNoThe agent's id from list_agents. Defaults to the user's current agent.
endTimeNoClock time the work ended, HH:mm (24-hour), on the same day and after startTime. Needs startTime.
startTimeNoClock time the work started, HH:mm (24-hour).
descriptionYesThe timesheet entry as the user's client reads it: what was done and its outcome, usually a sentence or two of plain text, without code, file paths or secrets. Required.
externalRefNoThe user's own reference for this work, such as a ticket or issue id (JIRA-123, #456) that the user or their work names, up to 200 characters. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing downstream effects the annotations cannot convey: the entry appears on client-facing timesheets and is billed at the agent's hourly rate. It also rules out IP Box marking and states there is no default duration, so the agent knows the stored value is exactly what it supplies.

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?

Front-loads the action and scope before moving to billing effects and duration rules, and almost every sentence carries new information. A couple of clauses are dense (the duration enumeration), but nothing is filler.

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?

For an 8-parameter mutation tool with no output schema, it covers scope, side effects, billing impact, and the key constraint that duration has no default. Error conditions and duplicate/idempotency behavior (relevant given idempotentHint=false) are left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds the duration-combination rules ("hours, or startTime and endTime, or startTime and hours") and the no-default rule, which the schema only partially implies. That third combination and the absence of a fallback are genuine added meaning.

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 ("Adds one task (a work log entry) to one of the user's agents in ShiftLog.it") plus the return behavior ("returns it as stored"). That cleanly separates it from the read-only siblings list_agents and list_tasks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Makes the create-only scope explicit ("It only adds: it never changes or deletes a task") and notes that IP Box marking must be done in the app instead, which is a real alternative route. It does not spell out when-not-to-use conditions or duplicate handling, so the guidance is clear but not exhaustive.

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.

Resources