Skip to main content
Glama

Add lore relation

add_lore_relation
DestructiveIdempotent

Link two lore entities in the same campaign (e.g. ally, enemy, member_of). Requires a write-enabled token.

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": {
      "source_entity_id": "<source_entity_id>",
      "target_entity_id": "<target_entity_id>",
      "relation_type": "<relation_type>"
    },
    "name": "add_lore_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
descriptionNo
relation_typeYese.g. 'ally', 'enemy', 'member_of', 'located_in'.
source_entity_idYesSource entity.
target_entity_idYesTarget entity (must be in the same campaign).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The authentication requirement and campaign constraint add useful context beyond the annotations. However, the description does not explain what behavior warrants destructiveHint=true, nor how repeated requests or duplicate relations behave despite idempotentHint=true.

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

Conciseness5/5

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

Two short sentences front-load the operation and scope, then state the authentication prerequisite. The examples are compact, and no wording is wasted.

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

Completeness3/5

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

The definition is adequate for basic selection and invocation of a small, flat tool, but it leaves side effects insufficiently explained. Relation directionality, duplicate handling, the destructive behavior signaled by annotations, and the purpose of the optional description field remain unclear.

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?

The schema already documents both entity IDs and relation_type, including the relationship examples and same-campaign constraint repeated in the description. The optional description parameter remains undocumented in both the schema and description, so the definition adds little parameter-specific meaning and leaves one gap.

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 uses a specific verb and resource: it links two lore entities within the same campaign, with examples clarifying that the link is a typed relationship. This clearly separates relationship creation from entity CRUD in practice, but it does not explicitly differentiate any sibling tool.

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?

The same-campaign scope and write-enabled-token prerequisite give clear context for when the tool applies. It does not state when not to use it or name an alternative for other relationship operations.

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.

Resources