Query my library
queryRead anything in the user's own Achriom data with one SQL SELECT over the me.* views. me.items has every title of every kind: kind, id, title, creator, year, status, rating (stars 0.5-5), notes, priority, started, finished, added, genres. me.books/movies/albums/shows/anime/podcasts/games/manga have the same columns plus that kind's own (page_count, runtime_minutes, platform, hours_played, episodes_watched...). Also me.events (history: kind, item_id, event_type, event_date, rating), me.show_episodes, me.lists, me.list_items, me.reviews, me.hidden, me.page, me.pins, me.nines, me.favorites_on_page, me.challenges, me.challenge_slots (each prompt, its pick, and read_on: the day it was read inside the challenge's dates). Read-only, their rows only, up to 200 rows, 3 seconds. describe lists every column. Prefer this for any question about their library ("albums I rated 4+ but never finished", "what I finished each month this year").
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": {
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One SELECT (WITH is fine). Example: SELECT kind, title, rating FROM me.items WHERE rating >= 4.5 ORDER BY finished DESC LIMIT 20 |