Skip to main content
Glama
chaelynet

ChainMemory MCP

by chaelynet

update_project_state

Analyze new memories and propose operations to update a project's consolidated state. The server validates invariants, applies changes, and computes a state hash for verification.

Instructions

Propose structured operations to update a project's consolidated state (Project Brain). The LLM analyzes new memories and proposes ops from the 29-op grammar (add_decision, set_metric, add_milestone, add_env_host, etc.). The server validates invariants, applies via deterministic builder, computes state_hash, and persists. This is the 'client consolidates, chain verifies' architecture. Use after reading get_project_state + list_memories_filtered to identify what changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opsYesArray of operations from the 29-op grammar. Each op has 'op' (type) + arguments. Use 'evidence_memory_ids' (array of memory IDs) instead of 'evidence' — the server resolves event_hashes automatically. The 7 add_env_*/set_env_status/verify_env/supersede_env ops maintain the `environment` section: where and how the owner works (hosts, services, repositories, operating rules). Store topology only — NEVER credentials, keys or passwords (the server rejects them).
projectYesProject name, e.g. 'chainmemory'
consolidated_until_eventNoHighest memory ID included in this consolidation (advances the watermark)
Behavior4/5

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

With no annotations provided, the description fully covers behavioral traits: server validates invariants, applies via deterministic builder, computes state_hash, and persists. It also warns against including credentials. The architecture is explained, though rate limits or specific side effects are not mentioned.

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?

The description is concise yet informative, with the main purpose stated upfront. It avoids unnecessary verbosity while packing useful context. A few sentences efficiently convey the tool's role, usage, and important notes.

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 the tool's complexity and lack of output schema, the description adequately covers purpose, usage, and parameters. However, it does not describe return values or error handling, which would be helpful for a tool that performs complex server-side validation and persistence.

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%, and the description adds meaningful context beyond the schema. For 'ops', it details the 29-op grammar, explains evidence_memory_ids usage, and warns about credentials. For 'consolidated_until_event', it clarifies its role as a watermark. The description enhances understanding beyond schema descriptions.

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's purpose: proposing structured operations to update a project's consolidated state (Project Brain). It uses specific verb+resource and explains the architecture, distinguishing it from sibling tools like get_project_state and list_memories_filtered.

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

Usage Guidelines4/5

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

The description explicitly advises using this tool after reading get_project_state and list_memories_filtered to identify changes. While it doesn't explicitly state when not to use it, this context effectively guides the agent on appropriate usage within the workflow.

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/chaelynet/chainmemory-mcp'

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