Skip to main content
Glama

create_entity

Idempotent

Idempotently resolve a durable named entity only when explicitly establishing one or needing its ID for a stated relation, not for ordinary captures.

Instructions

Resolve a durable named entity idempotently. Use only as a support step when the user explicitly establishes a durable named entity, or when resolved ids are needed for a relation the user explicitly stated. Do not call create_entity for every ordinary capture: with a model source chosen, daemon enrichment extracts entities. Without one (a capture receipt says enrichment is paused or off), capture's entity links only an entity that already exists, so create the entity first.

Input Schema

NameRequiredDescriptionDefault
nameYesCanonical entity name (e.g. 'Alice', 'Wenlan', 'PostgreSQL'). Use the exact, full name; the daemon resolves an existing canonical entity idempotently when present.
spaceNoTopic scope (e.g. 'work', 'wenlan'). Optional.
confidenceNo0.0-1.0 confidence in the entity assertion. Leave unset for caller-default.
entity_typeYesEntity category: 'person', 'project', 'tool', 'place', 'organization', etc. Free-form string; choose the noun that best describes what it is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.3

TDQS

A4.1/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, so the description's idempotency claim adds little. What it does add is real behavioral context: entity extraction is normally handled by daemon enrichment, and when enrichment is disabled capture's `entity` links only pre-existing entities, which is why the entity must be created first. Permission/scope limits and return shape are not covered.

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?

Purpose is front-loaded in sentence one, followed by usage rules and the enrichment caveat in a logical order. The middle clauses are dense and long-winded, but every sentence carries decision-relevant information rather than repetition.

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?

No output schema exists, but the description implies a resolved id is produced ("resolved ids are needed for a relation"). It covers the critical precondition — enrichment configuration — that determines whether this tool is needed at all. A brief note on what comes back (canonical id, whether a new entity was created) would close the remaining gap.

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 100%, so name, space, confidence, and entity_type are all documented with examples and defaults in the schema. The description adds no parameter-level meaning beyond what is already there, so the baseline of 3 applies.

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+resource: "Resolve a durable named entity idempotently." It separates itself from the nearest confusable sibling (capture) by explaining that capture handles ordinary captures and enrichment extracts entities. The create/resolve duality in name vs. description is reconciled by the idempotency clause, though the phrasing is slightly abstract.

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

Usage Guidelines5/5

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

Explicit when-to-call (user establishes a durable named entity, or resolved ids are needed for a user-stated relation), explicit when-not-to-call ("Do not call create_entity for every ordinary capture"), and a concrete fallback condition tied to whether enrichment is paused or off. An agent can decide without further inference.

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