Skip to main content
Glama

karea_set_context

Write or update a titled entry in a task's cross-session context, preserving the full history of plans, findings, decisions, and attempts.

Instructions

Write a titled entry of the task's Context — the AI-facing cross-session working memory. Context tracks the FULL HISTORY of a task, not just its current state: what was tried, what worked, what failed, what was decided and why. Update incrementally so the journey is preserved (never overwrite the whole entry with "current status" — read first with karea_get_context, append/refine, then write back). Context is your DEFAULT save target: after every plan, finding, decision, or gotcha, persist it here proactively under titles like "Plan", "Findings", "Decisions", "Gotchas", "Attempted". Upserts by title: same title overwrites THAT entry only; other entries are untouched. Pass empty context to delete the entry. Use karea_add_note only for human-facing updates and karea_set_markdown for long-form docs — but keep Context up to date either way.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesTask name, visual ID (C1, T2), or UUID
titleNoEntry title (e.g. "Plan", "Findings", "Decisions"). Defaults to "General".
contextYesThe full content for this entry. Pass empty string to delete the entry.
toolTypeNoOptional: your AI provider ("claude-code" / "opencode" / "codex" / "cursor" / "aider" / "other"). Required when aiSessionId is supplied.
projectIdNoProject name or ID (needed for visual ID lookup)
aiSessionIdNoOptional: your current AI CLI session ID. When paired with toolType, atomically links this session to the affected task (equivalent to calling karea_link_session, but saves the round-trip). For Claude Code use the id from `claude --resume`.
sessionLabelNoOptional short label for the linked session (e.g. "Feature draft").
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses key behaviors: upsert by title, deletion via empty context, incremental update workflow. Also mentions session linking via toolType and aiSessionId parameters. Does not contradict any structured data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with core purpose, then expands into detailed usage. Each sentence adds value, but length is substantial (~170 words). For a tool with complex semantics, the thoroughness is acceptable; minor deduction for not being tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters (2 required) and no output schema, the description is highly complete. It explains the tool's role in the context system, when to use it, how to update incrementally, deletion behavior, and contrasts with siblings. No obvious gaps for an AI agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds contextual meaning beyond schema: explains that context tracks full history, describes the incremental update model, and clarifies the relationship between parameters (e.g., toolType required with aiSessionId). This extra context raises the score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool writes a titled entry to a task's Context, the AI-facing cross-session working memory. It uses specific verbs and resources ('Write a titled entry of the task's Context') and distinguishes itself from siblings by contrasting with karea_add_note (human-facing) and karea_set_markdown (long-form docs).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance on when to use: after every plan, finding, decision, or gotcha. Provides alternatives: use karea_add_note for human updates, karea_set_markdown for long-form docs. Also instructs to read first with karea_get_context before writing. No exclusions but clear prioritization.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/starecz/karea-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server