Skip to main content
Glama

memento_graph

Manage a project memory graph to store entities and relations, query dependencies, assess impact, and summarize context for AI agents.

Instructions

Manage the Project Memory Graph. Actions: add_entity, add_relation, query, impact, summary.

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": {
      "action": "<action>"
    },
    "name": "memento_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoEntity name for add_entity.
depthNoTraversal depth for query (1=direct, 2=one hop further).
actionYesAction to perform.
objectNoTarget entity name for add_relation.
subjectNoSource entity name for add_relation.
predicateNoRelation: depends_on, blocks, implements, breaks, supersedes, relates_to, part_of, uses.
propertiesNoJSON string of additional entity properties.
entity_nameNoEntity name for query / impact.
entity_typeNoEntity type: file, component, decision, bug_fix, feature, session, module, api.
workspace_rootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.2
  2. Removedv1.2.1
  3. First observedv0.3.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for disclosing behavioral traits. It only lists actions without describing side effects, persistence, permissions, or error states. For example, 'add_entity' is not explained to create a persistent node. Very limited transparency beyond the action names.

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?

Extremely concise: two sentences. First sentence states the core purpose, second enumerates the actions. No fluff or redundancy. Every word earns its place given the one-line format.

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?

For a tool with 10 parameters and 5 distinct actions, the description is too minimal. It lacks details on return values, error conditions, action-specific behavior, and integration with other tools. Without an output schema or annotations, the description should provide more context for each action. Incomplete for the complexity level.

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 coverage is high (90%), so the schema itself does most of the work describing parameters. The tool description adds no extra semantic value beyond listing action names. Parameter details like date ranges, format constraints, or usage tips are absent. Baseline 3 is appropriate given the high schema coverage.

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?

Clearly states it manages a project memory graph and lists five specific actions (add_entity, add_relation, query, impact, summary). This provides a good sense of the tool's scope. However, the description could be more precise by detailing what each action does, and it doesn't explicitly distinguish itself from sibling tools that may also manage memory (e.g., memento_kg).

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 guidance on when to use this tool versus alternatives like memento, memento_kg, or memento_remember. The description does not mention prerequisites, context, or scenarios where this tool is preferred. The listing of sub-actions hints at usage, but lacks explicit 'when to use' or 'when not to use' information.

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