Skip to main content
Glama

create_webhook

Create a new ERPNext webhook for a target DocType and URL in standard or smart mode, with validation and security checks.

Instructions

Create a new Webhook in ERPNext (unified – use mode = 'standard' | 'smart')

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": {
      "webhook_doctype": "<webhook_doctype>",
      "webhook_url": "<webhook_url>"
    },
    "name": "create_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoCreation mode: 'smart' (default) or 'standard' (legacy). Smart mode performs validation & security.smart
enabledNoEnabled (1/0, optional)
timeoutNoTimeout in seconds (optional)
conditionNoCondition (optional)
webhook_urlYesWebhook URL
webhook_eventsNoEvents to trigger webhook on (smart mode)
request_headersNoRequest headers (optional)
webhook_doctypeYesTarget DocType
request_structureNoRequest structure (Form URL-Encoded/JSON, optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 burden. It says nothing about permissions required, whether creation is idempotent, what happens on duplicate URLs, or that smart mode performs validation and security checks — that fact only appears buried in a parameter description.

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 front-loaded sentence with no filler, which is good. It is arguably over-compressed for a nine-parameter creation tool, but nothing is redundant or wasteful.

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?

This is a nine-parameter mutation tool with a nested object, two required fields, and no annotations or output schema. One sentence is not enough to clarify essential behavior such as which fields only apply in smart mode (`webhook_events`) or what a successful creation returns.

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?

With 100% schema description coverage, the schema already documents all nine parameters including the mode enum and its default. The description merely echoes the mode values, adding no format, constraint, or dependency information beyond what the structured schema provides.

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 names a specific verb and resource ('Create a new Webhook in ERPNext') and flags that it is a unified entry point controlled by `mode`. It does not, however, distinguish itself from the sibling create_smart_webhook, so an agent cannot tell whether this tool replaces or supplements it.

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 parenthetical gives a hint about choosing between 'standard' and 'smart' modes, but there is no explicit when-to-use, when-not-to-use, or alternative-tool guidance. It is only implied that smart mode is preferred (it is described as the default elsewhere in the schema), leaving routing decisions to inference.

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