Skip to main content
Glama

Update project context

update_project_context

Record verified project knowledge—architecture, conventions, commands, design rules, constraints, and decisions—into .promptpilot/context.json. Capture confirmed facts to keep context accurate.

Instructions

Record verified project knowledge (architecture, conventions, commands, design rules, constraints, decisions) into .promptpilot/context.json. Only record facts you have verified, never guesses.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoProject root directory. Defaults to the MCP client's current working directory.
commandsNoCommand name -> invocation, e.g. {"test": "npm test"}.
decisionNoA verified decision to remember, with its reason.
changeNoteNoOne-line note for the context history.
knownRisksNo
constraintsNo
conventionsNo
designRulesNo
architectureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the persistence target (.promptpilot/context.json) and a quality constraint on input, which is real added context. It is silent on the behaviors that matter most for a write tool — whether the write merges with or overwrites existing context, whether the file must already exist, and whether the call is idempotent.

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?

Two sentences, front-loaded with the action and the destination, followed by the one constraint that actually changes agent behavior. No filler or restatement of the title.

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?

For a 9-parameter mutation with a nested object, zero annotations, and no output schema, the description should say what the call returns or how existing context is affected. It covers what to record and where, but leaves the merge/overwrite semantics and result of the call unspecified.

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 coverage is only 44% across 9 parameters, but the description's category list (architecture, conventions, commands, design rules, constraints, decisions) maps onto most of the top-level properties and gives the agent the intent behind them. It adds nothing about root's default behavior, changeNote's role in history, or the nested decision object's required fields, so it only partly compensates for the coverage gap.

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 ('Record') plus the resource (verified project knowledge) and the exact destination file (.promptpilot/context.json), then enumerates the knowledge categories. It does not distinguish itself from the read-side sibling get_project_context or say how it relates to create_task_spec, so it stops short of a 5.

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

Usage Guidelines3/5

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

The line 'Only record facts you have verified, never guesses' is a genuine usage gate about what qualifies for this tool. However, there is no guidance on when to prefer this over sibling tools that also capture knowledge (e.g. create_task_spec, record_baseline), and no stated prerequisites.

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