Skip to main content
Glama

mosADD — the comms layer for AI agents

mRAG_ingest

Add text to the USER'S OWN private knowledge base so mRAG_search can recall it later. Pass content_text (a note, document, transcript, pasted page); it is semantically chunked, embedded (1536-d) and stored in the per-user vector index mRAG_search reads. Returns how many chunks were indexed. ⚠ IF YOU ARE INDEXING A CORPUS you want to TRAVERSE (who is connected to whom, when), also pass sender / recipient / occurred_at: the knowledge graph builds its nodes from those fields alone, so documents ingested without them are searchable but contribute NOTHING to mRAG_graph_overview / _neighbors / _timeline — the graph comes back empty however many documents you loaded. Reuse the same party ref across documents to merge them into one node. NOTE: indexed content and metadata are stored server-side in plaintext — NOT covered by the zero-knowledge / E2EE guarantee. Only ingest what the user opted to make searchable.

Input Schema

NameRequiredDescriptionDefault
mimeNoMIME type of the original file, if known.
nameNoOriginal filename, if this came from a file (e.g. 'pozew-2019-03-11.pdf'). Its extension is what classifies the row as a document/image/audio in the file view. Distinct from `title`, which is free prose.
sizeNoSize of the original file in bytes, if known.
titleNoOptional human title, stored in metadata.
labelsNoFree-text tags to attach (e.g. a case id, a jurisdiction) for later filtering.
senderNoWho the document is FROM (author, filing party, sender). Becomes a node in the knowledge graph — without it this document adds no party to mRAG_graph_overview.
metadataNoAny extra fields to store alongside the row (case id, docket number, jurisdiction, file path, checksum, sensitivity flag…). Stored verbatim and returned with search hits. NOTE: this is stored server-side in plaintext like the content itself.
directionNoDirection relative to the account owner: received, sent, or the owner's own note.
recipientNoWho the document is TO (addressee, court, counterparty). Becomes a node in the knowledge graph, connected to `sender`.
source_idNoOptional stable id for the source so re-ingests of the SAME document group together (and can be removed later with mRAG_delete). Any string works — a file path, a case number, a checksum: a non-UUID is folded into a stable id derived from it, deterministically, and the original is kept as metadata.source_ref.
thread_idNoOptional thread id to associate this knowledge with (e.g. a dm:/chat: thread).
occurred_atNoISO-8601 timestamp of WHEN the document happened (letter date, filing date, email Date header) — not when you indexed it. Drives mRAG_graph_timeline; defaults to now if omitted, which makes a 2019 filing look like it happened today.
source_typeNoWhat kind of source this is. Default 'file' (a document/note). Use 'note' for ad-hoc text.
content_textYesText to index into the user's private knowledge base (a note, document, transcript, pasted page…). Chunked + embedded server-side.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

The annotations declare readOnlyHint=false, so mutation is already known; the description adds real value by disclosing what gets destroyed, specifically that per-user-indexed content and metadata are stored server-side in plaintext and are NOT covered by the E2EE/zero-knowledge guarantee. That disclosure is exactly the kind of behavior an agent needs before a write. It falls short of a 4-5 because it does not state whether re-ingesting the same document overwrites or duplicates, any size/rate limits, or error behavior.

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?

The primary action and the critical corpus caveat are front-loaded and the warning is scoped with ⚠ so it reads as a deliberate exception rather than noise. It is dense but slightly long, with the plaintext-privacy note and the graph warning stacked into one block.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 14 parameters, one required, and no output schema, the description still covers the three things that matter: what the tool does with content, what it returns ('how many chunks were indexed'), and the privacy/storage caveat. An agent has everything needed to call it correctly, including how this call determines whether sibling graph tools return anything.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description nonetheless adds meaning beyond the schema by explaining the cross-tool consequence of omitting sender/recipient/occurred_at (an empty graph however many documents were loaded) and the ref-reuse merging rule. That is behavioral impact the schema text implies only partially, lifting it above baseline.

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?

Opens with a specific verb+resource ('Add text to the USER'S OWN private knowledge base') and immediately names its downstream consumer, mRAG_search, which distinguishes it from every sibling. The pipeline description ('semantically chunked, embedded (1536-d) and stored in the per-user vector index') makes the mechanism unambiguous.

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?

Explicitly states when to use it (a note, document, transcript, pasted page) and adds a conditional branch for corpus ingestion with the exact fields required (sender / recipient / occurred_at). It also names the affected alternatives (mRAG_graph_overview / _neighbors / _timeline) and warns what happens if they are omitted — an unusually complete when/when-not/alternatives statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.