veryfront__create_agent_label
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 |
|---|---|---|---|
agent_id | string | Yes | Provide the agent id. Minimum length: 1. |
source_target_kind | string or null | No | Source target: project, main_branch, or preview_branch. Null and omission select project. |
target_branch_id | string or null | No | Provide the target branch id. |
key | string | Yes | Required label key. Trimmed and lowercased; starts with a letter or number and allows letters, numbers, dot, underscore and dash. Minimum length: 1. Maximum length: 64. |
value | string or null | No | Label value. Trimmed; a supplied blank value is invalid. Omit or use null for a key-only label, including on replacement. |
color | string or null | No | Display color. Omit, use null or supply a blank string to clear it, including on replacement. |
project_reference | string | No | Project identifier or slug that scopes the tool call. Minimum length: 1. |
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_agent_label",7 "arguments": {8 "agent_id": "example",9 "key": "example"10 }11 }12}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 | Label UUID. Format: uuid. |
resource_kind | string | Yes | Resource to which the label is assigned. Values: "project", "project_agent". |
project_id | string | Yes | Project UUID containing the labeled resource. Format: uuid. |
source_target_kind | string or null | No | The source target kind returned by the tool. |
source_agent_id | string or null | No | The source agent id returned by the tool. |
namespace | string | Yes | Normalized label namespace. API-created labels use user. |
key | string | Yes | Normalized lowercase label key. |
value | string or null | Yes | Trimmed label value, or null for a key-only label. |
color | string or null | No | Trimmed display color, or null when unset. |
created_at | string | Yes | Creation time as an ISO 8601 timestamp. |
updated_at | string | Yes | Last update time as an ISO 8601 timestamp. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "agent_id": {5 "type": "string",6 "minLength": 1,7 "description": "Provide the agent id."8 },9 "source_target_kind": {10 "anyOf": [11 {12 "type": "string",13 "enum": [14 "project",15 "main_branch",16 "preview_branch"17 ],18 "description": "Provide the source target kind."19 },20 {21 "type": "null",22 "description": "Provide the source target kind."23 }24 ],25 "description": "Source target: project, main_branch, or preview_branch. Null and omission select project."26 },27 "target_branch_id": {28 "anyOf": [29 {30 "type": "string",31 "format": "uuid",32 "description": "Provide the target branch id."33 },34 {35 "type": "null",36 "description": "Provide the target branch id."37 }38 ],39 "description": "Provide the target branch id."40 },41 "key": {42 "type": "string",43 "minLength": 1,44 "maxLength": 64,45 "description": "Required label key. Trimmed and lowercased; starts with a letter or number and allows letters, numbers, dot, underscore and dash."46 },47 "value": {48 "anyOf": [49 {50 "type": "string",51 "maxLength": 128,52 "description": "Provide the value."53 },54 {55 "type": "null",56 "description": "Provide the value."57 }58 ],59 "description": "Label value. Trimmed; a supplied blank value is invalid. Omit or use null for a key-only label, including on replacement."60 },61 "color": {62 "anyOf": [63 {64 "type": "string",65 "maxLength": 32,66 "description": "Provide the color."67 },68 {69 "type": "null",70 "description": "Provide the color."71 }72 ],73 "description": "Display color. Omit, use null or supply a blank string to clear it, including on replacement."74 },75 "project_reference": {76 "type": "string",77 "minLength": 1,78 "description": "Project identifier or slug that scopes the tool call."79 }80 },81 "required": [82 "agent_id",83 "key"84 ],85 "additionalProperties": false,86 "$schema": "http://json-schema.org/draft-07/schema#",87 "description": "Arguments for the create_agent_label tool."88}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "format": "uuid",7 "description": "Label UUID."8 },9 "resource_kind": {10 "type": "string",11 "enum": [12 "project",13 "project_agent"14 ],15 "description": "Resource to which the label is assigned."16 },17 "project_id": {18 "type": "string",19 "format": "uuid",20 "description": "Project UUID containing the labeled resource."21 },22 "source_target_kind": {23 "type": [24 "string",25 "null"26 ],27 "description": "The source target kind returned by the tool."28 },29 "source_agent_id": {30 "type": [31 "string",32 "null"33 ],34 "description": "The source agent id returned by the tool."35 },36 "namespace": {37 "type": "string",38 "description": "Normalized label namespace. API-created labels use user."39 },40 "key": {41 "type": "string",42 "description": "Normalized lowercase label key."43 },44 "value": {45 "type": [46 "string",47 "null"48 ],49 "description": "Trimmed label value, or null for a key-only label."50 },51 "color": {52 "type": [53 "string",54 "null"55 ],56 "description": "Trimmed display color, or null when unset."57 },58 "created_at": {59 "type": "string",60 "description": "Creation time as an ISO 8601 timestamp."61 },62 "updated_at": {63 "type": "string",64 "description": "Last update time as an ISO 8601 timestamp."65 }66 },67 "required": [68 "id",69 "resource_kind",70 "project_id",71 "namespace",72 "key",73 "value",74 "created_at",75 "updated_at"76 ],77 "additionalProperties": false,78 "$schema": "http://json-schema.org/draft-07/schema#",79 "description": "Structured result returned by the create_agent_label tool."80}