Skip to main content
Glama

Save handover context

write_previous_context

Saves a short handover note for the next session of this persona and project, replacing the previous one.

One note per account, persona and project. The next `activate` of this
persona and project returns it; remove it afterwards with
`clear_previous_context`.

`project_scope`: the project the entry belongs to. Omitted, the session's
project is used (the `X-Project-Scope` header, otherwise the server
default). Pass "global" for the general memory shared by all projects,
only for what holds in every project; the general memory is read on the
Pro plan only.

Content: facts, with code, paths and figures kept exact. At most 6 000
characters. The next activation serves it before the memory pack and takes
its room from it, so a note is usually a few lines.

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": {
      "content_md": "<content_md>"
    },
    "name": "write_previous_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
content_mdYes
persona_slugNo
project_scopeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / persona_slug / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / persona_slug / default
      Previous value: -"soov"New value: +null
    • removedInput schema / properties / persona_slug / type
      Removed value: -"string"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses the overwrite behavior ('replacing the previous one'), the 6 000 character cap, and the downstream budget effect ('takes its room from it' in the memory pack). It also flags a plan-gated behavior: the general memory is read on the Pro plan only — a constraint the annotations cannot express.

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-loaded with the one-sentence summary, then separated into scope and content blocks, so an agent can scan to the needed part. It is somewhat dense and longer than typical, but nearly every clause carries a non-obvious operational constraint (overwrite, char cap, room cost, Pro gating), so little is wasted.

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?

Output schema exists, so return values need no explanation; annotations cover the safety profile. The description fills the remaining gaps an agent needs to call this correctly: overwrite risk, size limit, scope defaulting, and where the note resurfaces. Nothing material is missing for a three-parameter write tool.

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

Parameters5/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 load, and it does: project_scope default resolution is spelled out (X-Project-Scope header, else server default) plus the special "global" value and its plan restriction. content_md is given content guidance (facts, exact code/paths/figures, size limit). Only persona_slug is left implicit, which is a minor residual gap given how much is otherwise supplied.

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 and resource: 'Saves a short handover note for the next session of this persona and project, replacing the previous one.' The replacement semantics and the per-account/persona/project cardinality ('One note per account, persona and project') make the operation unmistakable, and it explicitly contrasts with clear_previous_context.

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?

Gives clear when-to-use context (handover to the next session, consumed by the next activate) and routes removal to clear_previous_context. It also constrains 'global' to only what holds in every project. It stops short of saying when a note is not warranted versus write_event, so it is strong context rather than a full when/when-not decision matrix.

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.