Skip to main content
Glama
Omni Memory MCP

Omni Memory MCP

by allanschramm

memory_context_pack

Build a compact, token-budgeted context pack from matching memories to give agents focused context without reading full documents.

Instructions

Assemble a compact, token-budgeted context pack from matching memories without reading full documents.

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": {
      "query": "<query>"
    },
    "name": "memory_context_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoFilter by tag
areaNoFilter by area
queryYesSearch query used to assemble the context pack
projectNoFilter by project
max_tokensNoMaximum estimated token budget (default: 1200)
search_modeNoRanking mode (default: balanced)
max_memoriesNoMaximum memories to include (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.7

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose two real behaviors -- output is token-budgeted and full documents are not read -- but says nothing about how the pack is assembled, what happens with zero matches, or whether the result is deterministic.

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?

One sentence with no filler, and the key distinguishing idea (token-budgeted, no full-document reads) is front-loaded. Only minor gain could come from splitting out usage guidance.

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 tool with no output schema, the definition leaves the shape and contents of the returned pack unexplained, which is the main thing an agent needs to know. It is adequate for calling the tool but thin for anticipating results.

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 100%, so all seven parameters, including the max_tokens and max_memories defaults, are already documented. The description adds only the general notion of "matching memories" and token budgeting, no syntax or selection semantics beyond the schema.

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?

A specific verb and resource: "Assemble a compact, token-budgeted context pack from matching memories." The trailing phrase "without reading full documents" implicitly contrasts it with document-reading siblings like memory_search, letting an agent tell them apart without extra detail.

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?

The implied usage is clear (get a budgeted context pack instead of full documents), but no conditions are stated for when to prefer this over memory_search or memory_get, and no exclusions or prerequisites are given beyond the implied contrast.

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