Skip to main content
Glama

Update project context

update_project_context
Destructive

Writes to a project's shared memory so the app, Danny, and other agents see it. Uses no credits. Send a list of patch ops; sections are prose (~4,000 chars max), competitors and key pages are curated shortlists (100 max each), and appendResearchLog records what research was bought so nobody re-buys it. 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. Empty section content clears the section; adds upsert by domain/url; research-log entries are date-stamped by the server.
projectIdYesRequired. The FastestRank 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.3/5.0
Behavior4/5

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

Annotations already declare a non-read-only, destructive, closed-world mutation, and the description adds genuine context beyond them: no credit cost, cross-actor visibility of the write, and size/shape expectations for sections and shortlists. It does not warn about the removal/delete patch ops in the schema, but it does not contradict the destructive hint either.

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?

Four front-loaded sentences, each carrying a distinct fact (effect, cost, patch shapes, confirmation policy) with no filler. Density is high but every sentence earns its place; a slight structural gain would come from grouping the patch-shape facts together.

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?

With an output schema and full annotation coverage already present, the description supplies the missing non-structural context: cost, visibility to other actors, content limits, and a confirmation policy. Ordering behaviors and removal semantics are left to the schema, which handles them adequately.

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 already 100% and the updates array carries its own description, yet the prose adds real semantics: sections are free-form prose capped around 4,000 chars, competitors and key pages are curated shortlists capped at 100, and appendResearchLog exists to prevent duplicate research spend. Those details are not all expressible in 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?

States a specific verb and resource — writing to a project's shared memory — and names the consumers (the app, Danny, other agents), which makes clear this is the write counterpart to the read-side context tools. An agent can tell what changes and who is affected without opening the schema.

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?

Provides a clear operating instruction ('Confirm facts with the user before storing them') and a purpose for the research-log op ('so nobody re-buys it'), which steers when to use that patch type. It stops short of naming read-side alternatives or stating when not to write, so it is strong context rather than full routing guidance.

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.