Skip to main content
Glama

save_slice

Record or update a non-destructive working-memory slice in local JSON, capturing goals, decisions, constraints, rejected ideas, or tagged turn content for active context.

Instructions

Save or update a non-destructive ContextSlicer working-memory slice (goal, decisions, constraints, rejected, or tagged turn content) in local JSON storage.

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": {
      "id": "<id>"
    },
    "name": "save_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUnique slice/session identifier
goalNoPrimary goal to record
roleNoOptional turn role (context/user/assistant)
contentNoOptional raw turn content (supports <spec cat="..."> tags)
rejectedNoRejected ideas or approaches
decisionsNoKey decisions made
constraintsNoHard constraints or requirements

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure; it does add real value by stating the write is 'non-destructive' and lands in 'local JSON storage.' However, it does not say whether an update merges with or replaces existing fields, whether writes are idempotent, or what a successful call returns.

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?

It is a single front-loaded sentence with the action and target stated first and the field list trailing as supporting detail. The parenthetical duplicates schema content slightly, but nothing is wasteful.

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 7-parameter, annotation-free mutation tool with no output schema, the definition covers what is stored and where but omits the update semantics (merge vs overwrite) and the shape of a successful response. An agent can call it, but cannot fully predict the effect of re-saving an existing id.

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% and every parameter is documented in the schema, so the baseline is 3. The description's parenthetical enumeration of goal/decisions/constraints/rejected largely restates schema fields and adds no merge-vs-replace semantics for the update path, which is the main ambiguity an agent faces.

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?

The description gives a specific verb pair ('Save or update'), a clearly named resource ('non-destructive ContextSlicer working-memory slice'), and the storage target ('local JSON storage'). It implicitly separates itself from read/delete siblings like get_slice and delete_slice through the write verb, though it never names them.

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?

Usage is only implied: 'Save or update' signals an upsert keyed on id, which is useful context. There is no explicit guidance on when to prefer this over slice_and_retrieve or list_slices, and no stated preconditions or exclusions.

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