Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_update_time_log

Update a specific time log in a draft timesheet to edit hours, start/end times, project, activity type, or description. Use it to correct an existing time entry.

Instructions

Update a specific time log in a draft timesheet. Use this to edit hours, times, project, activity type, or description of an existing time entry.

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": {
      "timesheet": "<timesheet>",
      "time_log_index": "<time_log_index>"
    },
    "name": "erpnext_update_time_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoNew task (optional)
hoursNoNew hours worked (optional)
projectNoNew project (optional, use empty string to remove)
to_timeNoNew end time (YYYY-MM-DD HH:MM:SS) (optional)
from_timeNoNew start time (YYYY-MM-DD HH:MM:SS) (optional)
timesheetYesTimesheet ID (e.g., TS-00001)
descriptionNoNew description (optional)
is_billableNoIs billable? (optional)
activity_typeNoNew activity type (optional)
time_log_indexYesIndex of the time log to update (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key constraint that the target must be a draft timesheet and that edits are field-level and optional. It does not cover permissions, behavior on an invalid time_log_index, whether the update is partial vs. a replace, or any return information.

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?

Two sentences, front-loaded with the action and the scope constraint, with no filler or redundancy.

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?

For a 10-parameter mutation tool with no annotations and no output schema, the description covers purpose and the draft-only constraint but omits two editable fields and says nothing about the result or failure modes. Adequate as a minimum-viable definition, but not fully complete.

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 the schema already documents every parameter including formats and the 0-based index, establishing a baseline of 3. The description enumerates the editable fields but omits 'task' and 'is_billable', adding only modest meaning beyond the schema.

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?

States a specific verb ('Update') and resource ('a specific time log in a draft timesheet'), plus the editable field set, so it is clearly distinguishable from add_time_log/remove_time_log siblings. It stops short of explicitly naming those siblings, so it lands at 4 rather than 5.

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?

'Use this to edit hours, times, project, activity type, or description of an existing time entry' gives an implied when-to-use, and 'in a draft timesheet' encodes an important precondition. However, there is no explicit when-not guidance (e.g. submitted timesheets, or when to add or remove an entry instead), so the agent must infer the alternatives.

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