Skip to main content
GET /filter/schema returns the fields the caller may reference in a POST /traces/query filter, together with each field’s type and operators. LightShip MCP exposes the same information through lightship_filter_schema. Structural columns selected in the source binding appear in Setup → Fields alongside other table columns. An administrator enables Searchable on them through the same field configuration used for every other filter.

Endpoint

Authentication: session cookie or Authorization: Bearer lsk_....

Response

array
Field descriptors for every field the caller may reference. Each field has map (empty on scalar columns), name, ref (the full identifier used in filters and policies, for example SpanAttributes["user.id"]), type (one of string, string_array, boolean, number), and operators (present only when the field is filterable). Admins additionally see filterable and policy booleans so they can tell which fields carry which capability.
integer
Access model version. Increments on every change.
object
Server-enforced ceilings: max_conditions per filter, max_values per condition, and max_limit for a page of traces.
string
Plain-English summary of how conditions combine and match. Conditions AND together, and a condition matches a trace when any of its spans satisfies it.

Example response

Example