Skip to main content
Glama

update_identity

Destructive

Update your self-model or preferences with section-level precision by targeting H2 sections in identity files. Call without section or content to list available sections before editing.

Instructions

Update your self-model or preferences with section-level precision. Targets H2 sections in identity files. Call without section/content to list available sections. IDENTITY.md (the creed) is immutable — only self-model and preferences can be edited.

Input Schema

NameRequiredDescriptionDefault
fileYesWhich identity file to update: "self-model" or "preferences"
modeNo"replace" updates an existing section (default), "append" adds a new section
contentNoNew content for the section (replaces everything under the H2 header)
sectionNoH2 section name to target. Omit to list all sections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.4.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation risk is signposted. The description adds non-obvious behavior beyond that: a dual list/update mode triggered by omitting section/content, and an immutability rule for IDENTITY.md that constrains where writes may land. It still doesn't spell out that replace destroys existing section content or any permission requirements.

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

Conciseness5/5

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

Three tight sentences, each carrying distinct information (purpose/granularity, list mode, immutability constraint), with the core purpose front-loaded and no filler.

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?

For a destructive write tool with destructiveHint already declared and no output schema, the description covers scope, targeting granularity, list mode, and the immutability boundary. It leaves minor gaps around failure behavior and permissions, but an agent has enough to invoke it correctly.

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 the baseline is 3. The description adds cross-parameter semantics the schema documents only per-field: omitting both `section` and `content` switches the tool into a listing mode, and it clarifies the file scope relative to the immutable IDENTITY.md.

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 names a specific verb and resource (update self-model/preferences) plus the granularity of the edit (H2 sections in identity files), which is far more precise than the sibling `update`. It does not explicitly name a sibling tool to contrast with, so it falls 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 Guidelines4/5

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

It gives an explicit operational condition ("Call without section/content to list available sections") and an explicit exclusion ("IDENTITY.md ... is immutable — only self-model and preferences can be edited"). No alternative sibling tool is named, but the when-to-use and when-not-to-use guidance is concrete.

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