Skip to main content
Glama

Mark watched or unwatched

set_watched

Marks a film, series, season or episode watched or unwatched in Jellyfin, a film, series, season or episode watched or unwatched in Emby or a Grimmory book read or unread.

Instructions

Marks a film, series, season or episode watched or unwatched in Jellyfin, a film, series, season or episode watched or unwatched in Emby or a Grimmory book read or unread. Give a title, or item_id, the Jellyfin or Emby id: playback.itemId from get_library or get_media_details, or itemId from get_playback. A Radarr or Sonarr id is refused. A series id with season marks one season. A book is grimmory:<book id>; READ is watched, and marking sets its finish date to now. Safe tier, but unmarking and re-marking loses the original play date and resume position. A user other than the default needs services.jellyfin.allow_other_users or services.emby.allow_other_users. Previews first; confirm to apply. Field reference: arr://docs/set_watched.

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": {
      "watched": "<watched>"
    },
    "name": "set_watched"
  }
}

Input Schema

NameRequiredDescriptionDefault
userNoWhose watch state to change. Defaults to services.jellyfin.default_user or services.emby.default_user; naming anyone else needs services.jellyfin.allow_other_users or services.emby.allow_other_users.
titleNoA film or series title, in place of `item_id`. Resolved as get_media_details does; a title two items match equally is refused with both ids.
seasonNoOne season of a series. Omit with a series id to mark the whole series. Refused on a film.
confirmNoThe token from this tool's preview; pass it back to apply.
dry_runNoPreview only, no token issued: for "what if" questions, not the first step of a change.
item_idNoThe Jellyfin item id: 32 hex characters. The Emby item id: digits only. `playback.itemId` on a get_library or get_media_details record, or the `itemId` get_playback reports. A book is `grimmory:<book id>`. Not a Radarr or Sonarr id.
watchedYestrue to mark watched, false to unmark.

Output Schema

