Skip to main content
Glama

memory_archive_upsert

Create or update a team memory archive with title and project deduplication to persist lessons and decisions across conversations.

Instructions

Create or update an archive (title + project dedup), same contract as POST /api/v1/archives. Use for L0/L1/L2 text fields only; large files via HTTP POST /api/v1/archives/{archive_id}/attachments/upload or python -m team_memory.cli upload (after you have archive_id). Does not embed file bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
scopeNosession
titleYes
projectNo
overviewNo
scope_refNo
content_typeNosession_archive
solution_docYes
value_summaryNo
raw_conversationNo
conversation_summaryNo
linked_experience_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It usefully discloses upsert/dedup behavior and the key limitation 'Does not embed file bytes.' However, it does not clarify whether an update overwrites existing fields, what happens to omitted fields, or any auth/concurrency considerations, so disclosure is only partial.

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 focused sentences with no filler. The primary action is front-loaded, and each sentence adds a distinct piece of information: upsert semantics, text-only scope with alternatives, and the file-bytes limitation.

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?

The tool has 12 parameters, 0% schema description coverage, and no annotations, so the description needs to do substantial work. It gives a solid high-level orientation but leaves most input-field semantics and required-value expectations unexplained. The presence of an output schema does not compensate for the input-side gaps.

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 adds meaning for 'title + project' as the dedup key and restricts content to L0/L1/L2 text fields, but it does not explain required fields like solution_doc or most optional parameters. Referencing the same contract as POST is useful, but not self-contained.

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 names a specific action ('Create or update an archive'), identifies the resource, and gives the dedup key ('title + project'). It also distinguishes itself from sibling tools by being explicitly archive-focused and by referencing the POST /api/v1/archives contract.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to use this tool ('L0/L1/L2 text fields only') and gives direct alternatives for large files via the attachments upload endpoint or CLI after archive_id is available. This is clear when-to-use and when-not-to-use guidance.

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