Skip to main content
Glama

Choose Persona

persona_waehlen
Destructive

Dieser CHAT arbeitet ab jetzt ALS diese Persona — und ihre Grenzen gelten (POST /sitzung/chat).

ERGEBNIS IST EIN CHAT-TOKEN (`chat`). Mit dem Argument `chat`
handelt ein Aufruf als diese Persona; ohne es handelt er als die ungebundene
Verbindung. Der Token gilt für diesen Chat und ist nicht zum Zeigen
gedacht; ein anderer Chat bekommt seinen eigenen.

DIE VERBINDUNG WIRD NICHT GEBUNDEN. Mehrere Chats derselben Anmeldung
können gleichzeitig als verschiedene Personas arbeiten: jeder ruft dieses
Verb für seine Persona auf und reicht seinen eigenen Token mit. Ein Chat
stört den anderen nicht.

DAS IST DER UNTERSCHIED ZU `persona_brief`: der LIEST eine Rolle vor,
dieses Verb legt die Persona dieses Chats fest. Mit dem Token darf der
Chat schreibend genau die Verben, die an der Persona unter
`mcp_werkzeuge` angehakt sind; Lesen bleibt immer erlaubt. Freigaben,
Sichtfeld und Urheber (`von_persona`) gelten sofort — derselbe
Durchsetzungsweg wie bei einem an eine Persona gebundenen Schlüssel:
`werkzeug_freigabe.bindung_holen` fragt `GET /ich`, und der Kern gibt die
Persona des Chats dort im selben Feld aus.

DIE PERSONA MUSS DIR ERLAUBT SEIN. Jeder Mensch hat in jedem Projekt eine
Liste erlaubter Personas; steht die gewählte nicht darin, antwortet der
Kern 403 — ein Eigentümer oder Verwalter kann sie in der Liste setzen.

NAME ODER KENNUNG, GROSS ODER KLEIN: `slug` darf die Kennung (`julia`) oder
der Anzeigename (`Julia Muster`) sein, ohne Beachtung der Groß-/Kleinschreibung
-- `Julia`, `JULIA` und `julia` meinen dieselbe Stelle. Gesucht wird in dieser
Reihenfolge, die erste Stufe mit Treffern gilt: (1) Kennung genau, (2) Kennung
ohne Groß-/Kleinschreibung, (3) Anzeigename ohne Groß-/Kleinschreibung --
jeweils nur unter den AKTIVEN Stellen der Projekte dieses Menschen. Passt auf
eine Stufe mehr als eine Stelle, kommt eine Rückfrage (409), nie ein Raten;
die Wahl liegt beim Menschen. Passt nichts, nennt die 404 unter `vorschlaege` ähnliche
Kennungen und Namen -- nur aus den Projekten dieses Menschen.

DIE PERSONA FINDET IHR PROJEKT. Steht die Stelle nicht im laufenden
Projekt, sucht der Kern sie in ALLEN Projekten dieses Menschen:
  * eindeutig  -> der Chat arbeitet in diesem Projekt als diese Stelle. Die
                  Antwort nennt `projekt`; es weicht ab, wenn die Stelle in einem
                  anderen Projekt liegt als dem, in dem die Verbindung angelegt wurde.
  * mehrdeutig -> 409 mit `projekte` (Slug, Name, Rolle, `laufend`, dazu
                  `persona` und `persona_name`). Das ist eine RUECKFRAGE und
                  kein Fehler: welches gemeint ist, sagt der Mensch (es wird nicht
                  geraten); danach geht der Aufruf mit `projekt=<slug>` noch einmal.
  * nirgends   -> 404 „gibt es in keinem deiner Projekte". Der Satz nennt
                  bewusst kein fremdes Projekt.
`projekt` ist die ANTWORT auf diese Rückfrage (Slug aus `projekte`). Ohne
Rückfrage nicht setzen.

