Skip to main content
Glama
Unilytics MCP Server

Unilytics MCP Server

Official

compact_skill_memory

Destructive

Replaces a page of a skill's memory entries with a summary to condense full memory and free room while keeping every other entry.

Instructions

Replace a page of a skill's memory entries with one summary entry (for a memory that is full).

Replaces exactly the entries a get_skill_memory read showed (its `page`) with `summary`, which is
added as the newest entry; every other entry is kept. A full memory is condensed page by page:
an oldest_first read, then this tool on its page, until there is room. An entry no read showed
is never replaced: page_changed when the page's entries changed since the read, range_required
without a page or up_to (or when up_to covers more than one read), and stale_read when up_to
comes from a read older than a later compaction. Irreversible for the replaced entries.

Args:
    skill_id: The skill whose memory to compact.
        A bare name (the last part of an id, e.g. "keyword_research" or a skill's own name) is
        accepted when exactly one skill the user can use has it; the result then carries `resolved`
        with its full id. A name several skills share is not_found with their full ids in
        `did_you_mean`, and so is a project skill's name: its memory is shared with the project's
        members and is written only by its full id.
    summary: The distilled summary of durable lessons to keep.
    up_to: The older form: the `as_of` of a newest-first read; replaces every entry up to it.
    page: The `page` value of the get_skill_memory read whose entries the summary covers.

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": {
      "skill_id": "<skill_id>",
      "summary": "<summary>"
    },
    "name": "compact_skill_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
up_toNo
summaryYes
skill_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.1.1
    • addedInput schema / properties / page
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Page"
      +}
    • addedInput schema / properties / up_to / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / up_to / type
      Removed value: -"integer"
  2. Changed2 schema fields changedv1.1.0
    • removedInput schema / properties / config
      Removed value: -{
      -  "default": null,
      -  "title": "config",
      -  "type": "string"
      -}
    • addedInput schema / properties / up_to
      Added value: +{
      +  "default": null,
      +  "title": "Up To",
      +  "type": "integer"
      +}
  3. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark it destructive, non-idempotent, non-read-only; the description goes further by stating that replaced entries are irreversible while every other entry is kept, and it enumerates the three failure codes with their causes. The name-resolution rules (bare name accepted only when unique, project skills require full id, did_you_mean payload) add behavioral context the annotations cannot carry.

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 scope and procedure are front-loaded in the first two paragraphs, and each block earns its place by covering side effects, errors, and parameters. It is long and the skill_id paragraph could be tightened, but the density is justified for a destructive tool with no schema documentation.

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?

For a destructive, non-idempotent tool with zero schema coverage and no output schema, the description covers irreversibility, atomicity of what is kept, the compaction workflow, and error semantics. It only partially describes the return payload (resolved, did_you_mean) and does not outline other success fields, which is a minor remaining gap.

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 description coverage is 0%, so the description must carry the parameter burden, and it mostly does: skill_id resolution rules, summary's purpose, page tied to a prior get_skill_memory read, and up_to tied to an as_of from a newest-first read. The up_to wording ('The older form') is slightly opaque and the mutual exclusivity of page vs up_to is implied rather than stated outright.

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 first line states a specific verb and resource: replace a page of a skill's memory entries with one summary entry. It clearly distinguishes itself from the read sibling get_skill_memory (which it references explicitly) and from append_skill_memory by its condensing semantics.

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 states the condition that selects this tool ('for a memory that is full'), gives the full procedure (oldest_first read, then this tool on its page, until there is room), and names the exact rejection conditions: page_changed, range_required, stale_read. An agent knows both when to call it and when it will fail.

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

Deploy Server

Other Tools