The number of units in a category that match filter (all units without one).
Fetches a single row (page=1, pageSize=1) and returns the envelope's
Total, which counts every match regardless of the page. sort is forwarded:
the register refuses a sort key it doesn't know ({"Error":true}, a MastrApiError;
live 2026-10-09). Paging options are refused
(countQueryProblem), as are the inputs units() refuses, all with a
MastrValidationError before any request.
The filterable columns (names, types, dropdown codes) for a category. An Errors
envelope throws MastrApiError, any other non-array reply, or an empty one,
MastrParseError — never an empty list, which would read as "this category has no filters".
Drop the filter columns kept for category (for every category without one): the next use
fetches them again. For a caller that finds the kept list odd (the use cases, when it lacks a
column the category has: see operations.ts).
Optionalcategory: UnitCategoryFetch one page of units for a category. Sends the full Kendo param set —
sort, page, pageSize, group, filter — always, because the server
rejects a request with group/filter missing ("Die Anfrage ist Null.").
An unknown category or query key, a page outside 1..MAX_PAGE, a pageSize
outside 1..MAX_PAGE_SIZE, a blank sort (sortProblem) or a filter the
register would misread (e.g. ~or~, see validateFilter) is rejected with a
MastrValidationError before any request. A filter's FilterNames and eq/neq
dropdown codes are then checked against the category's columns (one cached
filterColumns() request, skipped with allowUnknownFilters) before the unit request;
the filter is sent normalised (see normalizeFilter, resolveFilter).
The category's filter columns as filterColumns gives them, fetched on first use and kept for FILTER_COLUMNS_MAX_AGE_MS (the filter check uses the same list): a long-running caller (the MCP server) learns a code the register adds. A failed fetch is not kept, and a clock set back doesn't stretch the hour.
The fetch runs in the context of the caller that starts it: a transport that takes a per-call signal from the context (the MCP server's limiter) aborts it with that caller, so a lone caller's lookup never outlives it. Another caller waiting for that fetch, when it fails on the network (the starter cancelled or at its deadline), fetches once more on its own instead of failing with the starter's error.