Skip to main content

Overview

The status tool reports the current state of the QMD index:
  • Total document count
  • Embedding status (for vector search)
  • Collection details
  • Health indicators

Input Schema

No parameters required. Call with an empty object:
{}

Response Format

content
array
Array with a single text element containing a human-readable summary
structuredContent
object
Machine-readable status details

Example

Request:
{}
Response:
{
  "content": [
    {
      "type": "text",
      "text": "QMD Index Status:\n  Total documents: 1234\n  Needs embedding: 0\n  Vector index: yes\n  Collections: 3\n    - /home/user/notes (450 docs)\n    - /home/user/docs (300 docs)\n    - /home/user/journals (484 docs)"
    }
  ],
  "structuredContent": {
    "totalDocuments": 1234,
    "needsEmbedding": 0,
    "hasVectorIndex": true,
    "collections": [
      {
        "name": "notes",
        "path": "/home/user/notes",
        "pattern": "**/*.md",
        "documents": 450,
        "lastUpdated": "2025-05-15T14:23:10.000Z"
      },
      {
        "name": "docs",
        "path": "/home/user/docs",
        "pattern": "**/*.md",
        "documents": 300,
        "lastUpdated": "2025-05-15T14:23:10.000Z"
      },
      {
        "name": "journals",
        "path": "/home/user/journals",
        "pattern": "**/*.md",
        "documents": 484,
        "lastUpdated": "2025-05-15T14:23:10.000Z"
      }
    ]
  }
}

Use Cases

Check if Embeddings are Available

Before using vec or hyde search:
{}
Check hasVectorIndex in the response. If false, vector search will fail. Run:
qmd embed

Verify Index is Up-to-Date

Check needsEmbedding count. If > 0, run:
qmd embed
to generate embeddings for new documents.

List All Collections

Use structuredContent.collections to see all indexed collections and their document counts.

Debugging Search Issues

If search returns no results:
  1. Check totalDocuments — is the index populated?
  2. Check collections — is the expected collection present?
  3. Check hasVectorIndex — are you using vec/hyde without embeddings?

CLI Equivalent

qmd status
Outputs the same information in a formatted table.

query Tool

Search the index after verifying status

Embeddings

Learn how to generate embeddings

Collections

Manage collections via CLI

Build docs developers (and LLMs) love