Skip to main content
Glama

update_npc

DestructiveIdempotent

Keep NPC records current by editing role, status, traits, description, or location in the MemoryMesh knowledge graph.

Instructions

Update an existing npc in the knowledge graph

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

Input Schema

NameRequiredDescriptionDefault
update_npcYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv0.6.0
    • changedInput schema / properties / update_npc / additionalProperties / description
      Previous value: -"Any additional properties"New value: +"Additional property value"
    • removedInput schema / properties / update_npc / properties / abilities
      Removed value: -{
      -  "description": "Specific skills or powers the NPC possesses",
      -  "items": {
      -    "description": "Item in abilities array",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / update_npc / properties / alignment
      Removed value: -{
      -  "description": "The ethical or moral alignment of the NPC",
      -  "type": "string"
      -}
    • removedInput schema / properties / update_npc / properties / background
      Removed value: -{
      -  "description": "The background story of the NPC",
      -  "type": "string"
      -}
    • changedInput schema / properties / update_npc / properties / currentLocation / description
      Previous value: -"The current location of the NPC"New value: +"Where the character is now (the location must already exist)"
    • changedInput schema / properties / update_npc / properties / description / description
      Previous value: -"A detailed description of the NPC"New value: +"Who the character is: appearance, personality, background"
    • removedInput schema / properties / update_npc / properties / gender
      Removed value: -{
      -  "description": "NPC's gender",
      -  "type": "string"
      -}
    • removedInput schema / properties / update_npc / properties / importance
      Removed value: -{
      -  "description": "The importance of the NPC in the story or world",
      -  "type": "string"
      -}
    • removedInput schema / properties / update_npc / properties / money
      Removed value: -{
      -  "description": "Currency or wealth the NPC holds",
      -  "type": "string"
      -}
    • removedInput schema / properties / update_npc / properties / motivation
      Removed value: -{
      -  "description": "The driving purpose or goals of the NPC",
      -  "type": "string"
      -}
    • changedInput schema / properties / update_npc / properties / name / description
      Previous value: -"NPC's name"New value: +"The character's unique name"
    • removedInput schema / properties / update_npc / properties / origin
      Removed value: -{
      -  "description": "The origin location of the NPC",
      -  "items": {
      -    "description": "Item in origin array",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / update_npc / properties / race
      Removed value: -{
      -  "description": "NPC's race",
      -  "type": "string"
      -}
    • removedInput schema / properties / update_npc / properties / reputation
      Removed value: -{
      -  "description": "How the NPC is perceived by others",
      -  "type": "string"
      -}
    • changedInput schema / properties / update_npc / properties / role / description
      Previous value: -"NPC's role or occupation"New value: +"Occupation or role in the story, e.g. blacksmith, villain"
    • removedInput schema / properties / update_npc / properties / secret
      Removed value: -{
      -  "description": "A hidden detail about the NPC",
      -  "type": "string"
      -}
    • changedInput schema / properties / update_npc / properties / status / description
      Previous value: -"NPC's current status"New value: +"The character's current condition"
    • addedInput schema / properties / update_npc / properties / status / enum
      Added value: +[
      +  "alive",
      +  "injured",
      +  "dead",
      +  "missing"
      +]
    • changedInput schema / properties / update_npc / properties / traits / description
      Previous value: -"Unique traits or characteristics of the NPC"New value: +"Personality traits or notable characteristics"
    • changedInput schema / properties / update_npc / required
      Previous value: -[]New value: +[
      +  "name"
      +]
  2. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds nothing beyond that: it does not say whether omitted fields are preserved or cleared, whether nested arrays like metadata replace or append, or what happens on a name mismatch. No contradiction with the annotations, but almost no added behavioral context for a destructive mutation.

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

Conciseness3/5

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

It is a single front-loaded sentence with zero padding, which is structurally clean. However, the brevity reflects under-specification rather than disciplined concision for a nested-object mutation tool.

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?

For a tool with a nested 7-field payload, destructive semantics, and no output schema, the description leaves merge/replace behavior and failure modes unaddressed. The annotations and fairly self-describing nested schema recover some ground, but an agent could still easily misuse the update.

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 reported as 0%, so the description is expected to carry parameter meaning, yet it never mentions name as the identifier, nor the role/status/traits/currentLocation fields. The only inference an agent can draw is that an 'existing' NPC is targeted by name, which the schema already implies.

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 gives a specific verb and resource ('Update an existing npc') plus its domain ('in the knowledge graph'), which is enough to distinguish it from add_npc and delete_npc. It does not distinguish it from the other update_* siblings (update_location, update_nodes, update_edges), so it stops short of a 5.

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?

There is no guidance on when to use this versus add_npc (create) or update_nodes/update_location, and no stated preconditions such as the NPC having to exist already. The word 'existing' implies a precondition but does not tell the agent what happens if the name is unknown.

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