Examples
Here are some concrete prompts you can use with your MCP client to interact with RushDB.
Listing labels
Ask the RushDB MCP server to run
FindLabelswithlimit=20.
Creating and querying records
Use
CreateRecordto add aTaskwith data{"title": "Write docs", "status": "open"}.
Now use
FindRecordswithwhere={"status": "open"}andorderBy={"createdAt": "desc"}limit 5.
Setting records
Use
SetRecordforrecordId="<id>"with labelTaskand data{"title": "Polish docs", "status": "in-progress"}.
Attaching relationships
Call
AttachRelationfromsourceId="<sourceId>"totargetIds=["<target1>", "<target2>"]withrelationType="references".
Transactions
Start a transaction, create two
Taskrecords, attach a relation, and commit.
If something goes wrong, you can ask your client to call TransactionRollback with the transactionId returned from TransactionBegin.