Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_remove_time_log

Removes a specific time log from a draft ERPNext timesheet by index and prevents removal of the last remaining log.

Instructions

Remove a specific time log from a draft timesheet. Cannot remove the last time log.

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_remove_time_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
timesheetYesTimesheet ID (e.g., TS-00001)
time_log_indexYesIndex of the time log to remove (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 usefully discloses that the target log is destroyed and that the tool refuses to leave an empty timesheet, which is exactly the kind of guardrail an agent needs. It says nothing about permissions, side effects on timesheet totals, or what is returned.

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 short sentences, zero filler, with the destructive action stated first and the constraint immediately after. Every clause earns its place.

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 a two-parameter mutation tool with no output schema this covers the essentials: what is removed, from where, and the blocking condition. Only the return value and any downstream effect on timesheet totals are left implicit.

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%, and the schema already explains both the Timesheet ID format and the 0-based index. The description adds no extra meaning about either parameter, so the baseline 3 applies.

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?

The description gives a specific verb+resource pair ("Remove a specific time log") plus the scope ("from a draft timesheet"), which clearly separates it from the add/update time-log siblings. It does not name any sibling explicitly, so it stops 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 Guidelines4/5

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

It states an explicit precondition and hard exclusion: the timesheet must be a draft, and the last remaining time log cannot be removed. That is real when/when-not guidance. It never points to an alternative (e.g. update the log instead of removing it), so it is not a 5.

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