Skip to main content
Glama

Save Global Architecture Pattern or Library Quirk

save_global_knowledge

Record or update cross-project architecture patterns and library quirks in a centralized database to preserve reusable technical knowledge across projects.

Instructions

Save or update a cross-project architecture pattern or library quirk into the centralized ~/.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": {
      "title": "<title>",
      "summary": "<summary>"
    },
    "name": "save_global_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOptional ID (auto-prefixed with 'g-' if omitted)
tagsNoKeyword tags
titleYesShort descriptive title of pattern or quirk
summaryYesDetailed context, code snippet, or workaround
categoryNoCategory ('pattern', 'quirk', 'architecture', 'convention')pattern
tech_stackNoTech stack identifier (e.g. 'nodejs', 'react', 'go', 'docker')general
source_projectNoOptional project where this pattern was validated

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, openWorld=false and idempotent=false, so the write profile is largely covered. The description adds the useful and non-obvious fact that records land in a shared global database, but it says nothing about collision behavior ('save or update' implies upsert yet idempotentHint is false), permission/auth needs, or whether an existing record is overwritten.

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; the storage destination is placed where it is most useful. It is appropriately sized, though it carries no structural aids such as a usage contrast.

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 seven-parameter mutation tool with no output schema and no annotations covering conflict semantics, the description is thin on what happens to an existing entry and what is returned. The schema compensates for parameter documentation, but write-behavior completeness is only adequate.

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% and all seven parameters are individually documented in the schema, so the baseline is 3. The description adds no parameter meaning beyond what the schema provides, not even clarifying the interaction between the optional id and update behavior.

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 ('Save or update'), a specific resource ('cross-project architecture pattern or library quirk'), and the storage destination ('~/.ag-memory-mcp/global.db'), which distinguishes it from a project-scoped memory tool. It stops short of naming a sibling such as promote_to_global or save_project_memory to sharpen the boundary.

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?

'Cross-project' implies the scope where this tool applies versus project-local saving, but the description never says explicitly when to use it, when not to, or which sibling to pick instead. The agent must infer that a project-specific fact belongs in save_project_memory and only a generalizable pattern belongs here.

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