veryfront__create_conversation_message
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 |
|---|---|---|---|
conversation_id | string | Yes | Conversation identifier that scopes the request. Format: uuid. |
composing_user_id | string | No | Provide the composing user id. Format: uuid. |
parent_id | string | No | Provide the parent id. Format: uuid. |
role | string | No | Provide the role. Default: "user". Value: "user". |
parts | object or object or object or object or object or object or object or object or object or object or object[] | Yes | Provide one or more part values. |
idempotency_key | string | No | Provide the idempotency key. Maximum length: 255. |
metadata | object | No | Additional structured metadata for the request. |
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_conversation_message",7 "arguments": {8 "conversation_id": "00000000-0000-4000-8000-000000000000",9 "parts": [10 {11 "type": "text",12 "text": "example"13 }14 ]15 }16 }17}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 | Message identifier. |
conversation_id | string | Yes | Conversation identifier that owns the message. |
parent_id | string or null | No | Parent message identifier when the message belongs to a branch or reply chain. |
seq | number | Yes | Monotonic sequence number within the conversation. |
role | string | Yes | Message role such as user, assistant, tool, or system. Values: "user", "assistant", "tool". |
created_by | string or null | No | User or actor identifier that created the message. |
sender_type | string | No | Sender kind: user, webhook, service_account, integration, agent or system. Default: "user". Values: "user", "webhook", "service_account", "integration", "agent", "system". |
sender_id | string or null | No | Sender identifier: the participant or agent for an agent message, otherwise the author. |
sender_display_name | string or null | No | Human-readable sender name when available. |
parts | object or object or object or object or object or object or object or object or object or object or object[] | Yes | Structured message parts, including text, tool invocations, or rich content blocks. |
model | string or null | No | Model identifier that generated the message, when applicable. |
run_usage | object or null | No | Token usage and cost of the whole run that produced an assistant message; absent when none is recorded. |
token_usage | object or null | No | Token accounting metadata associated with the message. |
finish_reason | string or null | No | Completion finish reason for model-generated messages. |
cost_credits | string or null | No | Credit cost attributed to the message, when tracked. |
status | string | Yes | Lifecycle status of the message. Values: "pending", "streaming", "completed", "failed", "cancelled". |
edited_at | string or null | No | Timestamp when the message was edited, or null when unedited. |
idempotency_key | string or null | No | Idempotency key used to deduplicate message creation requests. |
metadata | object or null | No | Additional machine-readable message metadata. |
created_at | string | Yes | Timestamp when the message was created. |
updated_at | string or null | No | Timestamp when the message was last updated. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "conversation_id": {5 "type": "string",6 "format": "uuid",7 "description": "Conversation identifier that scopes the request."8 },9 "composing_user_id": {10 "type": "string",11 "format": "uuid",12 "description": "Provide the composing user id."13 },14 "parent_id": {15 "type": "string",16 "format": "uuid",17 "description": "Provide the parent id."18 },19 "role": {20 "type": "string",21 "const": "user",22 "description": "Provide the role.",23 "default": "user"24 },25 "parts": {26 "type": "array",27 "items": {28 "anyOf": [29 {30 "type": "object",31 "properties": {32 "type": {33 "type": "string",34 "const": "text",35 "description": "Provide the type."36 },37 "text": {38 "type": "string",39 "maxLength": 100000,40 "description": "Provide the text."41 }42 },43 "required": [44 "type",45 "text"46 ],47 "additionalProperties": false,48 "description": "Structured option 1 details used by the tool."49 },50 {51 "type": "object",52 "properties": {53 "type": {54 "type": "string",55 "const": "image",56 "description": "Provide the type."57 },58 "upload_id": {59 "type": "string",60 "format": "uuid",61 "description": "Provide the upload id."62 },63 "media_type": {64 "type": "string",65 "description": "Provide the media type."66 },67 "url": {68 "type": "string",69 "description": "Provide the url."70 }71 },72 "required": [73 "type",74 "upload_id",75 "media_type"76 ],77 "additionalProperties": false,78 "description": "Structured option 2 details used by the tool."79 },80 {81 "type": "object",82 "properties": {83 "type": {84 "type": "string",85 "const": "file",86 "description": "Provide the type."87 },88 "upload_id": {89 "type": "string",90 "format": "uuid",91 "description": "Provide the upload id."92 },93 "media_type": {94 "type": "string",95 "description": "Provide the media type."96 },97 "filename": {98 "type": "string",99 "description": "Provide the filename."100 },101 "url": {102 "type": "string",103 "description": "Provide the url."104 }105 },106 "required": [107 "type",108 "media_type"109 ],110 "additionalProperties": false,111 "description": "Structured option 3 details used by the tool."112 },113 {114 "type": "object",115 "properties": {116 "type": {117 "type": "string",118 "const": "tool_call",119 "description": "Provide the type."120 },121 "id": {122 "type": "string",123 "description": "Unique identifier for the target record."124 },125 "name": {126 "type": "string",127 "description": "Human-readable name for the target record."128 },129 "input": {130 "type": "object",131 "additionalProperties": {132 "description": "Additional structured values supplied to the tool."133 },134 "description": "Structured input details used by the tool."135 },136 "state": {137 "type": "string",138 "enum": [139 "streaming",140 "pending",141 "completed",142 "error"143 ],144 "description": "Provide the state."145 }146 },147 "required": [148 "type",149 "id",150 "name",151 "input",152 "state"153 ],154 "additionalProperties": false,155 "description": "Structured option 4 details used by the tool."156 },157 {158 "type": "object",159 "properties": {160 "type": {161 "type": "string",162 "const": "tool_result",163 "description": "Provide the type."164 },165 "tool_call_id": {166 "type": "string",167 "description": "Tool call identifier that links this request to a prior tool invocation."168 },169 "output": {170 "description": "Provide the output."171 },172 "is_error": {173 "type": "boolean",174 "description": "Provide the is error."175 }176 },177 "required": [178 "type",179 "tool_call_id"180 ],181 "additionalProperties": false,182 "description": "Structured option 5 details used by the tool."183 },184 {185 "type": "object",186 "properties": {187 "type": {188 "type": "string",189 "const": "reasoning",190 "description": "Provide the type."191 },192 "text": {193 "type": "string",194 "maxLength": 100000,195 "description": "Provide the text."196 },197 "signature": {198 "type": "string",199 "description": "Provide the signature."200 }201 },202 "required": [203 "type",204 "text"205 ],206 "additionalProperties": false,207 "description": "Structured option 6 details used by the tool."208 },209 {210 "type": "object",211 "properties": {212 "type": {213 "type": "string",214 "const": "citation",215 "description": "Provide the type."216 },217 "source_id": {218 "type": "string",219 "description": "Provide the source id."220 },221 "url": {222 "type": "string",223 "description": "Provide the url."224 },225 "title": {226 "type": "string",227 "description": "Short human-readable title for the record."228 },229 "quote": {230 "type": "string",231 "description": "Provide the quote."232 }233 },234 "required": [235 "type",236 "source_id"237 ],238 "additionalProperties": false,239 "description": "Structured option 7 details used by the tool."240 },241 {242 "type": "object",243 "properties": {244 "type": {245 "type": "string",246 "const": "source_document",247 "description": "Provide the type."248 },249 "source_id": {250 "type": "string",251 "description": "Provide the source id."252 },253 "media_type": {254 "type": "string",255 "description": "Provide the media type."256 },257 "title": {258 "type": "string",259 "description": "Short human-readable title for the record."260 },261 "filename": {262 "type": "string",263 "description": "Provide the filename."264 }265 },266 "required": [267 "type",268 "source_id",269 "media_type",270 "title"271 ],272 "additionalProperties": false,273 "description": "Structured option 8 details used by the tool."274 },275 {276 "type": "object",277 "properties": {278 "type": {279 "type": "string",280 "const": "step_start",281 "description": "Provide the type."282 }283 },284 "required": [285 "type"286 ],287 "additionalProperties": false,288 "description": "Structured option 9 details used by the tool."289 },290 {291 "type": "object",292 "properties": {293 "type": {294 "type": "string",295 "const": "error",296 "description": "Provide the type."297 },298 "code": {299 "type": "string",300 "description": "Provide the code."301 },302 "message": {303 "type": "string",304 "description": "Provide the message."305 }306 },307 "required": [308 "type",309 "code",310 "message"311 ],312 "additionalProperties": false,313 "description": "Structured option 10 details used by the tool."314 },315 {316 "type": "object",317 "properties": {318 "type": {319 "type": "string",320 "const": "data",321 "description": "Provide the type."322 },323 "name": {324 "type": "string",325 "description": "Human-readable name for the target record."326 },327 "value": {328 "description": "Provide the value."329 }330 },331 "required": [332 "type",333 "name"334 ],335 "additionalProperties": false,336 "description": "Structured option 11 details used by the tool."337 }338 ],339 "description": "One part item supplied to the tool."340 },341 "minItems": 1,342 "maxItems": 200,343 "description": "Provide one or more part values."344 },345 "idempotency_key": {346 "type": "string",347 "maxLength": 255,348 "description": "Provide the idempotency key."349 },350 "metadata": {351 "type": "object",352 "additionalProperties": {353 "description": "Additional structured values supplied to the tool."354 },355 "description": "Additional structured metadata for the request."356 }357 },358 "required": [359 "conversation_id",360 "parts"361 ],362 "additionalProperties": false,363 "description": "Arguments for the create_conversation_message tool.",364 "$schema": "http://json-schema.org/draft-07/schema#"365}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Message identifier."7 },8 "conversation_id": {9 "type": "string",10 "description": "Conversation identifier that owns the message."11 },12 "parent_id": {13 "type": [14 "string",15 "null"16 ],17 "description": "Parent message identifier when the message belongs to a branch or reply chain."18 },19 "seq": {20 "type": "number",21 "description": "Monotonic sequence number within the conversation."22 },23 "role": {24 "type": "string",25 "enum": [26 "user",27 "assistant",28 "tool"29 ],30 "description": "Message role such as user, assistant, tool, or system."31 },32 "created_by": {33 "type": [34 "string",35 "null"36 ],37 "description": "User or actor identifier that created the message."38 },39 "sender_type": {40 "type": "string",41 "enum": [42 "user",43 "webhook",44 "service_account",45 "integration",46 "agent",47 "system"48 ],49 "description": "Sender kind: user, webhook, service_account, integration, agent or system.",50 "default": "user"51 },52 "sender_id": {53 "type": [54 "string",55 "null"56 ],57 "description": "Sender identifier: the participant or agent for an agent message, otherwise the author."58 },59 "sender_display_name": {60 "type": [61 "string",62 "null"63 ],64 "description": "Human-readable sender name when available."65 },66 "parts": {67 "type": "array",68 "items": {69 "anyOf": [70 {71 "type": "object",72 "properties": {73 "type": {74 "type": "string",75 "const": "text"76 },77 "text": {78 "type": "string",79 "maxLength": 10000080 }81 },82 "required": [83 "type",84 "text"85 ],86 "additionalProperties": false,87 "description": "Structured option 1 details associated with this tool result."88 },89 {90 "type": "object",91 "properties": {92 "type": {93 "type": "string",94 "const": "image"95 },96 "upload_id": {97 "type": "string",98 "format": "uuid"99 },100 "media_type": {101 "type": "string"102 },103 "url": {104 "type": "string"105 }106 },107 "required": [108 "type",109 "upload_id",110 "media_type"111 ],112 "additionalProperties": false,113 "description": "Structured option 2 details associated with this tool result."114 },115 {116 "type": "object",117 "properties": {118 "type": {119 "type": "string",120 "const": "file"121 },122 "upload_id": {123 "type": "string",124 "format": "uuid"125 },126 "media_type": {127 "type": "string"128 },129 "filename": {130 "type": "string"131 },132 "url": {133 "type": "string"134 }135 },136 "required": [137 "type",138 "media_type"139 ],140 "additionalProperties": false,141 "description": "Structured option 3 details associated with this tool result."142 },143 {144 "type": "object",145 "properties": {146 "type": {147 "type": "string",148 "const": "tool_call"149 },150 "id": {151 "type": "string",152 "description": "Unique identifier for the returned record."153 },154 "name": {155 "type": "string",156 "description": "Human-readable name for the returned record."157 },158 "input": {159 "type": "object",160 "additionalProperties": {161 "description": "Additional structured values associated with this result."162 },163 "description": "Structured input details associated with this tool result."164 },165 "state": {166 "type": "string",167 "enum": [168 "streaming",169 "pending",170 "completed",171 "error"172 ]173 }174 },175 "required": [176 "type",177 "id",178 "name",179 "input",180 "state"181 ],182 "additionalProperties": false,183 "description": "Structured option 4 details associated with this tool result."184 },185 {186 "type": "object",187 "properties": {188 "type": {189 "type": "string",190 "const": "tool_result"191 },192 "tool_call_id": {193 "type": "string",194 "description": "Tool call identifier associated with this result."195 },196 "output": {},197 "is_error": {198 "type": "boolean"199 }200 },201 "required": [202 "type",203 "tool_call_id"204 ],205 "additionalProperties": false,206 "description": "Structured option 5 details associated with this tool result."207 },208 {209 "type": "object",210 "properties": {211 "type": {212 "type": "string",213 "const": "reasoning"214 },215 "text": {216 "type": "string",217 "maxLength": 100000218 },219 "signature": {220 "type": "string"221 }222 },223 "required": [224 "type",225 "text"226 ],227 "additionalProperties": false,228 "description": "Structured option 6 details associated with this tool result."229 },230 {231 "type": "object",232 "properties": {233 "type": {234 "type": "string",235 "const": "citation"236 },237 "source_id": {238 "type": "string"239 },240 "url": {241 "type": "string"242 },243 "title": {244 "type": "string",245 "description": "Short human-readable title returned by the tool."246 },247 "quote": {248 "type": "string"249 }250 },251 "required": [252 "type",253 "source_id"254 ],255 "additionalProperties": false,256 "description": "Structured option 7 details associated with this tool result."257 },258 {259 "type": "object",260 "properties": {261 "type": {262 "type": "string",263 "const": "source_document"264 },265 "source_id": {266 "type": "string"267 },268 "media_type": {269 "type": "string"270 },271 "title": {272 "type": "string",273 "description": "Short human-readable title returned by the tool."274 },275 "filename": {276 "type": "string"277 }278 },279 "required": [280 "type",281 "source_id",282 "media_type",283 "title"284 ],285 "additionalProperties": false,286 "description": "Structured option 8 details associated with this tool result."287 },288 {289 "type": "object",290 "properties": {291 "type": {292 "type": "string",293 "const": "step_start"294 }295 },296 "required": [297 "type"298 ],299 "additionalProperties": false,300 "description": "Structured option 9 details associated with this tool result."301 },302 {303 "type": "object",304 "properties": {305 "type": {306 "type": "string",307 "const": "error"308 },309 "code": {310 "type": "string"311 },312 "message": {313 "type": "string"314 }315 },316 "required": [317 "type",318 "code",319 "message"320 ],321 "additionalProperties": false,322 "description": "Structured option 10 details associated with this tool result."323 },324 {325 "type": "object",326 "properties": {327 "type": {328 "type": "string",329 "const": "data"330 },331 "name": {332 "type": "string",333 "description": "Human-readable name for the returned record."334 },335 "value": {}336 },337 "required": [338 "type",339 "name"340 ],341 "additionalProperties": false,342 "description": "Structured option 11 details associated with this tool result."343 }344 ],345 "description": "One part item associated with this record."346 },347 "description": "Structured message parts, including text, tool invocations, or rich content blocks."348 },349 "model": {350 "type": [351 "string",352 "null"353 ],354 "description": "Model identifier that generated the message, when applicable."355 },356 "run_usage": {357 "anyOf": [358 {359 "type": "object",360 "properties": {361 "funding": {362 "type": "string",363 "enum": [364 "managed",365 "customer",366 "mixed"367 ]368 },369 "capture_status": {370 "type": "string",371 "enum": [372 "complete",373 "partial",374 "missing",375 "unknown"376 ]377 },378 "scope": {379 "type": "string",380 "const": "run"381 },382 "model": {383 "type": [384 "string",385 "null"386 ],387 "description": "AI model id associated with this tool result."388 },389 "input_tokens": {390 "type": "integer",391 "minimum": 0392 },393 "output_tokens": {394 "type": "integer",395 "minimum": 0396 },397 "cache_creation_input_tokens": {398 "type": "integer",399 "minimum": 0400 },401 "cache_read_input_tokens": {402 "type": "integer",403 "minimum": 0404 },405 "reasoning_tokens": {406 "type": "integer",407 "minimum": 0408 },409 "total_tokens": {410 "type": "integer",411 "minimum": 0412 },413 "model_calls": {414 "type": "integer",415 "minimum": 0416 },417 "cost_credits": {418 "type": [419 "string",420 "null"421 ]422 }423 },424 "required": [425 "scope",426 "model",427 "input_tokens",428 "output_tokens",429 "cache_creation_input_tokens",430 "cache_read_input_tokens",431 "reasoning_tokens",432 "total_tokens",433 "model_calls",434 "cost_credits"435 ],436 "additionalProperties": false,437 "description": "Structured run usage details associated with this tool result."438 },439 {440 "type": "null",441 "description": "The run usage returned by the tool."442 }443 ],444 "description": "Token usage and cost of the whole run that produced an assistant message; absent when none is recorded."445 },446 "token_usage": {447 "anyOf": [448 {449 "type": "object",450 "properties": {451 "input": {452 "type": "number"453 },454 "output": {455 "type": "number"456 },457 "reasoning_tokens": {458 "type": "integer",459 "minimum": 0460 }461 },462 "additionalProperties": true,463 "description": "Structured token usage details associated with this tool result."464 },465 {466 "type": "null",467 "description": "The token usage returned by the tool."468 }469 ],470 "description": "Token accounting metadata associated with the message."471 },472 "finish_reason": {473 "type": [474 "string",475 "null"476 ],477 "description": "Completion finish reason for model-generated messages."478 },479 "cost_credits": {480 "type": [481 "string",482 "null"483 ],484 "description": "Credit cost attributed to the message, when tracked."485 },486 "status": {487 "type": "string",488 "enum": [489 "pending",490 "streaming",491 "completed",492 "failed",493 "cancelled"494 ],495 "description": "Lifecycle status of the message."496 },497 "edited_at": {498 "type": [499 "string",500 "null"501 ],502 "description": "Timestamp when the message was edited, or null when unedited."503 },504 "idempotency_key": {505 "type": [506 "string",507 "null"508 ],509 "description": "Idempotency key used to deduplicate message creation requests."510 },511 "metadata": {512 "anyOf": [513 {514 "type": "object",515 "additionalProperties": {516 "description": "Additional structured values associated with this result."517 },518 "description": "Additional structured metadata returned by the tool."519 },520 {521 "type": "null",522 "description": "Additional structured metadata returned by the tool."523 }524 ],525 "description": "Additional machine-readable message metadata."526 },527 "created_at": {528 "type": "string",529 "description": "Timestamp when the message was created."530 },531 "updated_at": {532 "type": [533 "string",534 "null"535 ],536 "description": "Timestamp when the message was last updated."537 }538 },539 "required": [540 "id",541 "conversation_id",542 "seq",543 "role",544 "parts",545 "status",546 "created_at"547 ],548 "additionalProperties": false,549 "description": "Conversation message record returned by MCP conversation tools.",550 "$schema": "http://json-schema.org/draft-07/schema#"551}