Skip to main content
Glama

add_location

Create a new city, building, room, or region in the knowledge graph, including its name, description, type, and parent location.

Instructions

Add a new location (a city, building, room, region...) to 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": {
      "location": "<location>"
    },
    "name": "add_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv0.6.0
    • removedInput schema / properties / location / properties / accessibility
      Removed value: -{
      -  "description": "How characters can enter/exit the location",
      -  "type": "string"
      -}
    • removedInput schema / properties / location / properties / atmosphere
      Removed value: -{
      -  "description": "The general feel/mood of the location",
      -  "type": "string"
      -}
    • removedInput schema / properties / location / properties / dangerLevel
      Removed value: -{
      -  "description": "The level of danger present in the location",
      -  "type": "string"
      -}
    • changedInput schema / properties / location / properties / description / description
      Previous value: -"Detailed description of the location"New value: +"What the location is like"
    • changedInput schema / properties / location / properties / name / description
      Previous value: -"Location's name"New value: +"The location's unique name"
    • changedInput schema / properties / location / properties / notableFeatures / description
      Previous value: -"Distinct characteristics of the location"New value: +"Distinctive things about the location"
    • removedInput schema / properties / location / properties / parentLocation
      Removed value: -{
      -  "description": "The parent location this location belongs to",
      -  "type": "string"
      -}
    • addedInput schema / properties / location / properties / partOf
      Added value: +{
      +  "description": "The larger location this one is inside of (must already exist)",
      +  "items": {
      +    "description": "Item in partOf array",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / location / properties / relatedArtifacts
      Removed value: -{
      -  "description": "Artifacts associated with the location",
      -  "items": {
      -    "description": "Item in relatedArtifacts array",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / location / properties / relatedCharacters
      Removed value: -{
      -  "description": "Characters associated with the location",
      -  "items": {
      -    "description": "Item in relatedCharacters array",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / location / properties / relatedQuests
      Removed value: -{
      -  "description": "Quests associated with the location",
      -  "items": {
      -    "description": "Item in relatedQuests array",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / location / properties / size
      Removed value: -{
      -  "description": "The size or scale of the location",
      -  "type": "string"
      -}
    • removedInput schema / properties / location / properties / status
      Removed value: -{
      -  "description": "Current state of the location",
      -  "type": "string"
      -}
    • removedInput schema / properties / location / properties / subLocations
      Removed value: -{
      -  "description": "Locations contained within this location",
      -  "items": {
      -    "description": "Item in subLocations array",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / location / properties / type / description
      Previous value: -"Type of location"New value: +"Kind of location, e.g. city, tavern, forest"
    • changedInput schema / properties / location / required
      Previous value: -[
      -  "name",
      -  "type",
      -  "description",
      -  "status"
      -]New value: +[
      +  "name",
      +  "description"
      +]
  2. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the mutation and safety profile is covered structurally. The description adds nothing about duplicate-name handling, what happens when a referenced parent location is missing, or whether the write is reversible — meaningful gaps given idempotentHint=false. It does not contradict the annotations.

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?

A single front-loaded sentence with no filler; verb and resource lead. The parenthetical example list is slightly loose but earns its place by defining the domain of 'location'.

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 nested-object mutation tool with no output schema, the description covers only the surface intent. It omits error conditions (missing partOf target, duplicate name) and any indication of what is returned on success, which an agent needs before calling a non-idempotent write.

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?

Only one top-level parameter, and the nested schema already documents name, type, partOf, description and notableFeatures individually. The description's parenthetical examples (city, building, room, region) loosely illustrate the 'type' field, adding marginal meaning but no syntax or constraint detail beyond the schema.

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 ('Add') and resource ('a new location') plus the destination ('the knowledge graph'), and the parenthetical examples (city, building, room, region) clarify what counts as a location. It does not explicitly distinguish itself from update_location or add_nodes, but the create-vs-update distinction is implicitly clear.

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

Usage Guidelines3/5

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

The word 'Add' implies create-new usage, and the sibling set makes update_location/delete_location the obvious alternatives, but the description never says so. It gives no guidance on when to create a location versus a generic node, nor on prerequisites beyond what the schema already states.

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