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
FindLabels
withlimit=20
.
Creating and querying records
Use
CreateRecord
to add aTask
with data{"title": "Write docs", "status": "open"}
.
Now use
FindRecords
withwhere={"status": "open"}
andorderBy={"createdAt": "desc"}
limit 5.
Setting records
Use
SetRecord
forrecordId="<id>"
with labelTask
and data{"title": "Polish docs", "status": "in-progress"}
.
Attaching relationships
Call
AttachRelation
fromsourceId="<sourceId>"
totargetIds=["<target1>", "<target2>"]
withrelationType="references"
.
Transactions
Start a transaction, create two
Task
records, attach a relation, and commit.
If something goes wrong, you can ask your client to call TransactionRollback
with the transactionId
returned from TransactionBegin
.