Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_add_time_log

Add a time log entry to an existing draft ERPNext timesheet by specifying activity type, hours, and optional task, project, or time range.

Instructions

Add time log to existing draft timesheet

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>",
      "activity_type": "<activity_type>",
      "hours": "<hours>"
    },
    "name": "erpnext_add_time_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoTask (optional)
hoursYesHours worked
projectNoProject (optional)
to_timeNoEnd time
from_timeNoStart time
timesheetYesTimesheet ID
descriptionNoDescription
activity_typeYesActivity type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description bears the full burden of behavioral disclosure and does only part of the job: it reveals that the target must be an existing draft timesheet, implying failure on non-draft or missing timesheets. It says nothing about whether the log is appended to the timesheet total, permission/auth requirements, or validation of from/to times.

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?

One short phrase, front-loaded with the verb and the key precondition; no filler whatsoever. The only knock is that brevity here shades into under-specification rather than tight structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 annotations and no output schema, the definition is thin: it does not cover failure modes, whether hours are additive, or what the call returns. The essential precondition is stated, but an agent could still call this incorrectly on a submitted timesheet.

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 all 8 parameters are already documented in the schema and the baseline is 3. The description adds no additional semantics for parameters such as 'hours', 'activity_type', or the from_time/to_time pair, so it neither helps nor hurts.

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 ("Add") and resource ("time log") plus a scope constraint ("existing draft timesheet"), which implicitly separates it from erpnext_create_timesheet (new timesheet) and erpnext_create_custom_timesheet. It does not explicitly name those siblings, so it falls short of full differentiation.

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?

The phrase "existing draft timesheet" conveys a precondition: the agent understands a draft timesheet must already exist and supplies its ID via the required 'timesheet' param. However, there is no explicit when-to-use/when-not guidance and no pointer to erpnext_update_time_log for modifying an existing log instead.

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