Skip to main content
Glama

Create Entities

create_entities
Idempotent

Create multiple new knowledge graph entities in a namespace while skipping duplicate names and reporting skipped entries in the result.

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

Input Schema

NameRequiredDescriptionDefault
entitiesYes
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.

Output Schema

NameRequiredDescriptionDefault
skippedNo
entitiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (idempotentHint=true, destructiveHint=false), the description discloses a real behavioral edge case: entities with an existing name, or intra-call duplicates, are skipped and their observations dropped, with the names surfaced in `skipped`. That is the key detail an agent needs to avoid silently losing data. It does not address batch atomicity or partial-failure semantics, which is the remaining gap for a multi-item write.

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 sentences, front-loaded with the action, followed by the edge-case consequence and the alternative tool. No restated boilerplate and every clause carries 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?

With an output schema present, the description needn't enumerate return values, yet it still calls out the `skipped` field where it matters. Together with the schema's namespace documentation, an agent has enough to call this correctly. Only the failure/atomicity behavior for a batch of entities is left unstated.

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?

At 50% schema coverage, the description must compensate, and it does for the most consequential semantic: the `name` field acts as a uniqueness key that causes skips, including duplicates within the same call. The namespace prerequisites and isolation rules are already spelled out in the schema. Remaining entity schema fields (entityType, observations) add no meaning beyond the schema, but the key constraint is covered.

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 with batch scope: "Create multiple new entities in the knowledge graph." It also names a sibling (add_observations) for the adjacent operation, so an agent can distinguish creation of entities from augmentation of existing ones without opening the 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?

Gives explicit routing guidance: use add_observations to attach observations to an existing entity, implying this tool is for brand-new entities. It also flags the duplicate case up front. It stops short of explicit when-not-to-use exclusions (e.g., preferring create_relations or batching decisions), so it is clear context rather than a complete decision rule.

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