Skip to main content
Glama

Restore record

restore_record
DestructiveIdempotent

Bring back a soft-deleted record by object_type + id — the undo of delete_record, for every type it archives (a quote with its lines, a subscription with its ARR, a file while its contents remain, an email_body by its activity id). List deleted records with search_records({object_type:"deleted_record"}) or read one with get_record(include_archived:true). The same scope as delete_record decides who may restore. Returns the restored record with restored:true.

When to use: The user deleted something by mistake and wants it back.

Example: Restore the contact I deleted by mistake.

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": {
      "object_type": "<object_type>",
      "id": "<id>"
    },
    "name": "restore_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA uuid.
object_typeYesThe deleted record's object_type, e.g. contact, note, quote or a custom key.

Output Schema

NameRequiredDescriptionDefault
noteNo
recordNo
restoredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The deleted record's id — a uuid from the delete result or a get_record read with include_archived. A uuid."New value: +"A uuid."
    • changedInput schema / properties / object_type / description
      Previous value: -"Which kind of deleted record to bring back: contact or account. One of: contact | account."New value: +"The deleted record's object_type, e.g. contact, note, quote or a custom key."
    • addedOutput schema / properties / note
      Added value: +{
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  3. Changed4 schema fields changed
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -{}
    • removedOutput schema / properties / record / additionalProperties
      Removed value: -{}
    • removedOutput schema / properties / record / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources