mmk-notion-databaselisted
Install: claude install-skill magic-meal-kits/mmk-skills
# MMK Notion — Database Commands
> **Prerequisite:** Read [`../mmk-shared/SKILL.md`](../mmk-shared/SKILL.md) for auth, global flags, and error handling.
> Parent: [`mmk-notion`](../mmk-notion/SKILL.md)
Always use `-o json` when parsing results or composing with other commands.
---
## schema — Show database property schema
```bash
mmk notion database schema --database-id <db-uuid> -o json
mmk notion database schema --database-id <db-uuid> --detect-ai --page-id <page-uuid> -o json
```
**Required:** `--database-id`
**Optional:** `--detect-ai` (bool), `--page-id` (required with `--detect-ai` — accepts UUID or full Notion URL), `--enhanced` (bool — outputs LLM-friendly schema with select options and valid filter operators)
When `--detect-ai` is set, output includes `property-id` and `workflow-id` values needed for the `ai-summary` command.
---
## query — Query a Notion database with filters, sorts, and pagination
```bash
mmk notion database query --database-id <db-uuid> -o json
mmk notion database query --database-id <db> --filter "Status=Active" --sort "CreatedDate:desc" --limit 10 -o json
mmk notion database query --database-id <db> --filter "Status=Active" --filter "Done=false" --properties "Name,Status,Price" -o json
mmk notion database query --database-id <db> --cursor "eyJsYXN0..." -o json
```
**Required:** `--database-id`
**Optional:**
| Flag | Default | Description |
|------|---------|-------------|
| `--filter` | | Filter: `Key=Value` or `Key:operator=Value` (