Skip to main content
Glama

Replace published project graph

update_scanner
DestructiveIdempotent

Replace the privacy-filtered published graph for exactly the existing Brain Scanner project identified by projectId. Never creates a project, infers one by display name, inspects a repository remotely, or changes Git or GitHub. Requires a changeNarrative with four plain-language sections written by the caller.

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>",
      "expectedProjectVersion": "<expectedProjectVersion>",
      "nodes": "<nodes>",
      "edges": "<edges>",
      "idempotencyKey": "<idempotencyKey>",
      "changeNarrative": "<changeNarrative>"
    },
    "name": "update_scanner"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgesYesDirected relationships between graph nodes, using their stable IDs.
nodesYesPrivacy-filtered graph nodes with stable IDs, labels and component types.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
mappedRevisionNoLocal revision identifier represented by the submitted mapping.
changeNarrativeYesWrite four short, privacy-filtered summaries: added, updated, removed and relationships. Describe what changed in the graph; use a plain statement when a section has no changes.
expectedProjectVersionYesCurrent hosted project version from the latest project status read; guards against overwriting a newer graph publication.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / expectedProjectVersion / description
      Previous value: -"Current hosted project version from get_project_status; guards against overwriting a newer graph publication."New value: +"Current hosted project version from the latest project status read; guards against overwriting a newer graph publication."
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed5 schema fields changed
    • addedInput schema / properties / changeNarrative / description
      Added value: +"Write four short, privacy-filtered summaries: added, updated, removed and relationships. Describe what changed in the graph; use a plain statement when a section has no changes."
    • addedInput schema / properties / edges / description
      Added value: +"Directed relationships between graph nodes, using their stable IDs."
    • addedInput schema / properties / mappedRevision / description
      Added value: +"Local revision identifier represented by the submitted mapping."
    • addedInput schema / properties / nodes / description
      Added value: +"Privacy-filtered graph nodes with stable IDs, labels and component types."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
  3. Changed4 schema fields changed
    • addedInput schema / properties / expectedProjectVersion / description
      Added value: +"Current hosted project version from get_project_status; guards against overwriting a newer graph publication."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is known. The description adds meaningful context beyond that: the entire published graph is replaced, no project is ever created, no display-name inference occurs, and no Git/GitHub or remote repository side effects happen — these are real behavioral boundaries the annotations do not express.

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?

Three sentences with the operation and scope front-loaded, followed by a compact exclusion list and the caller obligation. Every sentence carries distinct information, and the negation list is short enough that it earns its space as scope fencing rather than padding.

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 destructive, 8-parameter tool with nested node/edge payloads and no output schema, the description covers identity, scope, non-goals, and the narrative obligation well. It leaves the concurrency guard (expectedProjectVersion) and the retry semantics (idempotencyKey) to the schema, which documents them adequately, so the remaining gap is minor.

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 100%, including descriptions for projectId, sessionId, idempotencyKey, expectedProjectVersion, and changeNarrative. The description restates the changeNarrative requirement (four plain-language sections written by the caller), which the schema already documents, so it adds little new meaning. Baseline 3 applies when the schema carries the parameter burden.

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 gives a specific verb ('Replace') and a precisely scoped resource ('the privacy-filtered published graph for exactly the existing Brain Scanner project identified by projectId'). It implicitly distinguishes itself from patch-style siblings by emphasizing full replacement, but it never names an alternative tool, so the differentiation is inferred rather than stated.

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?

Usage is implied by the word 'Replace' plus the 'exactly the existing project' constraint, so an agent can infer this is a full-graph overwrite rather than an incremental edit. However, there is no explicit guidance on when to choose this over patch_project_graph, clear_project_graph, or validate_project_graph, and no stated preconditions beyond the parameter-level requirements.

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