Skip to main content
Glama

Stash — Shared AI Memory

Create namespace

mkns
Idempotent

Create a namespace before writing to it. Creates all missing parents automatically. Call this liberally — more namespaces means better organisation and sharper retrieval. 'about' is required and should be specific. If the namespace already exists it is returned immediately. To refine the description as your understanding of the namespace evolves, call mkns again with update_about set to true. Skills convention: a reusable procedure is a namespace /skills/ whose 'about' starts with 'Use when ...' and holds one entry with the whole procedure.

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

Input Schema

NameRequiredDescriptionDefault
pathNoNamespace path, for example /rules or /projects/weather-app. Required unless 'namespace' is given instead.
aboutYesShort description of what this namespace stores. Required — be specific, e.g. 'Standing rules and constraints set by the user'.
namespaceNoAlias for 'path'.
visibilityNoNamespace visibility. Defaults to private.private
update_aboutNoIf true and the namespace already exists, replaces its 'about' description with the new value.

Output Schema

NameRequiredDescriptionDefault
slugYes
uuidYes
aboutYes
created_atYes
visibilityYes
next_actionsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower, yet the description still adds real value: automatic parent creation, immediate return of an existing namespace, and the fact that update_about overwrites the prior description. It stops short of saying what the response contains or whether visibility changes on an existing namespace, which the output schema partly covers.

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?

Guidance is front-loaded: purpose, then parent creation, then usage frequency, then parameter notes, then the skills convention. Every sentence carries information, though the update_about sentence interrupts the parameter discussion and the skills convention makes the block longer than a typical create tool needs.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter creation tool with a full output schema and complete annotations, the description covers the remaining gaps an agent would care about: idempotent re-creation, automatic hierarchy creation, the update path for revising 'about', and a naming convention. Nothing needed to invoke it correctly is missing.

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%, so all five parameters including the path/namespace alias, visibility enum, and update_about are already documented, making 3 the baseline. The description reinforces that 'about' is required and must be specific (already in the schema) and adds one genuinely new convention — the /skills/<name> path shape with an 'about' starting "Use when ..." — but does not clarify the path vs namespace alias choice.

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?

The description opens with a specific verb and resource ("Create a namespace") and immediately states a scope detail not visible from the name: all missing parents are created automatically. It also positions the tool relative to the write workflow ("before writing to it"), so an agent knows this is the setup step rather than a content-write tool.

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-use ("before writing to it"), explicit frequency guidance ("Call this liberally"), and an explicit no-op case ("If the namespace already exists it is returned immediately") that tells the agent it need not pre-check with a sibling like `ls`. It also routes the update case: instead of a separate edit tool, re-call this one with update_about=true.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources