Skip to main content
Glama

manage_filters

Destructive

Manage the filter stack: op list | set_visibility | delete. list returns every filter on the photo (layers inside groups included), top of the stack first; it is the way to check what add_adjustment and add_effect produced and to find a filter's id for a re-edit. set_visibility switches one filter on or off without deleting it. delete permanently removes one (filter_id) or up to 100 at once (filter_ids); there is no undo, and if any id in filter_ids is unknown nothing is deleted. There is no apply op (creating or re-editing a filter is the job of add_adjustment and add_effect) and no reorder: delete and re-create the filters in the order you want.

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": {
      "image": "<image>",
      "op": "<op>"
    },
    "name": "manage_filters"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/type/visible/mask/source and params. source "editmamei" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source "readback" = a filter not made with these tools: it is listed as type "other" without its settings, and cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one (`filter_id`), or several at once (`filter_ids`). There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead.
imageYesImage id, as returned by open_photo.
visibleNoRequired for set_visibility.
filter_idNoRequired for set_visibility, and for delete unless `filter_ids` is given.
filter_idsNodelete only: several filter ids to delete in one call (instead of `filter_id`). Every id is checked first: an unknown or repeated one refuses the whole call, and nothing is deleted.

Output Schema

NameRequiredDescriptionDefault
nameNo
deletedNo
filtersNo
visibleNo
filter_idNo
filter_idsNo
mindset_notesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / editor_notes
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / mindset_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / filter_id / description
      Previous value: -"Required for set_visibility / delete."New value: +"Required for set_visibility, and for delete unless `filter_ids` is given."
    • addedInput schema / properties / filter_ids
      Added value: +{
      +  "description": "delete only: several filter ids to delete in one call (instead of `filter_id`). Every id is checked first: an unknown or repeated one refuses the whole call, and nothing is deleted.",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / op / description
      Previous value: -"'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/type/visible/mask/source and params. source \"editmamei\" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source \"readback\" = a filter not made with these tools: it is listed as type \"other\" without its settings, and cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one. There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead."New value: +"'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/type/visible/mask/source and params. source \"editmamei\" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source \"readback\" = a filter not made with these tools: it is listed as type \"other\" without its settings, and cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one (`filter_id`), or several at once (`filter_ids`). There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead."
    • addedOutput schema / properties / filter_ids
      Added value: +{
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / editor_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / op / description
      Previous value: -"'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/type/visible/mask/source and params. source \"editmamei\" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source \"readback\" = a filter made outside Editmamei: it is listed as type \"other\" without its settings, and cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one. There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead."New value: +"'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/type/visible/mask/source and params. source \"editmamei\" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source \"readback\" = a filter not made with these tools: it is listed as type \"other\" without its settings, and cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one. There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead."
  5. Changed1 schema field changed
    • changedInput schema / properties / op / description
      Previous value: -"'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/operation/visible/mask/source and params. source \"editmamei\" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source \"readback\" = a filter Editmamei did not create; its params are raw property names and units (not add_adjustment fields), lossy for per-channel curves after a reload, and such a filter cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one. There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead."New value: +"'list' returns every filter on the image (including filters on layers inside groups), top of stack first, with layer/layer_id (which layer the filter lives on, and that layer's id), id/name/type/visible/mask/source and params. source \"editmamei\" = exact ledger record, with params in add_adjustment's own field names and units, so they can be passed straight back on a re-edit. source \"readback\" = a filter made outside Editmamei: it is listed as type \"other\" without its settings, and cannot be re-edited. 'set_visibility' toggles one filter without deleting it. 'delete' removes one. There is no 'reorder' — the editor has no API for it; delete and re-create the filters in the desired order instead."
  6. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds substantive behavior the agent could not infer: no undo on delete, up to 100 ids per call, and all-or-nothing semantics where any unknown id in `filter_ids` aborts the entire call with nothing deleted. It further discloses the `source` distinction between exact ledger records (re-editable) and readback filters that cannot be re-edited.

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?

Front-loaded with the op list, then one sentence per op, so an agent can skim to the operation it needs. There is some redundancy — the absence of `reorder` is stated both in the description and in the `op` schema — but nothing is padding.

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?

An output schema exists and annotations cover the safety profile, so the description only needs to cover dispatch, side effects, and failure modes — all of which it does, including atomicity and the irreversibility of delete. Nothing an agent needs in order to call this 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% and the `op` enum already carries most of the operational detail, so the description mainly restates parameter roles (`filter_id` vs `filter_ids`, cap of 100) rather than adding new semantics. It does add the practical pointer that `list` is how you obtain an id, which is modest value on top of 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?

Opens with a specific verb+resource and immediately enumerates the three operations, so the agent knows exactly what surface it controls. It also names the siblings that handle adjacent jobs (`add_adjustment`, `add_effect`), making the boundary unambiguous.

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 when-to-use guidance per op: `list` is framed as the way to verify what `add_adjustment`/`add_effect` produced and to obtain an id for a re-edit, `set_visibility` for toggling without deletion, `delete` for removal. It also states when NOT to use it ('There is no `apply` op... and no `reorder`') and supplies the workaround (delete and re-create in the desired order).

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