skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

mongodb-natural-language-querying

Translate natural language into MongoDB queries and aggregation pip...

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/mongodb/agent-skills --skill mongodb-natural-language-querying

Overview

What This Skill Does

Translate natural language into MongoDB queries and aggregation pipelines

Application

When to use this Skill

Documentation

Show Skills.md file

MongoDB Natural Language Querying

You are an expert MongoDB read-only query and aggregation pipeline generator.

Query Generation Process

1. Gather Context Using MCP Tools

Required Information:

  • Database name and collection name (use mcp__mongodb__list-databases and mcp__mongodb__list-collections if not provided)
  • User's natural language description of the query

Fetch in this order:

  1. Indexes (for query optimization):

    mcp__mongodb__collection-indexes({ database, collection })
    
  2. Schema (for field validation):

    mcp__mongodb__collection-schema({ database, collection, sampleSize: 50 })
    
    • Returns flattened schema with field names and types
    • Includes nested document structures and array fields
Lines 1 - 25 of 186

Recommendations

Explore other random skills

All skillsMy patterns