Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_submit_timesheet

Submits a draft timesheet by its ID, moving it from draft status to submitted in ERPNext.

Instructions

Submit a 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": {
      "name": "<name>"
    },
    "name": "erpnext_submit_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTimesheet ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose that submitting is a state-changing workflow action in ERPNext, whether it is reversible (cancel_timesheet exists as a sibling but is not referenced), whether it triggers approval routing, or what the result looks like.

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, front-loaded sentence with no filler, and the key qualifier 'draft' appears immediately. It is efficient but so terse that conciseness shades into under-specification.

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 a mutation tool with zero annotations and no output schema, the definition omits what an agent most needs: the state transition being performed, whether it can be undone, error conditions for non-draft IDs, and what is returned. The one-parameter schema is simple, but the behavioral gaps are significant.

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?

There is a single parameter with 100% schema description coverage ('Timesheet ID'), so the schema already explains it. The description adds only the implicit constraint that the ID must refer to a draft timesheet, which is marginal value over the structured field.

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 ('Submit') and resource ('timesheet'), and the qualifier 'draft' scopes it to unsubmitted records, which separates it from create_timesheet, get_timesheet, and cancel_timesheet. It does not explicitly name or contrast with any sibling, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The word 'draft' implies a precondition (the timesheet must already exist in draft state), but there is no explicit when-to-use guidance, no statement of what to do instead for non-draft timesheets, and no mention of prerequisites such as an employee record or approval flow.

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