# overview

Canonical URL: https://developers.iagenify.com/sdk/ref/connected-storage/run/overview/
Language: en

`storage.run({ action: "overview" })`

What is in this storage, in one call. Written to replace the three or four you would otherwise make to find out.

Status: any storage · free · one round trip

The point is the turn count, not the convenience. Orienting yourself the long way is `collections`, then a `find` per collection to see the shape — several calls, and on an agent several billed turns. This answers it once.

## What comes back, per kind {#returns}

| Storage | You get |
| --- | --- |
| Document database | Every collection, its count, and a sample document. |
| Relational database | Up to 30 tables, their columns, and one example row each. |
| Object storage | The top-level prefixes, with how many objects and how many bytes. |

```javascript
const map = await storage.run({ action: "overview" });

// Relational: { tables: [{ name, columns, sample }], truncated }
// Document:   collections with counts and a sample
// Objects:    prefixes with counts and sizes
```

## A relational overview has no row counts, on purpose {#counts}

> **A COUNT is charged by the row on some providers**
>
> Counting every table to tell you how big it is can cost more than the query you were about to write. One example row per table is enough to write the right statement, and it costs one row.

## truncated {#truncated}

Thirty tables at most. `truncated` says how many were left out — a non-zero value means ask for [tables](/sdk/ref/connected-storage/run/tables) if you need the rest.

## Where it belongs {#use}

At the start of anything that must work against a storage it has not seen: an agent given a database, a migration script, a dashboard that adapts to what is there.

- [schema](/sdk/ref/connected-storage/run/schema): Les champs d'une collection, quand l'aperçu ne suffit plus.
- [run()](/sdk/ref/connected-storage/run): Toutes les actions, les garde-fous et ce que chacune coûte.

```python
overview = storage.run(action="overview")

# Relational: {"tables": [{"name", "columns", "sample"}], "truncated"}
# Document:   collections with counts and a sample
# Objects:    prefixes with counts and sizes
```
