Query
queryRun DuckDB SQL on Markdown frontmatter to filter, aggregate, and inspect file metadata by glob pattern without manual parsing.
Instructions
Query frontmatter with DuckDB SQL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"glob": "<glob>",
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query string. Reference 'files' table. Columns are frontmatter properties plus 'path'. Values are strings; arrays are JSON strings (use from_json(tags, '["VARCHAR"]')). | |
| glob | Yes | Glob pattern relative to base directory (e.g. "atoms/**/*.md"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | ||
| results | Yes | ||
| warnings | No | ||
| row_count | Yes |