Skip to main content
Glama

Sync library changes

get_library_changes
Read-only

Read the append-only library change stream, including deletions. For a race-free first sync, call once with cursor=latest, list the library, then continue from the returned nextCursor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum changes to return in this page, from 1 to 250. Defaults to 100.
cursorNoPass a previous response's nextCursor verbatim, or latest to start at the current head; never construct one.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
changesYes
hasMoreYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"Pass a previous response's nextCursor verbatim, or latest to start at the current head; never construct one."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum changes to return in this page, from 1 to 250. Defaults to 100."
    • addedOutput schema / properties / changes / items / properties / item / allOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "articleStatus": {
      +        "type": "string"
      +      },
      +      "asset": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "checksum": {
      +                "type": "string"
      +              },
      +              "downloadUrl": {
      +                "type": "string"
      +              },
      +              "fileName": {
      +                "type": "string"
      +              },
      +              "itemId": {
      +                "description": "UUID that identifies the resource; pass it back exactly as smry returned it.",
      +                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
      +                "type": "string"
      +              },
      +              "mimeType": {
      +                "type": "string"
      +              },
      +              "resourceUri": {
      +                "type": "string"
      +              },
      +              "size": {
      +                "type": "number"
      +              },
      +              "updatedAt": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "itemId",
      +              "fileName",
      +              "mimeType",
      +              "size",
      +              "checksum",
      +              "updatedAt",
      +              "resourceUri",
      +              "downloadUrl"
      +            ],
      +            "type": "object",
      +            "x-smry-component": "LibraryAsset"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "captureMethod": {
      +        "anyOf": [
      +          {
      +            "const": "reader",
      +            "type": "string"
      +          },
      +          {
      +            "const": "extension",
      +            "type": "string"
      +          },
      +          {
      +            "const": "upload",
      +            "type": "string"
      +          },
      +          {
      +            "const": "rss",
      +            "type": "string"
      +          },
      +          {
      +            "const": "email_inbox",
      +            "type": "string"
      +          },
      +          {
      +            "const": "api",
      +            "type": "string"
      +          },
      +          {
      +            "const": "import",
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "classification": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "confidence": {
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "method": {
      +            "anyOf": [
      +              {
      +                "const": "user",
      +                "type": "string"
      +              },
      +              {
      +                "const": "source_adapter",
      +                "type": "string"
      +              },
      +              {
      +                "const": "mime",
      +                "type": "string"
      +              },
      +              {
      +                "const": "extension",
      +                "type": "string"
      +              },
      +              {
      +                "const": "url",
      +                "type": "string"
      +              },
      +              {
      +                "const": "metadata",
      +                "type": "string"
      +              },
      +              {
      +                "const": "legacy",
      +                "type": "string"
      +              },
      +              {
      +                "const": "fallback",
      +                "type": "string"
      +              }
      +            ]
      +          },
      +          "updatedAt": {
      +            "type": "string"
      +          },
      +          "version": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "method",
      +          "confidence",
      +          "version",
      +          "updatedAt"
      +        ],
      +        "type": "object"
      +      },
      +      "contentKind": {
      +        "anyOf": [
      +          {
      +            "const": "article",
      +            "type": "string"
      +          },
      +          {
      +            "const": "website",
      +            "type": "string"
      +          },
      +          {
      +            "const": "book",
      +            "type": "string"
      +          },
      +          {
      +            "const": "email",
      +            "type": "string"
      +          },
      +          {
      +            "const": "pdf",
      +            "type": "string"
      +          },
      +          {
      +            "const": "social_post",
      +            "type": "string"
      +          },
      +          {
      +            "const": "video",
      +            "type": "string"
      +          },
      +          {
      +            "const": "podcast_episode",
      +            "type": "string"
      +          },
      +          {
      +            "const": "document",
      +            "type": "string"
      +          },
      +          {
      +            "const": "unknown",
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "domain": {
      +        "type": "string"
      +      },
      +      "externalId": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fileName": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "format": {
      +        "anyOf": [
      +          {
      +            "const": "html",
      +            "type": "string"
      +          },
      +          {
      +            "const": "pdf",
      +            "type": "string"
      +          },
      +          {
      +            "const": "epub",
      +            "type": "string"
      +          },
      +          {
      +            "const": "markdown",
      +            "type": "string"
      +          },
      +          {
      +            "const": "plain_text",
      +            "type": "string"
      +          },
      +          {
      +            "const": "document",
      +            "type": "string"
      +          },
      +          {
      +            "const": "spreadsheet",
      +            "type": "string"
      +          },
      +          {
      +            "const": "presentation",
      +            "type": "string"
      +          },
      +          {
      +            "const": "audio",
      +            "type": "string"
      +          },
      +          {
      +            "const": "video",
      +            "type": "string"
      +          },
      +          {
      +            "const": "unknown",
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "lastReadAt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "metadata": {
      +        "patternProperties": {
      +          "^(.*)$": {}
      +        },
      +        "type": "object"
      +      },
      +      "mimeType": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "originalUrl": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "readProgress": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "savedAt": {
      +        "type": "string"
      +      },
      +      "starred": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "tags": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "updatedAt": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "url",
      +      "originalUrl",
      +      "title",
      +      "domain",
      +      "contentKind",
      +      "classification",
      +      "captureMethod",
      +      "format",
      +      "mimeType",
      +      "fileName",
      +      "asset",
      +      "externalId",
      +      "status",
      +      "starred",
      +      "tags",
      +      "savedAt",
      +      "updatedAt",
      +      "lastReadAt",
      +      "readProgress",
      +      "articleStatus"
      +    ],
      +    "type": "object",
      +    "x-smry-component": "LibraryItem"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "article": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / changes / items / properties / item / properties
      Removed value: -{
      -  "article": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  "articleStatus": {
      -    "type": "string"
      -  },
      -  "asset": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": {},
      -        "properties": {
      -          "checksum": {
      -            "type": "string"
      -          },
      -          "downloadUrl": {
      -            "type": "string"
      -          },
      -          "fileName": {
      -            "type": "string"
      -          },
      -          "itemId": {
      -            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
      -            "type": "string"
      -          },
      -          "mimeType": {
      -            "type": "string"
      -          },
      -          "resourceUri": {
      -            "type": "string"
      -          },
      -          "size": {
      -            "type": "number"
      -          },
      -          "updatedAt": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "itemId",
      -          "fileName",
      -          "mimeType",
      -          "size",
      -          "checksum",
      -          "updatedAt",
      -          "resourceUri",
      -          "downloadUrl"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  "captureMethod": {
      -    "anyOf": [
      -      {
      -        "const": "reader",
      -        "type": "string"
      -      },
      -      {
      -        "const": "extension",
      -        "type": "string"
      -      },
      -      {
      -        "const": "upload",
      -        "type": "string"
      -      },
      -      {
      -        "const": "rss",
      -        "type": "string"
      -      },
      -      {
      -        "const": "email_inbox",
      -        "type": "string"
      -      },
      -      {
      -        "const": "api",
      -        "type": "string"
      -      },
      -      {
      -        "const": "import",
      -        "type": "string"
      -      }
      -    ]
      -  },
      -  "classification": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "confidence": {
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "method": {
      -        "anyOf": [
      -          {
      -            "const": "user",
      -            "type": "string"
      -          },
      -          {
      -            "const": "source_adapter",
      -            "type": "string"
      -          },
      -          {
      -            "const": "mime",
      -            "type": "string"
      -          },
      -          {
      -            "const": "extension",
      -            "type": "string"
      -          },
      -          {
      -            "const": "url",
      -            "type": "string"
      -          },
      -          {
      -            "const": "metadata",
      -            "type": "string"
      -          },
      -          {
      -            "const": "legacy",
      -            "type": "string"
      -          },
      -          {
      -            "const": "fallback",
      -            "type": "string"
      -          }
      -        ]
      -      },
      -      "updatedAt": {
      -        "type": "string"
      -      },
      -      "version": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "method",
      -      "confidence",
      -      "version",
      -      "updatedAt"
      -    ],
      -    "type": "object"
      -  },
      -  "contentKind": {
      -    "anyOf": [
      -      {
      -        "const": "article",
      -        "type": "string"
      -      },
      -      {
      -        "const": "website",
      -        "type": "string"
      -      },
      -      {
      -        "const": "book",
      -        "type": "string"
      -      },
      -      {
      -        "const": "email",
      -        "type": "string"
      -      },
      -      {
      -        "const": "pdf",
      -        "type": "string"
      -      },
      -      {
      -        "const": "social_post",
      -        "type": "string"
      -      },
      -      {
      -        "const": "video",
      -        "type": "string"
      -      },
      -      {
      -        "const": "podcast_episode",
      -        "type": "string"
      -      },
      -      {
      -        "const": "document",
      -        "type": "string"
      -      },
      -      {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    ]
      -  },
      -  "domain": {
      -    "type": "string"
      -  },
      -  "externalId": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "fileName": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "format": {
      -    "anyOf": [
      -      {
      -        "const": "html",
      -        "type": "string"
      -      },
      -      {
      -        "const": "pdf",
      -        "type": "string"
      -      },
      -      {
      -        "const": "epub",
      -        "type": "string"
      -      },
      -      {
      -        "const": "markdown",
      -        "type": "string"
      -      },
      -      {
      -        "const": "plain_text",
      -        "type": "string"
      -      },
      -      {
      -        "const": "document",
      -        "type": "string"
      -      },
      -      {
      -        "const": "spreadsheet",
      -        "type": "string"
      -      },
      -      {
      -        "const": "presentation",
      -        "type": "string"
      -      },
      -      {
      -        "const": "audio",
      -        "type": "string"
      -      },
      -      {
      -        "const": "video",
      -        "type": "string"
      -      },
      -      {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    ]
      -  },
      -  "id": {
      -    "type": "string"
      -  },
      -  "lastReadAt": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "metadata": {
      -    "patternProperties": {
      -      "^(.*)$": {}
      -    },
      -    "type": "object"
      -  },
      -  "mimeType": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "originalUrl": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "readProgress": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "savedAt": {
      -    "type": "string"
      -  },
      -  "starred": {
      -    "type": "boolean"
      -  },
      -  "status": {
      -    "type": "string"
      -  },
      -  "tags": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "title": {
      -    "type": "string"
      -  },
      -  "updatedAt": {
      -    "type": "string"
      -  },
      -  "url": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / changes / items / properties / item / required
      Removed value: -[
      -  "id",
      -  "url",
      -  "originalUrl",
      -  "title",
      -  "domain",
      -  "contentKind",
      -  "classification",
      -  "captureMethod",
      -  "format",
      -  "mimeType",
      -  "fileName",
      -  "asset",
      -  "externalId",
      -  "status",
      -  "starred",
      -  "tags",
      -  "savedAt",
      -  "updatedAt",
      -  "lastReadAt",
      -  "readProgress",
      -  "articleStatus"
      -]
    • removedOutput schema / properties / changes / items / properties / item / type
      Removed value: -"object"
  2. Changed2 schema fields changed
    • addedInput schema / properties / limit / multipleOf
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
  3. Changed2 schema fields changed
    • addedOutput schema / properties / changes / items / properties / item / properties / starred
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / changes / items / properties / item / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "originalUrl",
      -  "title",
      -  "domain",
      -  "contentKind",
      -  "classification",
      -  "captureMethod",
      -  "format",
      -  "mimeType",
      -  "fileName",
      -  "asset",
      -  "externalId",
      -  "status",
      -  "tags",
      -  "savedAt",
      -  "updatedAt",
      -  "lastReadAt",
      -  "readProgress",
      -  "articleStatus"
      -]New value: +[
      +  "id",
      +  "url",
      +  "originalUrl",
      +  "title",
      +  "domain",
      +  "contentKind",
      +  "classification",
      +  "captureMethod",
      +  "format",
      +  "mimeType",
      +  "fileName",
      +  "asset",
      +  "externalId",
      +  "status",
      +  "starred",
      +  "tags",
      +  "savedAt",
      +  "updatedAt",
      +  "lastReadAt",
      +  "readProgress",
      +  "articleStatus"
      +]
  4. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows this is a safe read operation. The description adds that the stream is append-only and includes deletions, which is useful behavior beyond the annotations, but it doesn't describe pagination behavior beyond the sync sequence or rate/retention constraints.

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?

Two tight sentences, front-loaded with the operation and scope, then the precise race-free sync procedure. No wasted words.

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?

With annotations covering safety, a complete schema, and an output schema handling return values, the description provides exactly the missing context: the append-only/deletion nature and the first-sync cursor procedure. Nothing an agent needs to call it correctly is missing.

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 the schema already documents both parameters with format constraints. The description adds the sync intent for cursor=latest but no syntax or format details beyond the schema, so baseline 3 is appropriate.

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 specific verb and resource (read the append-only library change stream) and adds the scope detail 'including deletions'. Distinguishes from sibling get_feed_changes (feed scope) and list_library (full listing) by showing it is an incremental change stream.

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?

Gives a precise when/how sequence for a race-free first sync: call once with cursor=latest, list the library, then continue from nextCursor. That is actionable context, though it doesn't name alternative sync tools or state when not to use this one.

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