Skip to main content
Glama

set_project_context

Create or update a project's stored context—description, tech stack, goals, current state, and notes—so AI agents in OmniMem retain accurate, persistent project memory across sessions.

Instructions

Create or update a project's context (description, stack, goals, state).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_name": "<project_name>",
      "description": "<description>",
      "stack": "<stack>",
      "goals": "<goals>",
      "current_state": "<current_state>"
    },
    "name": "set_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalsYes
notesNo
stackYes
domainsNo
descriptionYes
project_nameYes
current_stateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and does not meet it. It does not say whether this is a full replace or a merge, whether existing values for the optional domains/notes survive a call, whether it errors if the project already exists, or what permissions are needed — all critical for a write tool with 5 required parameters.

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?

A single front-loaded sentence with no filler, and the parenthetical field list is an efficient way to signal payload scope. It is terse to the point of under-specification for a 7-parameter write tool, but nothing is wasted.

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

Completeness2/5

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

For a mutation tool with 7 parameters, 0% schema coverage, no annotations, and no output schema, the description is far too thin. The agent learns the intent but not the merge semantics, required-vs-optional behavior, or failure modes it needs before invoking.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate, and it only partly does: it names description, stack, goals, and "state" (mapping loosely to current_state). The seven parameters include project_name, domains, and notes, none of which are explained, and DomainArg's comma-separated-or-list flexibility is not echoed here.

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

Purpose4/5

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

States a specific verb pair ("Create or update") and resource ("a project's context") and enumerates the payload fields (description, stack, goals, state). An agent can tell this writes context rather than reading it, though it does not name the siblings it differs from (compile_project_context, get_project_context, update_project_state).

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

Usage Guidelines2/5

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

No statement of when to use this rather than compile_project_context, get_project_context, or update_project_state, and no prerequisites. The only implicit cue is "Create or update", which the agent must interpret against similarly named siblings on its own.

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