Skip to main content
Glama

create_smart_webhook

Create a validated ERPNext webhook for a target DocType and URL, choosing trigger events, headers, condition, timeout, and payload format. Validation and security checks are applied automatically.

Instructions

Create a new Webhook with automatic validation and security features

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

Input Schema

NameRequiredDescriptionDefault
enabledNoWhether webhook is enabled (1/0, optional, defaults to 1)
timeoutNoTimeout in seconds (optional, defaults to 5)
conditionNoCondition for when to trigger webhook (optional)
webhook_urlYesWebhook URL to send data to
webhook_eventsNoEvents to trigger webhook on
request_headersNoRequest headers as key-value pairs (optional)
webhook_doctypeYesTarget DocType for webhook events
request_structureNoRequest structure (Form URL-Encoded/JSON, optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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, yet it only alludes to "automatic validation and security features" without specifying what gets validated, what happens on failure, whether duplicates are rejected, or what permissions are required. For a write tool creating an outbound-data endpoint, this is a significant disclosure gap.

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 zero redundancy and the core action stated first. It is efficient, though the brevity tips toward under-specification rather than optimal conciseness.

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?

With 8 parameters, a nested object (request_headers), an enum parameter, no annotations, and no output schema, the description should explain the smart-validation behavior and return shape. Instead it gives one generic clause, leaving an agent unable to predict side effects or errors.

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 description coverage is 100%, with each of the 8 parameters (including defaults for enabled/timeout and the events enum) documented in the schema itself, so the baseline of 3 applies. The description adds no meaning beyond the schema, such as how condition syntax works or how request_headers interact with request_structure.

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 ("Create a new Webhook") plus a distinguishing qualifier ("automatic validation and security features"), so an agent knows the operation. However, it never clarifies what makes this 'smart' relative to the plain create_webhook sibling, leaving the differentiator vague.

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 description contains no when-to-use guidance: nothing says when this tool should be chosen over create_webhook or any other creation sibling. No prerequisites, no exclusions, no alternative named.

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