Kadal Store
v0.1.1Find assets for what you're making, download what you own, and get a buy link to review.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Who is signed in
The person this store sign-in belongs to (id, name, email), its scopes, and whether they run the store. Call it when unsure whether the person is signed in.
list_shelves Store shelves
The store's shelves (its categories), each with a slug, name, blurb, how many products it holds, and its licence model. Use a shelf slug to narrow search_products or recommend.
search_products Search the store
Search the catalogue. Returns product cards: slug, name, kind (asset or pack), shelf, blurb, url, prices per licence tier in US cents, tags (style, topic, format), and `owned` (the person's tier if they already own it). Page with nextCursor.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page. |
format | string | A format tag, e.g. pdf, wav, glb, png. |
kind | string | asset: one product; pack: a bundle of several. |
limit | integer | How many (default 20). |
maxCents | integer | Only products from at most this price, in US cents (2000 = $20). |
query | string | Words to search for, e.g. 'weekly planner a5' or 'retro ui sound effects'. |
shelf | string | A shelf slug from list_shelves. |
sort | string | |
style | string | A style tag, e.g. minimal, pixel-art. |
topic | string | A topic tag. |
get_product Product details
Everything about one product: description, prices per tier, its files (name, bytes, minimum tier, edition), editions, what a pack contains and which packs include it, the licence (what each tier allows and does not), and its update history. Check the licence before suggesting a product for commercial work.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The product's slug. |
recommend Recommend for this work
Products that fit what the person is working on. `context` is a few plain lines about the project and what it needs (project_summary's `text` is a good start; add what the person asked for). Never put file contents, secrets or personal data in it. Each item has a one-line `why` and a score; `packs` are bundles the person already owns part of (`ownedOf`). This only shortlists: read get_product for the best few, then recommend with your own reasons.
| Parameter | Type | Description |
|---|---|---|
context * | string | What the project is and what it needs, at most 6000 characters. |
formats | array | Formats to prefer, e.g. ['pdf'] or ['wav', 'ogg']. |
includeOwned | boolean | Also list products the person owns (default false). |
limit | integer | How many (default 8). |
maxCents | integer | Price ceiling in US cents. |
shelves | array | Shelf slugs to keep to. |
list_library What the person owns
Every product the person owns: the product card, their tier, its files (id, name, bytes, sha256, edition), whether a zip is available, and the latest update. File ids go to download_to_folder or get_download_links.
get_download_links Download links
Download URLs for files the person owns, each with its name, size and sha256, valid for 10 minutes; no cookie needed (curl -L works). Narrow with fileIds or an edition; zip: true adds one link for the whole product. To put files into the project, download_to_folder does the download and the checksum for you.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
edition | object | Narrow a product sold in editions (planners, calendars) to one. Leave an axis out to keep all of it. |
fileIds | array | Only these files (ids from list_library). |
zip | boolean | Also a link to the whole product as one zip. |
create_buy_link A link to buy
A link to a review page on the store where the person sees each item (picture, licence, price), anything they already own, and the total, and pays in the checkout themselves. Only when the person asked to buy or agreed to it; building the link charges nothing and buys nothing. Give them the URL, and never say something was bought.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
ref | string | Where the link came from, for the store's counts (default agent). |
report_problem Report a problem
Tell Kadal about a product the person has: a mistake (a typo, a wrong date, a missing page, a broken file), a question, or an idea. Say where with fileName and page (PDFs, from 1) or timeSeconds (audio and video). The note is private to the person and Kadal, and its replies show in list_my_notes. Report only what you checked, in plain words, once per problem, and tell the person you filed it.
| Parameter | Type | Description |
|---|---|---|
body * | string | What is wrong and where, in plain words. |
kind * | string | |
slug * | string | |
fileName | string | The file the problem is in, as list_library names it. |
page | integer | The PDF page, counting from 1. |
timeSeconds | number | Seconds into the audio or video. |
list_my_notes The person's notes
The person's notes (reports) on products, with each one's status (open, accepted, declined, duplicate, fixed), a plain status line, and the thread with Kadal's replies.
| Parameter | Type | Description |
|---|---|---|
status | string |
project_summary Summarise this project
A short summary of a project folder, without its contents: name and description from package.json / pyproject.toml / Cargo.toml, dependency names, tools it uses (Godot, Blender, Next.js, Obsidian…), the README's headings, file-type counts and the top-level names. It is what `kadal-store recommend --from` sends. Pass its `text` to recommend as context. Reads nothing else and sends nothing anywhere.
| Parameter | Type | Description |
|---|---|---|
dir | string | A folder, relative to the project (default: the project itself). |
download_to_folder Download into the project
Download files the person owns into the project, each checked against its sha256; files already there with the same checksum are skipped. dir is relative to the project (default kadal-store/<slug>). Narrow with fileNames or fileIds (from list_library) or an edition, or zip: true for the whole product as one zip. Returns where every file went.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
dir | string | Folder relative to the project, e.g. 'assets/sfx'. Default kadal-store/<slug>. |
edition | object | Narrow a product sold in editions (planners, calendars) to one. Leave an axis out to keep all of it. |
fileIds | array | Only these files, by id. |
fileNames | array | Only these files, by name. |
overwrite | boolean | Download again even when the same file is already there. |
zip | boolean | The whole product as one zip instead of its files. |