Langfuse 4.87.0 lets AI services find slow jobs by numeric metadata

Original diagram: Langfuse previously accepted text metadata filters through these MCP tools; the new explicit numeric filter can compare a recorded duration of 2500 milliseconds with a 2000 millisecond threshold. Illustrative values, not a benchmark. Source: Langfuse PR 20751.

On November 26, 2026, Langfuse released version 4.87.0, allowing two of its Model Context Protocol (MCP) observation tools to filter custom metadata as numbers. For developers running an AI-powered service, the change makes it easier to select slow or expensive jobs for evaluation without treating every value as text.

The stable release was published at 11:22 UTC (6:22 a.m. New York time). The implementation notes also document a breaking change to filter-schema discovery.

Why numbers matter in an AI service

Langfuse records observations, such as individual model calls and tool executions. Developers can attach custom metadata to these records. Imagine a document-processing service that records its own end-to-end duration as processing_ms. A developer might want to review jobs taking more than two seconds instead of inspecting every successful request.

The new explicit numberObject filter is accepted by the MCP tools listObservations and runBatchEvaluation. It supports equality and the usual greater-than and less-than comparisons. The underlying numeric predicate already existed; this release exposes it through these MCP tools.

An example: select jobs above two seconds

For an application that already records numeric processing_ms metadata, specify the numberObject type, metadata column, processing_ms key, greater-than operator, and a numeric value of 2000.

Example duration (ms) Selected?
750 No
2000 No
2500 Yes

Illustrative values, not measured performance. The featured figure compares text filtering with numerical filtering. Source: Langfuse PR 20751.

A developer could use this to investigate delays in a recurring report or document-analysis service, then determine whether a slow model call, file conversion or another step deserves optimization. A filter itself does not diagnose a delay or reduce the cost of evaluation. It selects records that match the condition.

Existing MCP integrations need a compatibility check

The release changes the output of getObservationFilterSchema. Previously, each column exposed a flat type and operators field. Now each column exposes a types array; metadata has entries for both string and numeric filters. This applies to every column, not just metadata. Clients that read the old fields directly need to update their schema parsing.

Omitting the explicit numeric type still defaults metadata filters to strings. Other filter surfaces, including evaluation-rule filters, are outside this change. The developer reported passing 206 server tests and unchanged SQL snapshots. INGOAMPT has not independently run the release or benchmarked a production service.

What to check before offering a paid service

Record a consistently typed numeric field and its unit, confirm that your installed integration exposes the new schema, and test both matching and nonmatching records before running batch evaluations. Keep evaluation requests and their costs separate from customer billing. This proposed operational workflow is not evidence of sales or a free hosted plan. Local model inference does not guarantee that traces are kept local; check where observation data is sent and retained.

For a related reliability decision, read how recurring AI jobs recover after failures. See the INGOAMPT AI News briefing for more developer releases.