Skip to main content
Glama

Update project context

update_project_context
Destructive

Adds, edits, or deletes a project's shared memory so the app, SAM, and other agents see it. Uses no credits. Use the current project context to find the entries to remove. Send patch ops to clear sections, deleteCustomSection, removeCompetitors, removeKeyPages, or removeResearchLog. Sections are prose (~4,000 chars max), competitors and key pages are curated shortlists (100 max each), and appendResearchLog records research already bought. Report templates are managed separately. Confirm facts with the user before storing them.

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": {
      "projectId": "<projectId>",
      "updates": "<updates>"
    },
    "name": "update_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
updatesYesPatch ops, applied in order. Clear a standard section with {section: "current_goal", content: ""}; delete a custom section with {deleteCustomSection: "slug"}; removeCompetitors takes domains, removeKeyPages takes URLs, and removeResearchLog takes entry IDs from the project context. Adds upsert by domain/url; research-log entries are date-stamped by the server. An addCompetitors row takes names (the sub-brands and flagship products shoppers name instead of that competitor), and setBrandNames replaces one brand's list (the store's own when no domain is given); an answer that writes a listed name as a name counts as naming that brand.
projectIdYesRequired. The NameIO project ID to scope this call to. Get one from list_projects.

Output Schema

NameRequiredDescriptionDefault
metaNo
keyPagesYes
sectionsYes
competitorsYes
researchLogYes
customSectionsYes
missingSectionsYes
reportTemplatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description corroborates this by describing deletions, clearing sections, and removal ops. It adds real context beyond the annotations: no credit cost, server-side date-stamping of research-log entries, and upsert-by-domain/URL add semantics. It stops short of saying what happens on partial failure when patch ops apply in order.

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 purpose and cost, then usage constraints, then patch-op mechanics. Dense but every sentence carries operational information, except the char-limit and list-cap numbers that partly restate schema constraints (maxItems 100, maxLength 1000).

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

Completeness4/5

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

For a multi-op mutation tool with an output schema and fully described parameters, this covers the essentials: mutation kinds, ordering, key fields for removals, and the confirm-before-storing policy. The main gap is that the op enumeration skips setBrandNames, addCompetitors, and addKeyPages, leaving the agent to discover those from the schema alone.

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 schema is extremely detailed, so the description only needs to add framing. It does: patch ops are applied in order, removal ops key on domains/URLs/entry IDs from the current context, standard sections are ~4,000-char prose, and competitor/key-page lists cap at 100. It omits setBrandNames and addCompetitors/addKeyPages from the enumerated op list, a small asymmetry.

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?

The description opens with a specific verb set and resource: 'Adds, edits, or deletes a project's shared memory,' and states the effect ('so the app, SAM, and other agents see it'). It implicitly separates the read path ('Use the current project context to find the entries to remove') and excludes template management ('Report templates are managed separately'), though it never names the sibling read tool outright.

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?

Guidance is clear: read current context first to identify entries to remove, confirm facts with the user before storing, and template work belongs elsewhere. What's missing is an explicit pointer to the sibling that returns project context, so the agent must infer which tool supplies the pre-read.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources