veryfront__create_project_resource
Requires project.files.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 |
id | string | Yes | Resource ID, unique among the project resources. Minimum length: 1. |
pattern | string | Yes | URI pattern the resource answers, such as /users/:userId/profile. Minimum length: 1. |
description | string | Yes | What the resource returns. Minimum length: 1. |
title | string or null | No | Display title. Omit it or send null for no title. |
source_target_kind | string | No | The source to write: project (the default) or preview_branch. Values: "project", "preview_branch". |
target_branch_id | string or null | No | The preview branch to write. Required with preview_branch and not accepted with project. |
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_project_resource",7 "arguments": {8 "id": "example",9 "pattern": "example",10 "description": "example"11 }12 }13}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 |
|---|---|---|---|
id | string | Yes | Unique identifier for the returned record. |
pattern | string | Yes | |
description | string | Yes | Human-readable description returned by the tool. |
title | string or null | Yes | Short human-readable title returned by the tool. |
source_path | string | Yes | |
source | string | Yes | |
edit_mode | string | Yes | Values: "structured", "source_only". |
source_only_reasons | string[] | Yes | List of source only reasons associated with this tool result. |
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 "id": {9 "type": "string",10 "minLength": 1,11 "description": "Resource ID, unique among the project resources."12 },13 "pattern": {14 "type": "string",15 "minLength": 1,16 "description": "URI pattern the resource answers, such as /users/:userId/profile."17 },18 "description": {19 "type": "string",20 "minLength": 1,21 "description": "What the resource returns."22 },23 "title": {24 "type": [25 "string",26 "null"27 ],28 "description": "Display title. Omit it or send null for no title."29 },30 "source_target_kind": {31 "type": "string",32 "enum": [33 "project",34 "preview_branch"35 ],36 "description": "The source to write: project (the default) or preview_branch."37 },38 "target_branch_id": {39 "anyOf": [40 {41 "type": "string",42 "format": "uuid",43 "description": "Provide the target branch id."44 },45 {46 "type": "null",47 "description": "Provide the target branch id."48 }49 ],50 "description": "The preview branch to write. Required with preview_branch and not accepted with project."51 }52 },53 "required": [54 "id",55 "pattern",56 "description"57 ],58 "additionalProperties": false,59 "description": "Arguments for the create_project_resource tool.",60 "$schema": "http://json-schema.org/draft-07/schema#"61}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Unique identifier for the returned record."7 },8 "pattern": {9 "type": "string"10 },11 "description": {12 "type": "string",13 "description": "Human-readable description returned by the tool."14 },15 "title": {16 "type": [17 "string",18 "null"19 ],20 "description": "Short human-readable title returned by the tool."21 },22 "source_path": {23 "type": "string"24 },25 "source": {26 "type": "string"27 },28 "edit_mode": {29 "type": "string",30 "enum": [31 "structured",32 "source_only"33 ]34 },35 "source_only_reasons": {36 "type": "array",37 "items": {38 "type": "string"39 },40 "description": "List of source only reasons associated with this tool result."41 }42 },43 "required": [44 "id",45 "pattern",46 "description",47 "title",48 "source_path",49 "source",50 "edit_mode",51 "source_only_reasons"52 ],53 "additionalProperties": false,54 "description": "Structured result returned by the create_project_resource tool.",55 "$schema": "http://json-schema.org/draft-07/schema#"56}