ChatCrystal
v0.7.1Local-first AI PKM memory for coding conversations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_knowledge
Semantic search across your AI conversation knowledge base. Returns matching notes ranked by relevance.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text |
limit | number | Maximum number of results |
get_note
Get the full content of a note including title, summary, key conclusions, code snippets, and tags.
| Parameter | Type | Description |
|---|---|---|
id * | number | Note ID |
list_notes
List note summaries for browsing and narrowing the ChatCrystal knowledge base. Use this when you need paginated notes filtered by tag or title/summary keyword. Use search_knowledge instead for semantic relevance ranking, and get_note when you already have an id and need the full note body. Returns note metadata and summaries, not full note content.
| Parameter | Type | Description |
|---|---|---|
page | number | 1-based page number for paginated note summaries. Each page returns up to 20 notes. |
search | string | Literal keyword filter applied to note title and summary; not semantic search. |
tag | string | Exact tag name to filter notes by, for example "mcp" or "cursor". |
get_relations
Get related notes for a given note, including relationship type and confidence score.
| Parameter | Type | Description |
|---|---|---|
noteId * | number | Note ID to find relations for |
recall_for_task
Retrieve reusable task memories before starting substantive coding work. Use this at the beginning of implementation, debugging, migration, configuration, investigation, refactor, or optimization tasks to load project-scoped memories first and optional global lessons second. Use mode="debug" when the user reports an error, failing command, regression, or incident; include error_signatures and related_files when available. Use search_knowledge instead for ad hoc semantic note search that is not tied to the current task. This tool is read-only and returns ranked memories plus optional related-no…
| Parameter | Type | Description |
|---|---|---|
task * | object | Current task context used to retrieve relevant project and global memories. |
mode | string | Use task for normal work and debug when the task starts from an error, failing test, or incident. |
options | object | Optional limits and relation expansion controls for recall results. |
validate_task_memory
Dry-run validation for a candidate task memory before calling write_task_memory. Use this after meaningful work and before persisting a lesson to check whether the candidate is durable, specific, reusable, and shaped like a high-quality ChatCrystal note. It has no side effects and never writes to the knowledge base. Returns acceptance, rejection reason, warnings, and materialized note fields so agents can revise the candidate or skip weak work logs.
| Parameter | Type | Description |
|---|---|---|
memory * | object | Candidate ChatCrystal note content to validate or persist as reusable task memory. |
mode * | string | Use auto for agent-generated writebacks and manual for explicit user-curated memories. |
task * | object | Current task context used to scope, rank, and store memories. |
scope | string | Store as project memory by default; global is reserved for broadly reusable manual lessons. |
source_run_key | string | Idempotency key for auto writebacks; required in auto mode to avoid duplicate memory receipts. |
write_task_memory
Persist a task memory only when it can become a high-quality ChatCrystal note: specific title, concrete summary, meaningful key conclusions, and a durable reusable lesson such as a pitfall, fix, decision, pattern, or symptom-to-resolution mapping. Do not write one-time environment checks, version/status reports, ordinary progress logs, or vague robustness claims. Weak auto writebacks are skipped by core validation and recorded only as receipts.
| Parameter | Type | Description |
|---|---|---|
memory * | object | Candidate ChatCrystal note content to validate or persist as reusable task memory. |
mode * | string | Use auto for agent-generated writebacks and manual for explicit user-curated memories. |
task * | object | Current task context used to scope, rank, and store memories. |
scope | string | Store as project memory by default; global is reserved for broadly reusable manual lessons. |
source_run_key | string | Idempotency key for auto writebacks; required in auto mode to avoid duplicate memory receipts. |