Skip to main content
Glama

Create Relations

create_relations
Idempotent

Create multiple new relations between entities in a knowledge graph to connect related nodes. Use active voice for relation types within an existing namespace.

Instructions

Create multiple new relations between entities in the knowledge graph. Relations should be in active voice

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": {
      "namespace": "<namespace>",
      "relations": "<relations>"
    },
    "name": "create_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYesThe namespace to operate in (required). It must already exist: create it with create_namespace, and list the existing ones with list_namespaces. Namespaces are isolated from each other: the same entity name can exist in several, and a relation only connects entities in its own namespace.
relationsYes

Output Schema

NameRequiredDescriptionDefault
relationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare the operation is a non-read-only, non-destructive, idempotent write in a closed world, so the safety profile is covered. The description adds that it operates in batch and that relation types should use active-voice phrasing, which is useful convention context. It does not disclose what happens with duplicate relations, whether referenced entities must already exist, or whether the batch is atomic.

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?

Two short sentences with the operation stated first and the convention second; nothing is padded. It is efficient but arguably under-specified rather than over-specified.

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?

An output schema exists, so return values need no explanation, and the namespace parameter is well documented in the schema. However, for a mutation tool that creates nested relation records in bulk, the description leaves out prerequisite entity existence, duplicate/conflict behavior, and batch failure semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

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

Schema description coverage is 50% and the description says nothing about either parameter. The nested relation objects (from, to, relationType) have only one-line schema descriptions with no format or naming constraints, and the description does not compensate with any example or validation rule beyond the active-voice hint.

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 specific verb and resource (create multiple new relations between entities in a knowledge graph) plus a batching scope ('multiple'), so the agent knows it is a bulk write. It does not name the sibling it is distinct from (e.g., create_entities, delete_relations), so differentiation is only implicit from the resource noun.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no when-to-use or when-not-to-use guidance, and does not point to any alternative for single-relation creation or relation removal. 'Relations should be in active voice' is a content convention, not usage guidance.

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