Skip to main content
Glama

lore_context

Read or write an area's context document using a node path. Omit body to fetch existing context; provide body to directly write authored Markdown.

Instructions

Read or write an area's context document (a context-kind node). Omit body to FETCH the context at a path. Pass body to WRITE it directly as authored content - this is an authored doc, it does NOT run synthesis. Use this for importing/editing hand-written context.md files; the capture flow is what derives context from sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoWhen provided, writes this Markdown as the context node body (authored, no synthesis). When omitted, the tool reads instead.
pathYesNode path, e.g. mcp/context (area context) or context (project overview).
titleNoTitle when writing. Defaults to the area name derived from the path.
projectNoProject slug (defaults to .lorerc in cwd, then LORE_PROJECT).
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that writing bypasses synthesis and is directly authored. However, it does not specify whether writes are overwriting or appending, nor does it describe any side effects or permissions. Still, key behavioral traits are covered.

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

Conciseness5/5

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

The description is two sentences, very concise. Every sentence adds value: the first explains the dual function, the second gives usage context and alternatives. No filler or redundancy.

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

Completeness3/5

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

Given no output schema, the description should hint at return values. It implies reading returns the body, but doesn't explain what write returns. Also, while parameter semantics are good, the overall completeness is slightly hampered by missing return value description. Moderate complexity.

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

Parameters5/5

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

Schema description coverage is 100%, but the description adds valuable context: explaining that body presence determines read/write mode, that title defaults to area name, project defaults from .lorerc, and providing path examples. This significantly enhances understanding beyond the schema.

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 reads or writes an area's context document, distinguishing between fetching (omit body) and writing (pass body). It specifies the resource type (context-kind node) and differentiates from synthesis and capture flow, making the purpose very specific and unambiguous.

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?

The description explicitly advises using this tool for importing/editing hand-written context.md files and directs the capture flow for deriving context from sessions. This provides both when-to-use and when-not-to-use guidance, clearly distinguishing it from sibling tool lore_capture.

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/sharedlore-ai/lore-mcp'

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