Skip to main content
Glama

edit_name_attributes

Surgical attribute edit on an existing name. Each entry in the attributes map sets that attribute on the named name; an empty string value deletes that attribute. Attributes not mentioned in the map are left untouched (this is NOT a wipe-and-replace).

Looks up by integer nameId — the id returned in apply_structure's namesResolved, or surfaced by describe_set / describe_query. Returns 404 if no name matches the id — silent no-op is never the result.

To rename a name, set its default_display_name attribute via this same call.

═══ PROVENANCE — required on every write ═══ source: where this edit originates — file path, URL, document name, or short note. Lands in the audit trail so the user can return to it. agent: your AI agent name (e.g. "Claude"). Lands in the audit trail so the user can see which AI made the edit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesAI agent name (e.g. "Claude"). REQUIRED.
nameIdYesInteger id of the name to edit (from apply_structure namesResolved, describe_set, describe_query, etc.)
sourceYesOrigin reference — file, URL, document, or short note. REQUIRED.
databaseYesDatabase name
attributesYesMap of attribute-name → attribute-value (string). Empty value deletes the attribute. Values are stored verbatim, so JSON or other encoded content should be stringified by the caller and parsed on read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: empty-string values delete attributes, unmentioned attributes are preserved (explicitly NOT wipe-and-replace), 404 on unknown id and 'silent no-op is never the result', plus why source/agent are mandatory (audit trail). These are exactly the destructive-semantics and error-behavior facts an agent needs.

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?

Front-loaded with the core behavior, then lookup, then a clearly delimited PROVENANCE block. Every sentence earns its place; nothing is redundant with the schema.

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 5-required-param mutation with no annotations and no output schema, the description covers mutation semantics, id provenance, error behavior, and mandatory audit fields. The only gap is the shape of a successful response, which is not described.

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 baseline is 3, but the description adds real value beyond the schema: it explains the deletion convention, the verbatim string storage implication, and the rationale for the provenance fields (they land in the audit trail so the user can trace the edit). Only nameId/database get no extra semantic depth.

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 precise verb+resource+scope: 'Surgical attribute edit on an existing name,' and immediately distinguishes the operation from wipe-and-replace semantics. It is clearly separable from siblings like delete_name, apply_structure, and aql_write.

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 tells the agent where the required nameId comes from (apply_structure's namesResolved, describe_set, describe_query) and reveals a non-obvious usage path: renaming is done by setting default_display_name through this same call. It stops short of stating when to prefer this over aql_write or apply_structure for attribute changes.

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