Skip to main content
Glama

set_project_metadata

Destructive

Writes a CUSTOM project metadata entry, under a key of your choice — meant for agent CHECKPOINTS ("where I left off") and any working information you want to find again later. The value is free-form JSON and REPLACES the key's previous value entirely (no merge); the write is ATOMIC, so two agents cannot create two concurrent entries under the same key. These values live OUTSIDE the schema: they are not in the version snapshots (restore_version does NOT restore them), nor in the attestation of a signed version, nor in the public/anonymous links. ⚠️ NOT TO BE CONFUSED with update_meta (title/subtitle/currency of the schema, VISIBLE on the canvas) nor with update_kind_metadata (the attributes of ONE block). ⚠️ The key config is RESERVED: the project configuration is written from the site by a governing role, and not by a tool — the call is REFUSED whatever your role (the configuration is read with get_config).

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

Input Schema

NameRequiredDescriptionDefault
keyYesIdentifier of the entry, in lowercase: a-z, 0-9, then ".", "_", "-", ":" (64 characters max).
valueYesThe JSON value to write — object, array, string, number, boolean or null. REPLACES the previous value of this key entirely (no merge). 32 KiB of JSON at most: beyond that the call is REFUSED, naming the measured size, without truncation.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / key / description
      Previous value: -"Identifier of the entry, in lowercase: a-z, 0-9, then \".\", \"_\", \"-\", \":\" (64 characters max). E.g. \"checkpoint\", \"run:2026-08-18\", \"notes.migration\"."New value: +"Identifier of the entry, in lowercase: a-z, 0-9, then \".\", \"_\", \"-\", \":\" (64 characters max)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  3. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  4. Changed3 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / key / description
      Previous value: -"Identifiant de l’entrée, en minuscules : a-z, 0-9, puis « . », « _ », « - », « : » (64 caractères max). Ex. « checkpoint », « run:2026-08-18 », « notes.migration »."New value: +"Identifier of the entry, in lowercase: a-z, 0-9, then \".\", \"_\", \"-\", \":\" (64 characters max). E.g. \"checkpoint\", \"run:2026-08-18\", \"notes.migration\"."
    • changedInput schema / properties / value / description
      Previous value: -"La valeur JSON à écrire — objet, tableau, chaîne, nombre, booléen ou null. REMPLACE intégralement la valeur précédente de cette clé (jamais une fusion). 32 Kio de JSON au maximum : au-delà l’appel est REFUSÉ en nommant la taille mesurée, jamais tronqué."New value: +"The JSON value to write — object, array, string, number, boolean or null. REPLACES the previous value of this key entirely (no merge). 32 KiB of JSON at most: beyond that the call is REFUSED, naming the measured size, without truncation."
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description substantiates that: the value REPLACES the prior value entirely with no merge, the write is ATOMIC so concurrent same-key writes cannot both succeed, and a reserved key is refused whatever the role. It also discloses visibility boundaries beyond annotations — values are outside version snapshots (restore_version does not restore them), outside signed-version attestation, and outside public/anonymous links — which is exactly the context an agent needs before a destructive write.

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?

The critical information — what it writes and that it replaces atomically — is front-loaded, and every clause carries real content (no-merge, atomicity, snapshot/attestation exclusion, reserved key). The heavy ALL-CAPS emphasis and warning glyphs are somewhat noisy and could be tightened into plain prose without losing meaning.

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 destructive, no-output-schema mutation tool, the definition covers purpose, concurrency semantics, size limits, data-visibility scope, sibling disambiguation, and a hard exclusion rule. Nothing an agent needs in order to call it correctly or avoid a harmful call appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so key format, value shape, and the 32 KiB refusal are already documented; the description's main added value is the parameter-level constraint that `config` is a reserved key that will be refused, plus the no-merge replace semantics. It stops short of adding anything about expectedProjectId's override behavior, but that gap is minor given full schema coverage.

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 definition opens with a specific verb+resource ("Writes a CUSTOM project metadata entry, under a key of your choice") and explicitly disambiguates itself from two siblings, update_meta and update_kind_metadata, naming what each of those actually touches. An agent can select this tool without opening any 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?

It gives a concrete intended use (agent checkpoints, "where I left off", working info to find again later), names the two sibling tools it must not be confused with and why, and states an exclusion rule: the reserved `config` key is refused regardless of role and must be read with `get_config` instead. When-to-use, when-not-to-use, and the alternative are all present.

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.