List trace spans

veryfront__list_project_trace_spans

Requires project.logs.read.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Read-only.

Arguments

FieldTypeRequiredDescription and constraints
cursorstringNoOpaque continuation from page_info.next or page_info.prev.
limitintegerNoMax spans to return (default: 200, max: 1000). Default: 200. Minimum: 1. Maximum: 1000.
statusstringNoOptional span status filter. Use ok, error, unset, or unknown. Values: "ok", "error", "unset", "unknown".
sort_orderstringNoOrder by span start time. Defaults to "asc". Default: "asc". Values: "asc", "desc".
project_referencestringNoProject ID or slug
trace_idstringYesTrace ID to page through.

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.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_project_trace_spans",
    "arguments": {
      "trace_id": "example"
    }
  }
}

Result

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

FieldTypeRequiredDescription and constraints
dataobject[]YesPrimary result records returned by the tool.
page_infoobjectYesPagination cursor values for traversing the result set.

Full schemas

json
{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "description": "Opaque continuation from page_info.next or page_info.prev."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "Max spans to return (default: 200, max: 1000).",
      "default": 200
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "error",
        "unset",
        "unknown"
      ],
      "description": "Optional span status filter. Use ok, error, unset, or unknown."
    },
    "sort_order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Order by span start time. Defaults to \"asc\".",
      "default": "asc"
    },
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "trace_id": {
      "type": "string",
      "description": "Trace ID to page through."
    }
  },
  "required": [
    "trace_id"
  ],
  "additionalProperties": false,
  "description": "Use when get_project_trace reports more spans than it returns, or with status error to retrieve every error span. Spans are ordered by start time.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "span_id": {
            "type": "string"
          },
          "parent_span_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the returned record."
          },
          "service": {
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "ended_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_ms": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "unset",
              "unknown"
            ],
            "description": "Lifecycle status for the returned record."
          },
          "status_message": {
            "type": [
              "string",
              "null"
            ]
          },
          "attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Additional structured values associated with this result."
            },
            "description": "Structured attributes details associated with this tool result."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Human-readable name for the returned record."
                },
                "timestamp": {
                  "type": "string"
                },
                "attributes": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string",
                    "description": "Additional structured values associated with this result."
                  },
                  "description": "Structured attributes details associated with this tool result."
                }
              },
              "required": [
                "name",
                "timestamp",
                "attributes"
              ],
              "additionalProperties": false
            },
            "description": "List of events associated with this tool result."
          }
        },
        "required": [
          "span_id",
          "parent_span_id",
          "name",
          "service",
          "started_at",
          "ended_at",
          "duration_ms",
          "status",
          "status_message",
          "attributes",
          "events"
        ],
        "additionalProperties": false
      },
      "description": "Primary result records returned by the tool."
    },
    "page_info": {
      "type": "object",
      "properties": {
        "self": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor that refers to the current page."
        },
        "first": {
          "type": "null"
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the next page when pagination is available."
        },
        "prev": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the previous page when pagination is available."
        }
      },
      "required": [
        "self",
        "first",
        "next",
        "prev"
      ],
      "additionalProperties": false,
      "description": "Pagination cursor values for traversing the result set."
    }
  },
  "required": [
    "data",
    "page_info"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the list_project_trace_spans tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}