Skip to main content
Glama

Edit record

edit_record
Destructive

Changes fields of one existing record in a collection an app declares, as the person this call acts for. It succeeds only if the record is unchanged since the etag list_records returned. It replaces only the fields sent, and the previous values of those fields are not kept. A person changes only records they may edit. Returns the record. Field values are written by the app's users.

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": {
      "app_id": "<app_id>",
      "collection": "<collection>",
      "id": "<id>",
      "etag": "<etag>",
      "fields": "<fields>"
    },
    "name": "edit_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe record to change, as list_records gave it
etagYesthe record's etag from list_records
app_idYesthe app, as list_apps gave it
fieldsYesonly the fields to change, as the collection declares them
collectionYesa collection the app declares

Output Schema

NameRequiredDescriptionDefault
recordYesthe stored record

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description discloses optimistic-concurrency failure behavior via the etag, that only sent fields are replaced, and that previous field values are not retained — making the destructive impact concrete. It also states the permission model and that the updated record is returned.

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 core behavior and the etag precondition are front-loaded, and most sentences carry distinct information. The closing sentence, "Field values are written by the app's users," is vague and does not clearly earn its place, and the list_records reference is repeated twice.

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, permission-scoped mutation with a nested fields object, the description covers mutation semantics, concurrency failure mode, data retention, and authorization, and an output schema exists so return details need not be spelled out. An agent has everything needed to invoke 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 coverage is 100%, so all five parameters are already documented in the schema, establishing a baseline of 3. The description adds real meaning for etag (must match the value from list_records) and for fields (only changed fields, as the collection declares), but does not describe the field-value shapes needed for the nested object.

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 states a specific verb and resource: "Changes fields of one existing record in a collection an app declares." The partial-update framing ("replaces only the fields sent") separates it from a whole-record replace, though no sibling such as add_record is named for contrast.

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 a concrete precondition: the call succeeds only if the record is unchanged since the etag from list_records, which tells an agent exactly when this will work and which tool supplies the etag. It also scopes use to records the acting person may edit. It does not name alternatives for creating or removing records, so exclusion guidance is implicit.

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.