We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/2b3pro/roam-research-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
/**
* Datomic ancestor rule for traversing Roam block hierarchies.
* Used to find all blocks under a page or parent block.
*
* Usage in queries: Pass as second parameter (%) and use `(ancestor ?child ?parent)` in where clause.
* Example: `[:find ?block :in $ % ?page-uid :where (ancestor ?block ?page)]`
*/
export const ANCESTOR_RULE = `[
[ (ancestor ?b ?a)
[?a :block/children ?b] ]
[ (ancestor ?b ?a)
[?parent :block/children ?b]
(ancestor ?parent ?a) ]
]`;