Skip to main content
Glama

Entity Dossier

memory-dossier

Aggregates knowledge-graph facts, memory mentions, and recent activity about an entity into a categorized snapshot with optional token budgets, so agents can answer 'what do we know about X?' directly.

Instructions

Aggregate everything przm Memory knows about an entity (person, project, concept) into a structured snapshot. Pulls from FOUR sources: (1) KG triples where the entity is subject — definitive facts about the entity; (2) KG triples where the entity is object — facts where others reference the entity (e.g. "Alice reports-to Matt" appears in Matt's dossier as referencedBy); (3) memory chunks mentioning the entity in content/tags/topic — preferences, decisions, context; (4) recent activity ordered by createdAt — what came up lately. Output is grouped by category (facts, preferences, decisions, corrections, recent) so the consumer doesn't have to bucket the chunks themselves. Honors an optional budgetTokens cap; greedy fill within each category when set. Used by przm's Context Budget Engine to populate "what we know about " slots without spending the entire memories budget on a search-by-relevance grab bag.

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": {
      "entity": "<entity>"
    },
    "name": "memory-dossier"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoOptional domain filter (limits dossier to a single project/scope).
entityYesEntity name. Matches against KG subject, chunk content (substring), tags (exact), and topic (exact). Case-insensitive.
budgetTokensNoOptional token cap for the returned set. When set, each category fills greedy by importance until the per-category share is exhausted (~25% of budget per category). Without budget, returns up to maxPerCategory entries per category.
maxPerCategoryNoMax entries per category when budgetTokens is omitted (default: 5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does substantial work: it discloses the four retrieval sources, how referencedBy facts surface, that output is bucketed into facts/preferences/decisions/corrections/recent, and that budgetTokens triggers greedy fill. It omits read-only confirmation, empty/miss behavior, and result size, so it is strong but not complete.

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?

Front-loads the core purpose and then structures the four sources as a numbered list, making it scannable. The final sentence about the Context Budget Engine is longer than it needs to be but earns its place by justifying the tool's existence.

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

Completeness4/5

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

With no output schema, the description compensates by describing the returned grouping and the greedy-fill behavior, and all four parameters are fully documented. Only edge cases such as a non-matching entity or empty categories are left unaddressed.

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 the baseline is 3. The description reinforces the entity semantics (matched as KG subject, and referenced as object) which adds a little framing, but the budgetTokens per-category share and maxPerCategory default are already documented in the schema, so marginal value is limited.

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?

States a specific verb and resource ('Aggregate everything przm Memory knows about an entity into a structured snapshot') and enumerates the four data sources the aggregation draws from, including the subject-vs-object KG distinction. An agent can tell this apart from a relevance-ranked search without opening the schema.

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?

Frames the use case concretely: populating 'what we know about <X>' slots via the Context Budget Engine instead of 'a search-by-relevance grab bag', which implicitly routes the agent away from memory-search for entity-centric lookups. It stops short of naming the sibling or stating explicit exclusions or prerequisites.

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