Skip to main content
Glama

Update Attachment

update_attachment
Destructive

Edit an attachment's metadata by attachment_id: rename it, change its type, edit its description, or toggle "shown on activity report". Does not replace the file itself. Enforces participation on the parent record. Cannot delete anything.

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": {
      "attachment_id": "<attachment_id>"
    },
    "name": "update_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoRename the attachment / relabel the link.
descriptionNoChange the description note.
attachment_idYesThe attachmentid (a GUID string) from list_attachments.
attachment_typeNoChange the document type/category (e.g. "LOI"). Created for your company if new.
shown_on_reportNoToggle whether this attachment appears on the activity report.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: the prerequisite "Enforces participation on the parent record" (an auth/eligibility constraint not in the schema) and the scope limits "Does not replace the file itself" / "Cannot delete anything". The no-delete statement sits in mild tension with destructiveHint=true, but they are reconcilable — metadata fields are overwritten in place, and the description does not claim reversibility or field-merge semantics.

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?

Four short sentences, front-loaded with the verb and identifier, then the capability list, then the two exclusions. Each sentence carries distinct information with no restatement of the title.

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 metadata mutation with full schema coverage and annotations present, this covers purpose, eligible edits, the parent-record participation prerequisite, and what it will not do. No output schema exists, but the return value of a field edit is not something the agent needs explained to call it correctly.

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 all five parameters already carry their own meaning, including the side effect that a new attachment_type may be created for the company. The description's field list maps one-to-one onto those schema fields and adds no formats, defaults, or interaction rules (e.g. whether omitted fields are preserved).

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?

States a specific verb and resource ("Edit an attachment's metadata by attachment_id") and enumerates the exact editable fields: rename, type, description, report visibility. It also draws the boundary against a file-replacement operation, which implicitly separates it from add_attachment and any upload path.

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?

Makes the entry point explicit ("by attachment_id", sourced from list_attachments in the schema) and rules out two adjacent operations: replacing the file and deleting. It does not name a specific alternative tool for those cases, so the agent must infer where to go instead.

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