Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_submit_leave_application

Submit a leave application by Leave ID so it can be sent for approval. Use it to move a drafted leave request into the approval workflow.

Instructions

Submit leave application for approval

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

Input Schema

NameRequiredDescriptionDefault
nameYesLeave ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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 behavioral burden. The phrase "for approval" hints at a workflow state transition, but the description never says what state change occurs, whether it is reversible, what permissions are required, or what happens if the application is already submitted — significant gaps for a mutation tool.

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?

A single short sentence with no wasted wording, and the key action is front-loaded. It is efficient, though the terseness is part of why the definition is under-specified rather than a model of clarity.

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 state-changing workflow tool with no annotations and no output schema, the description says nothing about preconditions, effects, or result. The distinction from erpnext_apply_leave is left unresolved, which is the single most important thing an agent needs to choose correctly.

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?

Only one parameter exists and the schema documents it fully as "Leave ID" (100% coverage). The description adds no meaning beyond that, but with complete schema coverage the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Submit leave application" names a specific verb and resource, which is more than a tautology. However, it doesn't distinguish this workflow-submission action from the sibling erpnext_apply_leave (which presumably creates an application) or erpnext_cancel_leave_application, so an agent cannot tell which one turns a leave application into an approved-pending record.

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?

There is no explicit when-to-use guidance, no stated preconditions (e.g., the application must exist in draft state, or must be the caller's own), and no reference to alternative tools. The agent must infer the entire usage context from the tool name.

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