Skip to main content
Glama

Bygg en leveranse av atomer

tua_compose

Compose multiple atoms into a single markdown deliverable, save it as a new atom with provenance to its sources, and assemble conversation turns for review or continuation.

Instructions

Sett sammen flere atomer til én leveranse (markdown) og lagre den som et nytt atom med proveniens tilbake til kildene (hvilken versjon, hvilket nivå). Bruk når brukeren sier «lag et notat/dokument/sammendrag av disse», «sett sammen X, Y og Z». Standard nivå er M (sammendragene) — L bare når brukeren ber om hele innholdet. Vault-merkede atomer tas med bare som S. Du får markdown-kilden tilbake: skriv den om i husstilen om nødvendig og lagre resultatet med tua_save(key=samme key), og fest html/pdf som renders etterpå. Med samtale (en samtale-sak fra tua_search, eller en sak i den) får du SAMTALEN som vendinger — user/assistant-blokker slik en modell ville fått dem — de oppgitte vendinger, ellers Tuas standardvalg (alt etter siste låste konklusjon, innenfor budsjettet). Bruk det når brukeren vil fortsette eller vurdere en samtale fra Tua.

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

Input Schema

NameRequiredDescriptionDefault
idsNoAtom-id-ene som skal inn, i den rekkefølgen de skal stå. Kan utelates når `samtale` er gitt.
keyNoStabil nøkkel (f.eks. «lev:riulf-styrenotat») så en ny kjøring erstatter forrige versjon.
nameYesTittel på leveransen, f.eks. «Styrenotat Riulf — oktober 2026».
tagsNo
convoNoSamtalen/oppgaven dette lages i.
introNoValgfri ingress/innledning øverst i leveransen.
levelNoNivået kildene leses på: S, M (standard) eller L.
contextNoBygg som dette prosjektet ser kildene (aldri mer enn nivået det har fått).
projectNoProsjektet leveransen hører til. Standard: det første kildeatomets prosjekt.
samtaleNoEn samtale (samtale-sakens id eller nøkkel, en sak i samtalen, eller økt-id for en importert samtale): vendingene legges inn som user/assistant-blokker, skjermet, etter kildene.
vendingerNoVending-id-ene fra samtalen som skal med (fra tua_get på samtalen, eller GET /api/samtale). Utelat for standardvalget.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.5.21
    • changedInput schema / properties / ids / description
      Previous value: -"Atom-id-ene som skal inn, i den rekkefølgen de skal stå."New value: +"Atom-id-ene som skal inn, i den rekkefølgen de skal stå. Kan utelates når `samtale` er gitt."
    • removedInput schema / properties / ids / minItems
      Removed value: -1
    • addedInput schema / properties / samtale
      Added value: +{
      +  "description": "En samtale (samtale-sakens id eller nøkkel, en sak i samtalen, eller økt-id for en importert samtale): vendingene legges inn som user/assistant-blokker, skjermet, etter kildene.",
      +  "type": "string"
      +}
    • addedInput schema / properties / vendinger
      Added value: +{
      +  "description": "Vending-id-ene fra samtalen som skal med (fra tua_get på samtalen, eller GET /api/samtale). Utelat for standardvalget.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "ids",
      -  "name"
      -]New value: +[
      +  "name"
      +]
  2. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare write (readOnlyHint=false), non-destructive, non-idempotent, closed-world, so the safety bar is lower; the description still adds real behavior: what comes back (the markdown source), that html/pdf renders are attached afterwards, how level and vault-marking change which source content is used, and how provenance is recorded. One ambiguity remains: it says the deliverable is saved as a new atom AND that the agent must save the result with tua_save(key=same key), leaving the exact persistence sequence unclear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded and few sentences are pure filler, but the text is one dense block that merges two modes and several workflows (compose, save, render attachment, conversation extraction) without separation, which makes it easy for an agent to miss the save-with-same-key instruction. Some tightening and structural breaks would materially improve it.

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 an 11-parameter, no-output-schema tool it covers the essentials: what it returns (markdown source), how levels and vault atoms are treated, provenance, and the follow-up save/render steps. It does not cover failure behavior (missing ids, unknown samtale, key collisions) or the shape of the newly created atom, 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 91%, so the baseline is 3, but the description adds genuine meaning: `level` semantics (M default, L only on explicit request, vault atoms only ever S), the `samtale`/`vendinger` interplay (default selection = everything after the last locked conclusion within budget), and the role of `key` for replacing a previous version. `intro`, `context`, `tags` and `convo` are left entirely to the schema.

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 concrete verb+resource: compose several atoms into one markdown deliverable and store it as a new atom with provenance to the sources. It is distinguishable from tua_save (which is explicitly named as the follow-up step). It loses a point because the definition quietly folds in a second, quite different mode (the `samtale` conversation-turn extraction), so the tool's identity is slightly two-headed.

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 concrete user triggers ('lag et notat/dokument/sammendrag av disse', 'sett sammen X, Y og Z') plus continuation triggers for the conversation mode, and states the default level M vs L only on request, with vault atoms forced to S. It also prescribes the downstream workflow with tua_save(key=same key). No explicit when-not-to-use or named alternative for the cases where you would skip composing, which keeps it from a 5.

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