Skip to main content
Glama

Promote Project Memory to Global Graph

promote_to_global

Promote proven project-specific memory nodes to the machine-wide global knowledge graph for reuse across projects, with optional category and tech stack overrides.

Instructions

Promote a proven project-specific memory node to the machine-wide global knowledge graph in ~/.ag-memory-mcp/global.db.

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_path": "<project_path>",
      "memory_id": "<memory_id>"
    },
    "name": "promote_to_global"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional category override (defaults to memory node category)
memory_idYesProject memory node ID to promote
tech_stackNoTech stack identifier (e.g. 'nextjs', 'fastapi')general
project_pathYesAbsolute path to the project workspace root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation scoped to the local machine, so the safety profile is covered. The description adds real value by naming the concrete target store, but omits what an agent most needs: whether the source project node survives the promotion, what happens if the memory already exists globally (relevant given idempotentHint=false), and whether any approval step is required.

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 destination path is a useful concrete detail. Slightly under-specified rather than verbose — the size is right but one more clause on the fate of the source node would have earned the space.

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?

This is a cross-store mutation with four parameters, two of them required, no output schema, and a declared non-idempotent behavior — the description does not cover return values, whether the original is copied or moved, duplicate handling, or failure modes. For a write that mutates global machine state, that is a substantial gap beyond the annotations.

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%, so all four parameters (project_path, memory_id, category, tech_stack) are already documented in the schema; baseline 3 applies. The description adds only the notion that the source is a project-scoped node identified within project_path, and says nothing about the category override or tech_stack defaulting.

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 (promote) and a precise directional resource: a project-specific memory node moving into the machine-wide global knowledge graph, with the concrete target location ~/.ag-memory-mcp/global.db. It is distinguishable from save_global_knowledge by being a promotion of an existing node rather than a fresh write, though that contrast is left implicit.

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 explicit when-to-use, when-not-to-use, or alternatives are given; the agent must infer that this is for memories already validated within a project. Nothing says how it differs from calling save_global_knowledge directly, nor what prerequisites (e.g. does the project node need to exist and be marked proven) apply.

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