---
title: "Data & storage: Discord bot tools"
description: "Persistent per-server storage so leaderboards, economies, warning counts and pet games keep their state between runs."
canonical_url: "https://www.bondbot.gg/tools/data-store"
last_updated: "2026-10-01"
---

# Data & storage

Persistent per-server storage so leaderboards, economies, warning counts and pet games keep their state between runs.

13 of 196 tools.

## What you can ask.

- "@Bond Track message counts and show a leaderboard"
- "@Bond How many warnings does this user have?"

## The 13 tools in this group.

These are the names Bond picks between. You never type one.

- `get_document`: Read one document from this server's data store by collection and ID.
- `set_document`: Create a document in this server's data store, or replace one whole.
- `merge_document`: Merge fields into a document (shallow), keeping the fields you do not mention; creates it if missing.
- `delete_document`: Delete a document from this server's data store.
- `list_documents`: Browse a collection: its documents with their IDs and data, paged, optionally narrowed by one field comparison.
- `get_field`: Get one field of a document by dot path.
- `set_field`: Set one field of a document by dot path, creating missing intermediate objects and the document itself.
- `increment_field`: Add to a number in a stored document in one safe step, for counters, scores and XP.
- `push_to_field`: Add a value to the end of a stored list, for achievements, inventory or history.
- `list_collections`: List every collection in this server's data store that holds at least one document.
- `query_documents`: Search a collection: filters, nested AND/OR groups, multi-field sorting, pagination, projection, aggregations.
- `get_leaderboard`: Get a leaderboard: the top N documents of a collection ranked by one field, each with its rank.
- `set_collection_visibility`: Make a data-store collection public or private.

## Other categories

- [Core](https://www.bondbot.gg/tools/core)
- [Channels & categories](https://www.bondbot.gg/tools/channels)
- [Roles & permissions](https://www.bondbot.gg/tools/roles-permissions)
- [Messages](https://www.bondbot.gg/tools/messages)
- [Members](https://www.bondbot.gg/tools/members)
- [Moderation](https://www.bondbot.gg/tools/moderation)
- [Threads & forums](https://www.bondbot.gg/tools/threads)
- [Emoji, stickers & soundboard](https://www.bondbot.gg/tools/expressions)
- [Webhooks & integrations](https://www.bondbot.gg/tools/integrations)
- [Scheduled events](https://www.bondbot.gg/tools/events)
- [Automations & flows](https://www.bondbot.gg/tools/automation)
- [Custom slash commands](https://www.bondbot.gg/tools/custom-commands)
- [Server settings](https://www.bondbot.gg/tools/server-config)
- [Voice](https://www.bondbot.gg/tools/voice)
- [Bulk operations](https://www.bondbot.gg/tools/bulk)
- [Images & cards](https://www.bondbot.gg/tools/images)
- [Plugins](https://www.bondbot.gg/tools/plugins)
- [All 196 tools](https://www.bondbot.gg/tools)
