Skip to main content
Glama

Lagre til Tua

tua_save

Save AI output or other content as an atom with automatic provenance and no folder selection. Use a stable key to replace and version updates in a project.

Instructions

Lagre et stykke AI-output (eller annet innhold) som et atom i Tua-arkivet. Proveniens (kilde, prosjekt, samtale, tid) festes automatisk. Det finnes ingen mappe å velge — det er hele poenget. Send HELE innholdet i content, og ALLTID en ingress i short (S). Er innholdet over ~3 000 tegn, send også medium (M).

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": "<content>"
    },
    "name": "tua_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoStabil nøkkel for ting som oppdateres over tid (f.eks. «manifest», «commit-logg», «status»). Finnes et atom med samme key i samme prosjekt, ERSTATTES innholdet — id og synlighet beholdes, versjonen telles opp. Utelat for engangs-innhold.
kindNocapture (standard) eller leveranse (bygget av andre atomer — settes automatisk når derivedFrom sendes).
nameNoTittel. Utelat for å ta første linje automatisk.
tagsNo1–4 korte tagger.
convoNoKort tittel på samtalen/oppgaven dette kom fra — pekeren tilbake til konteksten.
linksNoAtomets egne pekere: fila det ble skrevet til (kind=file, absolutt sti), en nettadresse (url), repoet (repo), eller Desktop-prosjekt/-samtale (claude-project/claude-chat som claude://-lenke). Repo og Desktop-prosjekt for prosjektet legges til automatisk fra prosjektregisteret — send bare det som er spesifikt for dette atomet.
shortNoS — ingressen, 1–3 setninger, maks 300 tegn. Svarer på «hva er dette?»: konklusjonen, tallene som bærer den (beløp, datoer, prosent), status (gjeldende/historisk). Send ALLTID.
mediumNoM — sammendrag, 150–400 ord (maks 2 500 tegn), når innholdet er over ~3 000 tegn: beslutninger, tall, korreksjoner, åpne punkter, struktur. Ikke transkript. Nivå er mengde, ikke redaksjon — ikke utelat navn/tall som står i L.
sourceNoKilde-AI. Standard: Claude.
contentYesHele innholdet som skal lagres (markdown/tekst). Dette er L.
projectNoProsjektet dette hører til (f.eks. «Tua Business»). Bruk brukerens prosjektnavn, ellers repo/mappe-navn.
rendersNoGjengivelser av dette atomet: html/pdf som absolutt sti (sha256 regnes ut), eller artifact som url. Fila er en gjengivelse — atomet (markdown) er sannheten. Send med samme key når du har rendret.
summaryNoÉn linje: HVORFOR ser det slik ut / hva ble bestemt. Lever ved siden av S, ikke i stedet for.
hoerer_tilNoArbeidet saken hører til (sak-id, eller tittelen på et arbeid i samme prosjekt) — når brukeren sier «dette hører til Anken». Et arbeid er en sak som samtaler, tråder og saker henger på.
derivedFromNoKildeatomene en leveranse er bygget av: id, versjonen du leste, nivået du leste på. tua_compose fyller dette selv; send det når du bygde leveransen av tua_get-resultater for hånd.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.21
    • addedInput schema / properties / hoerer_til
      Added value: +{
      +  "description": "Arbeidet saken hører til (sak-id, eller tittelen på et arbeid i samme prosjekt) — når brukeren sier «dette hører til Anken». Et arbeid er en sak som samtaler, tråder og saker henger på.",
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "capture",
      -  "leveranse",
      -  "samtale",
      -  "minne"
      -]New value: +[
      +  "capture",
      +  "leveranse",
      +  "samtale",
      +  "minne",
      +  "prompt",
      +  "svar",
      +  "konklusjon"
      +]
    • changedInput schema / properties / links / items / properties / kind / enum
      Previous value: -[
      -  "file",
      -  "url",
      -  "repo",
      -  "claude-project",
      -  "claude-chat"
      -]New value: +[
      +  "file",
      +  "url",
      +  "repo",
      +  "claude-project",
      +  "claude-chat",
      +  "utdrag"
      +]
  2. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare it is a non-read-only, non-destructive, non-idempotent write; the description adds real behavioral context beyond that: provenance (source, project, conversation, time) is attached automatically and no folder choice exists. It omits the key-based overwrite semantics and the return value, but those gaps are smaller given the explicit write/overwrite framing elsewhere.

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 core action is front-loaded and the mandatory-content/mandatory-ingress rules follow immediately. The aside 'det er hele poenget' is rhetorical but does reinforce a non-obvious constraint, and every remaining sentence carries an actionable rule.

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 15-parameter write tool the description correctly focuses attention on the three parameters that actually determine call quality (content, short, medium). With no output schema it does not say what comes back (atom id, version), which is the main remaining gap.

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 description coverage is 100% and the parameter docs already define S/M/L, size thresholds, and the always-send rule for short. The description largely restates those expectations with emphasis rather than adding new meaning, so this sits at the high-coverage baseline.

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?

States a specific verb and resource: 'Lagre et stykke AI-output ... som et atom i Tua-arkivet', and adds a distinguishing trait ('Det finnes ingen mappe å velge'). It does not name any sibling tool, so an agent must infer from names alone whether tua_compose or tua_import is the better fit.

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?

Gives concrete calling directives — 'Send HELE innholdet i content', 'ALLTID en ingress i short (S)', and a size threshold for medium — but these are invocation rules rather than when-to-use-this-vs-alternatives guidance. Nothing tells the agent when to prefer tua_compose or tua_import instead.

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