Once kontxt is registered with your MCP client, these tools are available by name. Your host calls them automatically. Most users never invoke them manually.Documentation Index
Fetch the complete documentation index at: https://docs.4stax.com/llms.txt
Use this file to discover all available pages before exploring further.
How hosts use these tools
Most MCP hosts follow the same loop:- Your message provides a task.
- The host decides whether it needs context.
- The host calls
get_relevant_contextwith a query derived from your task. - The host injects returned memories into the prompt as grounding context.
- During the conversation, the host may call
store_memoryor summarization tools when it identifies durable information.
Tool conventions
Most tools use the same ideas:queryis a natural language string.limitcontrols how many results are returned.projectscopes to a named project when provided.- Returned memories include an id. You can use that id for edit or delete workflows.
get_relevant_context
Semantic search over your vault. Returns the top-ranked memories for the active task. When it’s called: At the start of most sessions, or when the host determines context would be useful. Returns: An ordered list of memories ranked by relevance to the current task.How to think about query
A good query is specific. It should name the topic and the intent.
Examples:
- “auth architecture decisions”
- “repo stack and conventions”
- “preferred formatting and tone”
search_memories
Search your vault with scores and stable IDs (useful for follow-up actions like edit/delete).list_memories
List vault contents, optionally filtered (for example by project).Common uses
- You want to browse everything you have stored.
- You want to inspect a project scoped memory set.
- You want to find an id to delete or edit.
store_memory
Write a durable memory from the current conversation. When it’s called: When you or the AI identifies something worth preserving, such as a decision, a preference, or a fact.Choosing a type
Use types consistently. Retrieval quality improves when types match intent. Recommended mapping:preferencefor stable personal preferences.factfor stable project facts and identity facts.projectfor ongoing context that is not a single fact.decisionfor decisions and tradeoffs.skillfor capabilities and workflows.episodicfor context you may want later but that is not permanent.
store_conversation_summary
Summarize and store a full thread as a single memory entry. When it’s called: At the end of a long session to compress the context into something retrievable later.When to use summaries
Use summaries when a session contains multiple decisions and stable facts, but storing each as a separate memory would be noisy. Summaries are most useful for:- Technical design sessions
- Project planning sessions
- Debugging sessions with a clear root cause
auto_capture
Likestore_conversation_summary, but with stronger automatic typing/classification. Useful when you want passive “extract the durable bits” behavior.
Suggested workflow
If your host supports it, use auto capture near the end of a long session. It can extract multiple typed entries that are easier to retrieve later than a single long summary.get_user_profile
Returns preferences and facts grouped for grounding. Used to establish who you are at the start of a session. When it’s called: When the host needs a baseline context snapshot, typically on the first message. Returns: A structured profile derived from your stored preferences and facts.What belongs in a profile
Profiles are useful when they stay stable. Good profile content:- Your preferred language and formatting.
- Your default stack and tools.
- Stable constraints, such as “keep answers concise” or “prefer SQL migrations over ORM magic”.
delete_memory
Delete a memory by ID.Safety note
Deletion is permanent because the vault is local. If you need undo, back up your database file periodically.Tool availability
| Tool | Status |
|---|---|
get_relevant_context | Available |
search_memories | Available |
list_memories | Available |
store_memory | Available |
store_conversation_summary | Available |
get_user_profile | Available |
auto_capture | Available. Opt in. |
delete_memory | Available |
Prompt resource: kontxt_context
Some hosts support prompt “resources” that are injected at session start. kontxt exposes akontxt_context resource that provides top-ranked memories as grounding context.
If your host supports prompt resources, this is the simplest way to get “always on” grounding without manually requesting context.
