sort_by
(string, optional): requestcount (default), throughputrpm, http4xxcount, http5xxcount, or grpcerrorcount.
How to use it
sort_by is exposed by the Last9 MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the sort_by tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Last9 MCP Server
claude mcp add --transport http last9 https://app.last9.io/api/v4/organizations/<org_slug>/mcpOther tools in Last9 MCP Server (39)
/ baselineendtimeiso (string, optional): Explicit baseline. Defaults to the immediately preceding equal-duration window.
(array, optional): e.g. ["timeout", "failed"]. OR logic.
(string, optional): Restrict the comparison to one datasource.
(string, optional): e.g. postgresql, mysql, mongodb, redis.
(string, optional): Filter by environment.
(string, optional): Database host (netpeername).
(string, optional): physicalindex:<name> or rehydrationindex:<blockname>.
(string, required): Label name.
(integer, optional): Max exceptions. Default: 20.
(array, required): JSON pipeline query.
(integer, optional): Default: 60.
(string, optional): PromQL filter.
/ maxoperations (integer, optional): Default 10, max 10 each.
(float, optional): Minimum query duration in ms.
(string, required): The PromQL query.
(string, optional)
(string, optional): Filter by service.
(array, optional): e.g. ["error", "warn"]. OR logic.
(string, optional): Filter by span name.
/ endtimeiso (string, optional): Absolute time range.
(string, optional): Defaults to now.