Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_cancel_timesheet

Cancel a submitted timesheet in ERPNext by specifying its Timesheet ID.

Instructions

Cancel a submitted 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": {
      "name": "<name>"
    },
    "name": "erpnext_cancel_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTimesheet ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden for what is a state-changing operation. It says nothing about reversibility, permission/role requirements, whether approval status blocks cancellation, whether linked time logs are affected, or what is returned; the mutation characteristics are entirely unstated.

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?

Five words, front-loaded with the verb and containing no filler. The brevity borders on under-specification rather than waste, which is a completeness problem rather than a structure problem.

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 one-parameter, no-output-schema tool this is close to sufficient to make the call. However, as an unannotated mutation it should at least signal irreversibility or any state precondition beyond 'submitted' before an agent commits to cancelling a real 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?

The single parameter has 100% schema coverage with its own description ('Timesheet ID'), so the schema already does the work. The tool description adds no extra meaning about the identifier (e.g. that it is the document name from a submitted timesheet), so 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 and resource ('Cancel a ... timesheet') and adds the qualifier 'submitted', which tells an agent the target must already be in submitted state. It is clearly distinguishable from erpnext_submit_timesheet and erpnext_delete_timesheet, though it does not name those siblings explicitly.

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 word 'submitted' implies a precondition (this is the counterpart to submit, not to delete), so a careful reader can infer when to reach for it. There is no explicit when-to-use, when-not-to-use, or alternative named, and the cancel-vs-delete distinction is left for the agent to guess.

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