Skip to main content
Glama

Create mnemon relationship

create_mnemon_relationship

Create a relationship between two mnemon entries. The label decides everything: its kind (containment or association) and how it reads (one_way or mutual) belong to the word itself — never send a per-edge override. All 16 labels: MEMBER (NPC ∈ Faction, mutual), ALLY (mutual), ENEMY (one-way), RIVAL (one-way), PARENT_OF (Location hierarchy — sourceEntryId is the outer/larger place, e.g. Region → City → District → Tavern), CONTAINS (Location → NPC present there), LOCATED_IN (NPC → Location; inverse of CONTAINS), HAS_SUBQUEST (Quest → subquest Quest), QUEST_GIVER (Quest → the NPC who gives it), QUEST_LOCATION (Quest → the Location where it is given or set), QUEST_RELATED_NPC (Quest → NPC), QUEST_RELATED_LOCATION (Quest → Location), SESSION_ATTENDEE_CHARACTER (SessionSummary → CHARACTER-kind Player), SESSION_ATTENDEE_NPC (SessionSummary → NPC), SESSION_FEATURED_QUEST (SessionSummary → Quest), SESSION_FEATURED_LOCATION (SessionSummary → Location). sourceEntryId is the 'from' side; targetEntryId is the 'to' side — which end is which matters. Call describe_mnemon_types for the full valid (sourceType, label, targetType) matrix. For faction membership prefer memberNpcEntryIds / affiliationEntryIds on the NPC itself; for a quest's giver, location and parent prefer giverId / locationId / parentQuestId on the quest, which keep each to one link. Session-summary links have no array equivalent — the SESSION_* labels are the only way to set them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNo
labelYes
directionNoDeprecated: leave unset. The label alone decides the edge's shape — its kind and how it reads belong to the word (Mnemon D29/D33), and the server refuses a contradiction.
campaignIdYes
sourceEntryIdYes
targetEntryIdYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
colorNo
labelYes
sourceIdYes
symmetryNo
targetIdYes
directionNo
relationshipIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / label / enum
      Previous value: -[
      -  "MEMBER",
      -  "ALLY",
      -  "ENEMY",
      -  "RIVAL",
      -  "PARENT_OF",
      -  "CONTAINS",
      -  "LOCATED_IN",
      -  "HAS_SUBQUEST",
      -  "QUEST_RELATED_NPC",
      -  "QUEST_RELATED_LOCATION",
      -  "SESSION_ATTENDEE_CHARACTER",
      -  "SESSION_ATTENDEE_NPC",
      -  "SESSION_FEATURED_QUEST",
      -  "SESSION_FEATURED_LOCATION"
      -]New value: +[
      +  "MEMBER",
      +  "ALLY",
      +  "ENEMY",
      +  "RIVAL",
      +  "PARENT_OF",
      +  "CONTAINS",
      +  "LOCATED_IN",
      +  "HAS_SUBQUEST",
      +  "QUEST_GIVER",
      +  "QUEST_LOCATION",
      +  "QUEST_RELATED_NPC",
      +  "QUEST_RELATED_LOCATION",
      +  "SESSION_ATTENDEE_CHARACTER",
      +  "SESSION_ATTENDEE_NPC",
      +  "SESSION_FEATURED_QUEST",
      +  "SESSION_FEATURED_LOCATION"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / direction / description
      Added value: +"Deprecated: leave unset. The label alone decides the edge's shape — its kind and how it reads belong to the word (Mnemon D29/D33), and the server refuses a contradiction."
    • addedOutput schema / properties / kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / symmetry
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / label / enum
      Previous value: -[
      -  "MEMBER",
      -  "ALLY",
      -  "ENEMY",
      -  "RIVAL",
      -  "PARENT_OF",
      -  "CONTAINS",
      -  "LOCATED_IN",
      -  "HAS_SUBQUEST",
      -  "QUEST_RELATED_NPC",
      -  "QUEST_RELATED_LOCATION"
      -]New value: +[
      +  "MEMBER",
      +  "ALLY",
      +  "ENEMY",
      +  "RIVAL",
      +  "PARENT_OF",
      +  "CONTAINS",
      +  "LOCATED_IN",
      +  "HAS_SUBQUEST",
      +  "QUEST_RELATED_NPC",
      +  "QUEST_RELATED_LOCATION",
      +  "SESSION_ATTENDEE_CHARACTER",
      +  "SESSION_ATTENDEE_NPC",
      +  "SESSION_FEATURED_QUEST",
      +  "SESSION_FEATURED_LOCATION"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / label / enum
      Previous value: -[
      -  "MEMBER",
      -  "ALLY",
      -  "ENEMY",
      -  "RIVAL",
      -  "PARENT_OF",
      -  "CONTAINS",
      -  "LOCATED_IN"
      -]New value: +[
      +  "MEMBER",
      +  "ALLY",
      +  "ENEMY",
      +  "RIVAL",
      +  "PARENT_OF",
      +  "CONTAINS",
      +  "LOCATED_IN",
      +  "HAS_SUBQUEST",
      +  "QUEST_RELATED_NPC",
      +  "QUEST_RELATED_LOCATION"
      +]
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-destructive write. The description adds real behavioral context beyond them: the deprecated direction parameter, that the server 'refuses a contradiction' between a per-edge override and the label, and that sourceEntryId/targetEntryId ordering is semantically load-bearing. It also discloses cardinality consequences ('keep each to one link').

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 critical rule ('The label decides everything') is front-loaded, and the closing routing advice is well-placed. The 16-label enumeration is long and partially duplicates the enum already in the schema, but each entry adds source/target type semantics the enum cannot express, so the length is mostly justified.

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 write tool with an output schema, the description covers what matters: which parameter determines edge shape, direction ordering, the deprecated field, the valid label matrix via a sibling tool, and when to prefer an alternative API. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is only 17%, so the description carries the load — and it does, defining the 'from'/'to' roles of sourceEntryId and targetEntryId and the source/target types implied by each of the 16 labels. The gap is color and campaignId, which are never explained in either the schema or the description; color in particular is a free-form field with no stated effect.

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+resource: 'Create a relationship between two mnemon entries.' It is immediately distinguishable from delete_mnemon_relationship and list_mnemon_relationships, and the follow-on sentence pins down that the edge's kind and reading are derived from the label rather than from caller input.

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?

Explicitly routes the agent away from this tool where an alternative exists: 'for faction membership prefer memberNpcEntryIds / affiliationEntryIds on the NPC itself; for a quest's giver, location and parent prefer giverId / locationId / parentQuestId'. It also states the one case with no alternative ('SESSION_* labels are the only way to set them') and points to describe_mnemon_types for the full 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.