Skip to main content
Glama

Save a registry value

registry_set

Records an exact operational value under a canonical key: a host, a service endpoint, where a credential lives, a model route, a dataset. It suits a value another tool will act on and a wrong guess would break; memory_write takes anything a person would say in a sentence. Keys are canonical and dotted, 'services.lumberroom.port' rather than 'lumberroom port'. A key that gets rejected is remembered as a redirect, so the next caller reaching for the same wrong name lands on the right row. The value is not for secrets: a credential-ref names where the secret lives and the secret stays there. The previous value stays readable in registry_history.

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": {
      "kind": "<kind>",
      "key": "<key>",
      "value": "<value>",
      "namespace": "<namespace>"
    },
    "name": "registry_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe canonical key, dotted and lowercase: 'services.lumberroom.port', not 'lumberroom port'.
kindYes'host', 'service', 'credential-ref', 'model-route' or 'dataset'.
valueYesThe value, as JSON. A string, a number, or an object when the fact has parts.
namespaceYesWhere it belongs: 'global' for infrastructure, 'project:<slug>' for one codebase, 'user:me' for the person.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds real behavior on top: rejected keys are stored as redirects so later callers land on the right row, secrets must not be stored (credential-ref only names their location), and prior values remain readable in registry_history, which effectively communicates overwrite/reversibility. It stops short of covering error surfacing, conflicts on namespace mismatch, or what a successful call returns, so it is strong but not exhaustive.

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?

Front-loaded with purpose and the sibling contrast, then rules in descending importance. It is five sentences and a couple of clauses repeat schema content (the 'services.lumberroom.port' example), which is the only thing keeping it from a 5.

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 no output schema, the description correctly carries the behavioral load: canonicalization, redirect-on-rejection, secret exclusion, and history retention. All four required parameters are documented in the schema, so the only gap is that namespace scoping ('global' vs 'project:<slug>' vs 'user:me') is never discussed in prose despite being a required choice.

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 the baseline is 3. The description reinforces the canonical dotted-lowercase key convention and explains that a credential-ref names where a secret lives rather than holding it, but the illustrative key example duplicates the schema text almost verbatim and namespace semantics are left entirely to the schema.

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?

Specific verb+resource: "Records an exact operational value under a canonical key," followed by a concrete enumeration of the kinds of values (host, service endpoint, credential location, model route, dataset). It explicitly contrasts itself with memory_write, so an agent can route between the two without opening either schema.

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?

Gives a clear decision rule: this tool suits "a value another tool will act on and a wrong guess would break," while memory_write takes free-form sentences. It also states an exclusion ("not for secrets") and names the alternative pattern (credential-ref), which is exactly the kind of when-not guidance that prevents misuse.

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