Skip to main content
Glama
Knowledge Graph Memory Server

Knowledge Graph Memory Server

Create Entities

create_entities
Idempotent

Creates multiple new entities in the knowledge graph, skips existing or repeated names, and reports skipped items so observations can be added to existing entities.

Instructions

Create multiple new entities in the knowledge graph. An entity whose name already exists, or repeats an earlier entity in the same call, is skipped and its observations are not added; the result lists the skipped names in skipped. Use add_observations to add observations to an existing entity.

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": {
      "entities": "<entities>"
    },
    "name": "create_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
entitiesYesThe entities to create, each with a name unique in the graph

Output Schema

NameRequiredDescriptionDefault
skippedNo
entitiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • addedInput schema / properties / entities / description
      Added value: +"The entities to create, each with a name unique in the graph"
  2. Changed2 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "entities": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "entityType": {
      +            "description": "The type of the entity",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "The name of the entity",
      +            "type": "string"
      +          },
      +          "observations": {
      +            "description": "An array of observation contents associated with the entity",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "entityType",
      +          "observations"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "skipped": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "entities"
      +  ],
      +  "type": "object"
      +}
  4. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description adds the concrete consequence: duplicate names AND intra-batch repeats are skipped and their observations are silently dropped, with skipped names surfaced in `skipped`. That is real disclosure beyond the annotations. It stops short of stating atomicity semantics (whether one bad entity aborts the whole batch) or any auth/limit concerns.

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?

Three sentences, front-loaded with the action, then the edge-case behavior, then the alternative. Nothing is padded and each sentence carries distinct information.

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

Completeness4/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 not be explained, and the description still usefully flags the `skipped` field. Deduplication and the redirect to add_observations make it complete for the common path; batch-failure/atomicity behavior is the main remaining gap for a mutating tool.

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 coverage is 100% and the single `entities` parameter is fully documented, so baseline is 3. The description does add a meaningful constraint beyond the schema by describing duplicate handling across array elements, but it does not add field-level detail the schema lacks.

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 specific verb and resource ('Create multiple new entities in the knowledge graph') with explicit batch scope, and names the sibling it is not ('add_observations') so the agent can route without opening another schema.

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?

Explicitly routes the add-to-existing case to add_observations, which is the most likely confusion. It does not cover other adjacent cases (e.g., creating relations, or whether to check search_nodes/open_nodes before creating), so it is clear context rather than a full when/when-not guide.

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