Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_delete_timesheet

Deletes a draft timesheet by ID, working only on timesheets that have not been submitted. Use it to remove unsubmitted timesheet records.

Instructions

Delete a draft timesheet. Only works on timesheets that have not been submitted.

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>"
    },
    "name": "erpnext_delete_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
timesheetYesTimesheet ID (e.g., TS-00001)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose the key behavioral constraint (draft-only). It does not state that deletion is irreversible, whether it requires specific permissions, what error is returned for a submitted timesheet, or what the response looks like. Useful but incomplete for a destructive operation.

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 with zero waste; the core action is front-loaded and the constraint immediately follows. Every sentence 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 one-parameter destructive tool with no annotations and no output schema, the description covers the essential constraint. It leaves gaps around irreversibility and the cancel-vs-delete distinction, which matter for a mutation tool but do not block correct invocation in the common case.

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 coverage is 100% and the single parameter already documents itself as a timesheet ID with an example format. The description adds no additional meaning about the identifier — no state requirements beyond 'draft' or notes on how to obtain a valid ID. 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?

States a specific verb+resource ('Delete a draft timesheet') with a qualifying scope. An agent knows exactly what the tool does. It does not distinguish itself from the sibling erpnext_cancel_timesheet, which an agent could reasonably confuse with deletion.

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 precondition 'only works on timesheets that have not been submitted' gives implicit usage guidance about when the call will succeed. However, it names no alternative and gives no recovery path — an agent handling a submitted timesheet is not told to use cancel_timesheet or any other sibling.

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