DAS VERB WIRD AUFGERUFEN, WENN DER MENSCH FUER DIESEN CHAT EINE PERSONA NENNT.
„Du bist jetzt Andy“, „sei Paula“, „wechsel zu Luis“ -- dann
`persona_waehlen("andy")`. Das Ergebnis ist ein Token; ein Wechsel ist ein
neuer Aufruf mit neuem Token. Danach liefert `persona_brief` Aufgabe,
Grenzen und Regeln dieser Persona.

GRENZEN, und sie liegen im Kern, nicht hier:
  * nur Projekte, in denen dieser Mensch MITGLIED ist; eine Stelle in einem
    fremden Mandanten taucht in keiner Antwort auf, auch nicht als Zahl.
  * nur AKTIVE Personas -- eine verabschiedete Stelle gibt 409.
  * der Token gilt 24 Stunden und nie länger als die Verbindung. Ist er
    abgelaufen, sagt der Kern das in einem Satz: dann dieses Verb noch einmal.
  * jeder Aufruf wird protokolliert (`compass_persona_wahl`).

BRAUCHT EINE MENSCHEN-SITZUNG, also den OAuth-Weg. Mit einem bloßen
`X-Compass-Key` gibt es keine Sitzung, an die sich etwas binden ließe --
ein solcher Schlüssel trägt seine Bindung bereits selbst oder keine.

Rückgabe: `chat` (der Token), `persona` (die Kennung), `projekt`,
`laeuft_ab_am`, ein `hinweis` und das PROFIL der Persona: `profil` (die vier
Farben mit Prozent, oder `null` ohne Profil) und `verhalten` (die Verhaltenszeile
mit den zwei stärksten Farben, oder `null`) -- ein Chat bekommt sie auch ohne
`persona_brief`.

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

Input Schema

NameRequiredDescriptionDefault
slugYes
projektNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes far beyond the annotations: token lifetime (24h, never beyond the session), immediate effect on write permissions per persona's mcp_werkzeuge, 403/409/404 semantics including suggestions on 404, that ambiguity is never guessed, that other chats are unaffected, and that every call is logged. This substantially compensates for the coarse destructiveHint=true flag, which the text effectively qualifies by explaining that the connection itself is not bound and no other chat is disturbed.

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 core effect and well organized into bolded sections, but it is unusually long and repeats itself — the 'never guess, the human decides' idea appears three separate times across the ambiguity, project, and limits sections. Every section is relevant, yet tightening would improve scanability for an agent.

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?

For a stateful, permission-granting tool this covers everything an agent needs: prerequisite auth path, error branches with next actions, token lifetime, and return contents (`chat`, `persona`, `projekt`, `laeuft_ab_am`, `hinweis`, `profil`, `verhalten`). Even though an output schema exists, the named return fields add useful orientation without redundancy.

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 coverage is 0% and both parameters are undocumented in the schema, but the description fully supplies meaning: slug may be the Kennung or Anzeigename, case-insensitive, with an explicit three-stage resolution order and a 409 on multi-match; projekt is defined as the answer to that 409 ('Ohne Rückfrage nicht setzen'). Nothing about either parameter is left to guesswork.

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?

States a concrete verb and effect on a specific resource: 'Dieser CHAT arbeitet ab jetzt ALS diese Persona', and immediately distinguishes itself from the sibling: 'DAS IST DER UNTERSCHIED ZU persona_brief: der LIEST eine Rolle vor, dieses Verb legt die Persona dieses Chats fest.' An agent can route between persona_waehlen and persona_brief without opening either schema.

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?

Gives an explicit trigger condition with quoted user phrasings ("Du bist jetzt Andy", "sei Paula", "wechsel zu Luis") and the resulting call, states that a switch is a new call with a new token, names the alternative tool and its role, and states a hard prerequisite ('BRAUCHT EINE MENSCHEN-SITZUNG ... Mit einem bloßen X-Compass-Key gibt es keine Sitzung'). When-to-use, when-not, and prerequisites are all covered.

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.