Skip to main content
Glama
vbcherepanov

total-agent-memory

kg_add_fact

Record a temporal fact assertion (subject, predicate, object) and supersede prior assertions with same subject and predicate, preserving history for evolving architectural decisions.

Instructions

Record a temporal fact assertion (subject, predicate, object). Supersedes any prior assertion with same (s,p) and different object — full history is preserved. Use for evolving architectural decisions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectYes
contextNo
projectNogeneral
subjectYes
predicateYes
confidenceNo
invalidate_previousNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

The description openly discloses the crucial side effect: adding a fact with the same subject-predicate but a different object supersedes the prior assertion, yet the full history is preserved. It also notes the temporal nature, aligning with the non-destructive annotation (destructiveHint false).

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?

The description is concise and well-structured, using two clear sentences. It front-loads the primary action and then explains the key behavior and use case without unnecessary verbosity.

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?

The description gives the core purpose and main side effect, which is adequate for a simple add-fact operation. However, given the low parameter coverage and lack of output schema details, it leaves gaps regarding parameter semantics and expected return behavior, making it only partially complete for an agent to use confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It mentions only the three required parameters (subject, predicate, object) but leaves the other four (context, project, confidence, invalidate_previous) unexplained. The description does not clarify the role of these additional parameters, making it insufficient for full parameter understanding.

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?

The description clearly states the tool's purpose: to record a temporal fact assertion with subject, predicate, and object. It also specifies the context of use ('evolving architectural decisions') and the key behavior of superseding prior assertions while preserving history.

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?

The description provides a specific use case ('Use for evolving architectural decisions') and explains the supersede-and-preserve behavior, which helps distinguish it from other memory/knowledge graph operations. However, it does not explicitly name sibling tools or contrast with alternatives like kg_invalidate_fact.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vbcherepanov/total-agent-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server