# Create conversation message

Tool: `veryfront__create_conversation_message`

Add a user message to a conversation to send what the user typed; the parent message defaults to the selected branch and an idempotency key makes retries safe.

## Arguments

| Name                | Type                    | Required | Description                                      |
| ------------------- | ----------------------- | -------- | ------------------------------------------------ |
| `conversation_id`   | string · uuid           | Yes      | Conversation identifier that scopes the request. |
| `composing_user_id` | string · uuid           |          | Provide the composing user id.                   |
| `parent_id`         | string · uuid           |          | Provide the parent id.                           |
| `role`              | string · default user   |          | Provide the role.                                |
| `parts`             | array of object         | Yes      | Provide one or more part values.                 |
| `idempotency_key`   | string · max length 255 |          | Provide the idempotency key.                     |
| `metadata`          | object                  |          | Additional structured metadata for the request.  |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_conversation_message",
    "arguments": {
      "conversation_id": "00000000-0000-0000-0000-000000000000",
      "parts": [
        {
          "type": "text",
          "text": "string"
        }
      ]
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"conversation_id\":\"string\",\"parent_id\":\"string\",\"seq\":0,\"role\":\"user\",\"created_by\":\"string\",\"sender_type\":\"user\",\"sender_id\":\"string\",\"sender_display_name\":\"string\",\"parts\":[{\"type\":\"text\",\"text\":\"string\"}],\"model\":\"string\",\"run_usage\":{\"funding\":\"managed\",\"capture_status\":\"complete\",\"scope\":\"run\",\"model\":\"string\",\"input_tokens\":0,\"output_tokens\":0,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"reasoning_tokens\":0,\"total_tokens\":0,\"model_calls\":0,\"cost_credits\":\"string\"},\"token_usage\":{\"input\":0,\"output\":0,\"reasoning_tokens\":0},\"finish_reason\":\"string\",\"cost_credits\":\"string\",\"status\":\"pending\",\"edited_at\":\"string\",\"idempotency_key\":\"string\",\"metadata\":{},\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "conversation_id": "string",
      "parent_id": "string",
      "seq": 0,
      "role": "user",
      "created_by": "string",
      "sender_type": "user",
      "sender_id": "string",
      "sender_display_name": "string",
      "parts": [
        {
          "type": "text",
          "text": "string"
        }
      ],
      "model": "string",
      "run_usage": {
        "funding": "managed",
        "capture_status": "complete",
        "scope": "run",
        "model": "string",
        "input_tokens": 0,
        "output_tokens": 0,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 0,
        "reasoning_tokens": 0,
        "total_tokens": 0,
        "model_calls": 0,
        "cost_credits": "string"
      },
      "token_usage": {
        "input": 0,
        "output": 0,
        "reasoning_tokens": 0
      },
      "finish_reason": "string",
      "cost_credits": "string",
      "status": "pending",
      "edited_at": "string",
      "idempotency_key": "string",
      "metadata": {},
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
