veryfront__create_webhook
Requires project.agents.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug. |
name | string | Yes | Webhook name, 1-120 characters. Minimum length: 1. Maximum length: 120. |
target | object | Yes | Target invoked by a webhook definition. |
prompt_template | string | No | Prompt template for run targets: required unless target.kind is event, where it is not supported. Minimum length: 1. Maximum length: 20000. |
event_filter | object or null | No | Optional incoming event filter. Missing, null, or empty conditions accept every event. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__create_webhook",7 "arguments": {8 "name": "example",9 "target": {10 "kind": "agent",11 "id": "example"12 }13 }14 }15}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
webhook | object | Yes | Structured webhook details associated with this record. |
webhook_secret | string | Yes | Secret for the X-Veryfront-Webhook-Secret header. Returned only once, on create; store it now. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug."7 },8 "name": {9 "type": "string",10 "minLength": 1,11 "maxLength": 120,12 "description": "Webhook name, 1-120 characters."13 },14 "target": {15 "type": "object",16 "properties": {17 "kind": {18 "type": "string",19 "enum": [20 "agent",21 "task",22 "workflow",23 "event"24 ],25 "description": "Target kind invoked or stored by the webhook."26 },27 "id": {28 "type": "string",29 "minLength": 1,30 "maxLength": 128,31 "description": "Target identifier: agent id, task target, workflow id, or event for store-only webhooks."32 },33 "conversation_mode": {34 "type": "string",35 "enum": [36 "create_new",37 "existing",38 "none"39 ],40 "description": "Conversation behaviour for an agent target. Defaults to none. Use create_new for an agent that delegates with invoke_agent - a run with no conversation cannot be paused for delegation. Agent targets run headlessly by default; create_new or existing creates or appends a conversation message. Agent targets with conversation mode create_new or existing also require project.conversations.write."41 },42 "conversation_id": {43 "anyOf": [44 {45 "type": "string",46 "format": "uuid",47 "description": "Conversation identifier associated with the record."48 },49 {50 "type": "null",51 "description": "Conversation identifier that scopes the request."52 }53 ],54 "description": "Existing conversation to continue. Only allowed when conversation_mode is existing, and required in that case."55 }56 },57 "required": [58 "kind",59 "id"60 ],61 "additionalProperties": false,62 "description": "Target invoked by a webhook definition."63 },64 "prompt_template": {65 "type": "string",66 "minLength": 1,67 "maxLength": 20000,68 "description": "Prompt template for run targets: required unless target.kind is event, where it is not supported."69 },70 "event_filter": {71 "anyOf": [72 {73 "type": "object",74 "properties": {75 "mode": {76 "type": "string",77 "enum": [78 "all",79 "any"80 ],81 "description": "Whether all or any filter conditions must match."82 },83 "conditions": {84 "type": "array",85 "items": {86 "type": "object",87 "properties": {88 "path": {89 "type": "string",90 "minLength": 1,91 "maxLength": 255,92 "description": "Dot path in the incoming payload, for example action or pull_request.state."93 },94 "operator": {95 "type": "string",96 "enum": [97 "equals",98 "not_equals",99 "in",100 "exists",101 "contains"102 ],103 "description": "Comparison operator."104 },105 "value": {106 "description": "Comparison value for operators that require one."107 }108 },109 "required": [110 "path",111 "operator"112 ],113 "additionalProperties": false,114 "description": "One condition item associated with this record."115 },116 "maxItems": 50,117 "description": "Filter conditions applied before webhook work is created."118 }119 },120 "required": [121 "mode",122 "conditions"123 ],124 "additionalProperties": false,125 "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."126 },127 {128 "type": "null",129 "description": "Provide the event filter."130 }131 ],132 "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."133 }134 },135 "required": [136 "name",137 "target"138 ],139 "additionalProperties": false,140 "$schema": "http://json-schema.org/draft-07/schema#",141 "description": "Arguments for the create_webhook tool."142}output-schema.json
1{2 "type": "object",3 "properties": {4 "webhook": {5 "type": "object",6 "properties": {7 "id": {8 "type": "string",9 "format": "uuid",10 "description": "The webhook id. Pass it as webhook_id to the other webhook operations."11 },12 "project_id": {13 "type": "string",14 "format": "uuid",15 "description": "Project identifier associated with the record."16 },17 "name": {18 "type": "string",19 "description": "Human-readable name for the record."20 },21 "source": {22 "type": "string",23 "const": "webhook",24 "description": "The source associated with this record."25 },26 "target": {27 "type": "object",28 "properties": {29 "kind": {30 "type": "string",31 "enum": [32 "agent",33 "task",34 "workflow",35 "event"36 ],37 "description": "Target kind invoked or stored by the webhook."38 },39 "id": {40 "type": "string",41 "minLength": 1,42 "maxLength": 128,43 "description": "Target identifier: agent id, task target, workflow id, or event for store-only webhooks."44 },45 "conversation_mode": {46 "type": "string",47 "enum": [48 "create_new",49 "existing",50 "none"51 ],52 "description": "Conversation behaviour for an agent target. Defaults to none. Use create_new for an agent that delegates with invoke_agent - a run with no conversation cannot be paused for delegation. Agent targets run headlessly by default; create_new or existing creates or appends a conversation message. Agent targets with conversation mode create_new or existing also require project.conversations.write."53 },54 "conversation_id": {55 "anyOf": [56 {57 "type": "string",58 "format": "uuid",59 "description": "Conversation identifier associated with the record."60 },61 {62 "type": "null",63 "description": "Conversation identifier associated with this result."64 }65 ],66 "description": "Existing conversation to continue. Only allowed when conversation_mode is existing, and required in that case."67 }68 },69 "required": [70 "kind",71 "id"72 ],73 "additionalProperties": false,74 "description": "Structured target details associated with this record."75 },76 "prompt_template": {77 "type": [78 "string",79 "null"80 ],81 "description": "The prompt template associated with this record."82 },83 "event_filter": {84 "anyOf": [85 {86 "type": "object",87 "properties": {88 "mode": {89 "type": "string",90 "enum": [91 "all",92 "any"93 ],94 "description": "Whether all or any filter conditions must match."95 },96 "conditions": {97 "type": "array",98 "items": {99 "type": "object",100 "properties": {101 "path": {102 "type": "string",103 "minLength": 1,104 "maxLength": 255,105 "description": "Dot path in the incoming payload, for example action or pull_request.state."106 },107 "operator": {108 "type": "string",109 "enum": [110 "equals",111 "not_equals",112 "in",113 "exists",114 "contains"115 ],116 "description": "Comparison operator."117 },118 "value": {119 "description": "Comparison value for operators that require one."120 }121 },122 "required": [123 "path",124 "operator"125 ],126 "additionalProperties": false,127 "description": "One condition item associated with this record."128 },129 "maxItems": 50,130 "description": "Filter conditions applied before webhook work is created."131 }132 },133 "required": [134 "mode",135 "conditions"136 ],137 "additionalProperties": false,138 "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."139 },140 {141 "type": "null",142 "description": "The event filter returned by the tool."143 }144 ],145 "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."146 },147 "status": {148 "type": "string",149 "enum": [150 "draft",151 "enabled",152 "disabled"153 ],154 "description": "Lifecycle status for the record."155 },156 "runtime_target_kind": {157 "type": "string",158 "enum": [159 "main_branch",160 "environment",161 "preview_branch"162 ],163 "description": "The runtime target kind associated with this record."164 },165 "runtime_target_environment_id": {166 "anyOf": [167 {168 "type": "string",169 "format": "uuid",170 "description": "The runtime target environment id associated with this record."171 },172 {173 "type": "null",174 "description": "The runtime target environment id returned by the tool."175 }176 ],177 "description": "The runtime target environment id associated with this record."178 },179 "runtime_target_branch_id": {180 "anyOf": [181 {182 "type": "string",183 "format": "uuid",184 "description": "The runtime target branch id associated with this record."185 },186 {187 "type": "null",188 "description": "The runtime target branch id returned by the tool."189 }190 ],191 "description": "The runtime target branch id associated with this record."192 },193 "definition_source": {194 "type": "string",195 "enum": [196 "manual",197 "source"198 ],199 "description": "The definition source associated with this record."200 },201 "source_trigger_id": {202 "type": [203 "string",204 "null"205 ],206 "description": "The source trigger id associated with this record."207 },208 "source_path": {209 "type": [210 "string",211 "null"212 ],213 "description": "The source path associated with this record."214 },215 "source_hash": {216 "type": [217 "string",218 "null"219 ],220 "description": "The source hash associated with this record."221 },222 "ingress_id": {223 "type": "string",224 "description": "The public id in webhook_url that external senders post to."225 },226 "webhook_url": {227 "type": "string",228 "description": "The webhook url associated with this record."229 },230 "created_by_user_id": {231 "type": "string",232 "format": "uuid",233 "description": "The created by user id associated with this record."234 },235 "enabled_at": {236 "type": [237 "string",238 "null"239 ],240 "description": "The enabled at associated with this record."241 },242 "disabled_at": {243 "type": [244 "string",245 "null"246 ],247 "description": "The disabled at associated with this record."248 },249 "disabled_reason": {250 "type": [251 "string",252 "null"253 ],254 "description": "The disabled reason associated with this record."255 },256 "created_at": {257 "type": "string",258 "description": "Creation timestamp in ISO 8601 format."259 },260 "updated_at": {261 "type": "string",262 "description": "Last update timestamp in ISO 8601 format."263 }264 },265 "required": [266 "id",267 "project_id",268 "name",269 "source",270 "target",271 "prompt_template",272 "event_filter",273 "status",274 "runtime_target_kind",275 "runtime_target_environment_id",276 "runtime_target_branch_id",277 "definition_source",278 "source_trigger_id",279 "source_path",280 "source_hash",281 "ingress_id",282 "webhook_url",283 "created_by_user_id",284 "enabled_at",285 "disabled_at",286 "disabled_reason",287 "created_at",288 "updated_at"289 ],290 "additionalProperties": false,291 "description": "Structured webhook details associated with this record."292 },293 "webhook_secret": {294 "type": "string",295 "description": "Secret for the X-Veryfront-Webhook-Secret header. Returned only once, on create; store it now."296 }297 },298 "required": [299 "webhook",300 "webhook_secret"301 ],302 "additionalProperties": false,303 "description": "Structured create webhook result output schema for MCP tools.",304 "$schema": "http://json-schema.org/draft-07/schema#"305}