> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB Tools

> Explore MongoDB databases, collections, and documents from DinoAI to infer schemas, run find and aggregation queries, and inspect indexes and storage stats.

export const ToolIds = ({ids = []}) => <div style={{
  margin: '1.25rem 0'
}}>
    <p style={{
  fontSize: '13px',
  fontWeight: 600,
  color: '#6B7280',
  margin: '0 0 8px'
}}>
      Allow-list ids — use in a Programmable Agent's <code>tools.list</code>:
    </p>
    <div style={{
  display: 'flex',
  flexWrap: 'wrap',
  gap: '6px'
}}>
      {ids.map(id => <code key={id} style={{
  fontSize: '12.5px',
  padding: '2px 8px',
  borderRadius: '6px',
  background: 'rgba(114,106,227,0.08)',
  border: '1px solid rgba(114,106,227,0.2)',
  color: '#5943D6'
}}>
          {id}
        </code>)}
    </div>
  </div>;

export const ToolMeta = ({copilot = false, agent = false, backedBy, name, href}) => {
  const pill = on => ({
    display: 'inline-flex',
    alignItems: 'center',
    gap: '5px',
    padding: '2px 10px',
    borderRadius: '9999px',
    fontSize: '13px',
    fontWeight: 500,
    border: '1px solid',
    borderColor: on ? 'rgba(114,106,227,0.35)' : 'rgba(128,128,140,0.22)',
    background: on ? 'rgba(114,106,227,0.12)' : 'transparent',
    color: on ? '#5943D6' : '#9AA0AA'
  });
  return <div style={{
    display: 'flex',
    flexWrap: 'wrap',
    alignItems: 'center',
    gap: '8px',
    margin: '0 0 1.5rem'
  }}>
      <span style={{
    fontSize: '13px',
    fontWeight: 600,
    color: '#6B7280'
  }}>Available in</span>
      <span style={pill(copilot)}>{copilot ? '✓' : '—'} Copilot</span>
      <span style={pill(agent)}>{agent ? '✓' : '—'} Agent</span>
      {backedBy === 'native' && <span style={{
    fontSize: '13px',
    color: '#9AA0AA'
  }}>· Built-in</span>}
      {(backedBy === 'integration' || backedBy === 'connection') && name && <span style={{
    fontSize: '13px',
    color: '#6B7280'
  }}>
          · Backed by {href ? <a href={href}>{name}</a> : name} {backedBy}
        </span>}
    </div>;
};

<ToolMeta copilot agent backedBy="connection" name="MongoDB" href="/integrations/mongodb" />

<ToolIds ids={["list_mongodb_databases", "list_mongodb_collections", "mongodb_collection_schema", "mongodb_find", "mongodb_count", "mongodb_aggregate", "mongodb_collection_indexes", "mongodb_db_stats"]} />

The MongoDB Tools let DinoAI explore your connected MongoDB instance, listing databases and collections, inferring the schema of a collection by sampling documents, and running read queries so it has the context it needs to model and analyse your data.

Queries are **read-only**: aggregation stages that mutate data or run server-side code (for example `$out`, `$merge`, `$function`) are always rejected.

<Info>
  **Requires a MongoDB connection.** These tools are only available when your workspace is connected to MongoDB. See the [MongoDB integration](/integrations/mongodb) to configure a connection.
</Info>

### Capabilities

| Capability              | What it does                                                  |
| ----------------------- | ------------------------------------------------------------- |
| List databases          | Enumerate the databases in the connected MongoDB instance     |
| List collections        | List the collections within a database                        |
| Infer collection schema | Sample documents to infer field types and detect schema drift |
| Find                    | Run a find query against a collection                         |
| Count                   | Count documents matching a filter                             |
| Aggregate               | Run an aggregation pipeline against a collection              |
| Collection indexes      | Describe the indexes on a collection                          |
| Database stats          | Return storage and document statistics for a database         |


## Related topics

- [MongoDB](/integrations/mongodb.md)
- [DinoAI Tools](/products/dino-ai/tools-and-features/index.md)
- [Tools Reference](/products/dino-ai/programmable-agents/tools-reference.md)
- [Integrations](/integrations/index.md)
- [Snowflake Tools](/products/dino-ai/tools-and-features/warehouse-tool/snowflake-tools.md)
