Update prompt

veryfront__update_prompt

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

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug
prompt_idstringYesProvide the prompt id. Minimum length: 1.
descriptionstring or nullNoPrompt description. Null clears it. When omitted, REST and GraphQL clear it and the MCP tool keeps the current one.
contentstringYesPrompt text. Minimum length: 1.
source_target_kindstringNoWhere to write the prompt file: project (the default) or preview_branch. Other values are rejected.
target_branch_idstring or nullNoPreview branch to use. Required for the preview_branch target; rejected for any other target.

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
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__update_prompt",    "arguments": {      "prompt_id": "example",      "content": "example"    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
idstringYesUnique identifier for the returned record.
namestringYesHuman-readable name for the returned record.
descriptionstring or nullYesHuman-readable description returned by the tool.
contentstring or nullYesSource content or body returned by the tool.
source_pathstringYes
sourcestringYes
edit_modestringYesValues: "structured", "source_only".
source_only_reasonsstring[]YesList of source only reasons associated with this tool result.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project ID or slug"    },    "prompt_id": {      "type": "string",      "minLength": 1,      "description": "Provide the prompt id."    },    "description": {      "type": [        "string",        "null"      ],      "description": "Prompt description. Null clears it. When omitted, REST and GraphQL clear it and the MCP tool keeps the current one."    },    "content": {      "type": "string",      "minLength": 1,      "description": "Prompt text."    },    "source_target_kind": {      "type": "string",      "description": "Where to write the prompt file: project (the default) or preview_branch. Other values are rejected."    },    "target_branch_id": {      "anyOf": [        {          "type": "string",          "format": "uuid",          "description": "Provide the target branch id."        },        {          "type": "null",          "description": "Provide the target branch id."        }      ],      "description": "Preview branch to use. Required for the preview_branch target; rejected for any other target."    }  },  "required": [    "prompt_id",    "content"  ],  "additionalProperties": false,  "description": "Arguments for the update_prompt tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "id": {      "type": "string",      "description": "Unique identifier for the returned record."    },    "name": {      "type": "string",      "description": "Human-readable name for the returned record."    },    "description": {      "type": [        "string",        "null"      ],      "description": "Human-readable description returned by the tool."    },    "content": {      "type": [        "string",        "null"      ],      "description": "Source content or body returned by the tool."    },    "source_path": {      "type": "string"    },    "source": {      "type": "string"    },    "edit_mode": {      "type": "string",      "enum": [        "structured",        "source_only"      ]    },    "source_only_reasons": {      "type": "array",      "items": {        "type": "string"      },      "description": "List of source only reasons associated with this tool result."    }  },  "required": [    "id",    "name",    "description",    "content",    "source_path",    "source",    "edit_mode",    "source_only_reasons"  ],  "additionalProperties": false,  "description": "Structured result returned by the update_prompt tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}