NameRequiredDescriptionDefault
noopYes
tierYes
toolYes
targetYes
appliedYes
dry_runYes
effectsYes
serviceYes
summaryYes
operationYes
permissionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.4.0
    • changedInput schema / properties / item_id / description
      Previous value: -"The Jellyfin item id: 32 hex characters. `playback.itemId` on a get_library or get_media_details record, or the `itemId` get_playback reports. A book is `grimmory:<book id>`. Not a Radarr or Sonarr id."New value: +"The Jellyfin item id: 32 hex characters. The Emby item id: digits only. `playback.itemId` on a get_library or get_media_details record, or the `itemId` get_playback reports. A book is `grimmory:<book id>`. Not a Radarr or Sonarr id."
    • changedInput schema / properties / user / description
      Previous value: -"Whose watch state to change. Defaults to services.jellyfin.default_user; naming anyone else needs services.jellyfin.allow_other_users."New value: +"Whose watch state to change. Defaults to services.jellyfin.default_user or services.emby.default_user; naming anyone else needs services.jellyfin.allow_other_users or services.emby.allow_other_users."
  2. Changed12 schema fields changedv2.2.0
    • changedInput schema / properties / confirm / description
      Previous value: -"The token from this tool's preview, passed back verbatim to apply it. Single-use and bound to the previewed arguments."New value: +"The token from this tool's preview; pass it back to apply."
    • changedInput schema / properties / dry_run / description
      Previous value: -"Preview without a confirm token, for \"what would happen if\" questions; not the first step of a real change."New value: +"Preview only, no token issued: for \"what if\" questions, not the first step of a change."
    • addedInput schema / properties / season / minimum
      Added value: +0
    • removedOutput schema / properties / audit_id
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / confirm_error
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / confirm_token
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / next_steps
      Removed value: -{
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "tool": {
      -        "type": "string"
      -      },
      -      "why": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "arguments",
      -      "why"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / permission / properties / reason
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / permission / properties / remedy
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / result
      Removed value: -{}
    • removedOutput schema / properties / unchecked
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / warnings
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
  3. Changed1 schema field changedv1.84.0
    • changedInput schema / properties / item_id / description
      Previous value: -"The Jellyfin item id — 32 hex characters. `playback.itemId` on a get_library or get_media_details record, or the `itemId` get_playback reports. Or `grimmory:<book id>` for a book. Not a Radarr or Sonarr id."New value: +"The Jellyfin item id: 32 hex characters. `playback.itemId` on a get_library or get_media_details record, or the `itemId` get_playback reports. A book is `grimmory:<book id>`. Not a Radarr or Sonarr id."
  4. Changed21 schema fields changedv1.74.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / confirm / description
      Previous value: -"The confirmation token from this same tool's preview of this same operation. Omit it to get a preview and a token; pass the token back verbatim to apply the change. Tokens are single-use, expire, and are bound to the exact operation and arguments previewed."New value: +"The token from this tool's preview, passed back verbatim to apply it. Single-use and bound to the previewed arguments."
    • changedInput schema / properties / dry_run / description
      Previous value: -"Preview only: resolve the target and describe exactly what would happen, then stop. Never mutates anything and never returns a confirmation token. Use this to answer \"what would happen if…\" — not as the first step of actually doing it."New value: +"Preview without a confirm token, for \"what would happen if\" questions; not the first step of a real change."
    • removedInput schema / properties / season / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / season / minimum
      Removed value: --9007199254740991
    • addedInput schema / properties / title
      Added value: +{
      +  "description": "A film or series title, in place of `item_id`. Resolved as get_media_details does; a title two items match equally is refused with both ids.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "item_id",
      -  "watched"
      -]New value: +[
      +  "watched"
      +]
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / properties / applied / description
      Removed value: -"Whether the change actually happened. False on every preview, refusal and no-op."
    • removedOutput schema / properties / audit_id / description
      Removed value: -"The audit row this call wrote. Every branch writes one, including previews and refusals."
    • removedOutput schema / properties / confirm_error / description
      Removed value: -"Why a presented token was rejected. Present only when one was presented."
    • removedOutput schema / properties / confirm_token / description
      Removed value: -"Present when a preview is awaiting confirmation. Single-use, expiring, bound to this exact operation and arguments."
    • removedOutput schema / properties / dry_run / description
      Removed value: -"Whether this was an explicit preview."
    • removedOutput schema / properties / effects / description
      Removed value: -"Itemised consequences, most severe first. Empty is legitimate for a no-op."
    • removedOutput schema / properties / next_steps / description
      Removed value: -"Present on an applied write when another call is worth offering. Offer it to the person; do not run it."
    • removedOutput schema / properties / noop / description
      Removed value: -"True when the request resolved but there was nothing to do — already monitored, already approved."
    • removedOutput schema / properties / result / description
      Removed value: -"Whatever the service returned, on a write that landed."
    • removedOutput schema / properties / summary / description
      Removed value: -"One sentence, safe to show a human."
    • removedOutput schema / properties / target / description
      Removed value: -"The resolved id the write acts on — what the confirmation token is bound to."
    • removedOutput schema / properties / unchecked / description
      Removed value: -"Present when a service could not be asked, so its absence from `warnings` means nothing."
    • removedOutput schema / properties / warnings / description
      Removed value: -"Present on a preview when another service has something to say about this change. Tell the user before confirming."
  5. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false; the description adds substantially more — that unmarking and re-marking destroys the original play date and resume position, that marking sets the finish date to now, that non-default users require allow_other_users config, and that previews must be confirmed with a token.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is dense and largely front-loaded, but the opening sentence duplicates itself awkwardly ('a film, series, season or episode watched or unwatched' repeated per service), wasting space. The trailing 'Field reference: arr://docs/set_watched' pointer is unexplained and adds little for an agent.

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 7-parameter mutation tool with an output schema, it covers the important gaps: multi-backend id formats, season scoping, user permissions, and the preview/confirm contract. The one unresolved detail is how an agent obtains the confirm token beyond 'previews first', which is implied but not spelled out.

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 already 100%, so baseline is 3; the description still adds behavioral meaning the schema lacks — tie-breaking behavior when a title matches two items, refusal of Radarr/Sonarr ids, and the `grimmory:<book id>` convention. It does not restate the `watched` boolean or `confirm` mechanics in more depth than the schema.

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 the exact verb and the resources it applies to across three backends (Jellyfin film/series/season/episode, Emby equivalents, Grimmory books), plus the invertible watched/unwatched semantics. An agent knows precisely what state change this performs without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: supply `title` or `item_id` (naming which fields on get_library/get_media_details/get_playback supply the id), Radarr/Sonarr ids are refused, a series id plus `season` narrows to one season. It also mandates the preview-then-confirm workflow and explains that `dry_run` is for hypotheticals, not the first step of a change.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.