# Get trace

Tool: `veryfront__get_project_trace`

Get a trace. Requires project.logs.read.

## Arguments

| Name                | Type   | Required | Description          |
| ------------------- | ------ | -------- | -------------------- |
| `project_reference` | string |          | Project ID or slug   |
| `trace_id`          | string | Yes      | Trace ID to inspect. |

## 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__get_project_trace",
    "arguments": {
      "trace_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"trace_id\":\"string\",\"root_span_name\":\"string\",\"root_service\":\"string\",\"started_at\":\"string\",\"duration_ms\":0,\"status\":\"ok\",\"span_count\":0,\"services\":[\"string\"],\"project_id\":\"string\",\"project_slug\":\"string\",\"environment\":\"string\",\"host\":\"string\",\"root_span_id\":\"string\",\"spans\":[{\"span_id\":\"string\",\"parent_span_id\":\"string\",\"name\":\"string\",\"service\":\"string\",\"started_at\":\"string\",\"ended_at\":\"string\",\"duration_ms\":0,\"status\":\"ok\",\"status_message\":\"string\",\"attributes\":{},\"events\":[{\"name\":\"string\",\"timestamp\":\"string\",\"attributes\":{}}]}]}"
      }
    ],
    "structuredContent": {
      "trace_id": "string",
      "root_span_name": "string",
      "root_service": "string",
      "started_at": "string",
      "duration_ms": 0,
      "status": "ok",
      "span_count": 0,
      "services": [
        "string"
      ],
      "project_id": "string",
      "project_slug": "string",
      "environment": "string",
      "host": "string",
      "root_span_id": "string",
      "spans": [
        {
          "span_id": "string",
          "parent_span_id": "string",
          "name": "string",
          "service": "string",
          "started_at": "string",
          "ended_at": "string",
          "duration_ms": 0,
          "status": "ok",
          "status_message": "string",
          "attributes": {},
          "events": [
            {
              "name": "string",
              "timestamp": "string",
              "attributes": {}
            }
          ]
        }
      ]
    }
  }
}
```
