RouterOS Rest API operators

Unfortunately RouterOS doesn’t export OSPF adjacencies to SNMP so there is no way to monitor them. I figured I’d write some monitoring using the API, but ran into a problem.

I can get a list of /routing/ospf/interface-template to get an idea of what adjacencies to expect, but they don’t map over to /routing/ospf/neighbor because the template has the networks and the neighbor has the dr and bdr inside that network.

I can get what I want with this:

/routing/ospf/neighbor/print where bdr in "x.x.x.x/30" where I fetched the network from the template.

But I can’t find a way to use the “IN” operator in the rest API. Thus I can’t find a way to loop through the templates then query the adjacencies in my monitoring system.

Anybody know of a way to use operators in the REST API or match ospf templates to neighbors without needing the IN operator?