Skip to main content
Glama

add_relationship

Create or update directional or reciprocal relationship edges between characters or houses in the active campaign, including secrets, sentiment, and public facades.

Instructions

Create or update a directional or reciprocal relationship edge pair in the active campaign.

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": {
      "fromType": "<fromType>",
      "fromId": "<fromId>",
      "toType": "<toType>",
      "toId": "<toId>",
      "type": "<type>"
    },
    "name": "add_relationship"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
toIdYesTarget character or house ID/name
typeYes
fromIdYesSource character or house ID/name
oneWayNoIf true, do not create reciprocal inverse edge
toTypeYes
fromTypeYes
isSecretNoSet true if relationship is hidden from public record (Maester mode)
sentimentNoPersonal emotional sentiment (-100 to +100)
publicFacadeNoPublicly acknowledged cover story of relationship

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real value by disclosing upsert semantics and that a reciprocal inverse edge pair is created by default, plus campaign scoping, but it says nothing about required permissions, whether an update overwrites or merges existing edge attributes, or what a successful call returns.

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?

A single well-formed sentence with the core semantics front-loaded and no wasted words. Brevity is a virtue here, though for a 10-parameter mutation it is arguably too terse to be fully adequate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 10-parameter mutation with secret-relationship and public-facade concepts, no annotations, and no output schema. A one-sentence description does not cover update-vs-create behavior, reciprocal edge creation details, or the visibility semantics, leaving significant gaps for an agent.

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 60%, and the undocumented parameters (fromType, toType, type) are enums whose values are largely self-explanatory. The description's 'directional or reciprocal' hints at the oneWay flag, but it adds no meaning for note, sentiment, isSecret, or publicFacade beyond what the schema already states.

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?

The description states a specific verb pair (create or update) applied to a precise resource ('relationship edge pair') and adds the directionality/reciprocity dimension, which is the key semantic of this tool. It implicitly separates itself from list_relationships and remove_relationship, though it never names them.

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?

'in the active campaign' implies a precondition, and 'create or update' signals upsert behavior, but there is no explicit when-to-use guidance, no mention of when to prefer remove_relationship or list_relationships, and no statement about what happens if the edge already exists.

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