Skip to main content
Glama

share_edit

Destructive

Prepare a page that shows the user how this edit was made, so they can share it: before and after, a picture for each step that changed the look, and a plain list of the steps. Call it for an image you edited in this conversation, once the user is happy with the result and wants to share it, by the id you edited it under: do not reopen the photo to share it, because a reopened photo starts a new history and the page would show none of the edit. It makes a DRAFT only and returns a confirm link; give that link to the user, who confirms there before anything is public. It also looks for license plates and faces in the before and the after picture and reports what it finds in each: if it finds any, offer to blur or remove them first (a masked blur stays on in every picture), then call it again. It takes about a minute. Your adjustments are left exactly as they were. Give it chapters: the edit told as a few chunks of work, each saying in plain words what it did to the photo (for example "Brought out the water: selected the water and lifted its turquoise and depth"), not tool names. To write them, first call it with preview: true: it returns the numbered steps at once, with no draft and no pictures; then call it once with your chapters. Chapters that do not fit are refused before anything is made. To change a draft's title or chapters afterwards, call it with that draft's share_id and title or chapters: it revises the draft, with no new pictures. Sharing the same photo again (after more edits) makes a new draft that replaces its earlier unconfirmed one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "share_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoThe id of the edited image, as returned by open_photo. Required unless `share_id` is given.
titleNoA short title for the page (at most 80 characters). Default: "My edit".
previewNoTrue returns the numbered steps (and the chapters, checked, when given) at once, with no draft and no pictures. Default false.
chaptersNoAt most 8 chapters covering every step once, in order. Without them the steps are grouped by kind of work.
share_idNoA draft's share_id, from an earlier call: revises that draft's `title` or `chapters` instead of making a new one, with no new pictures.
include_beforeNoWhether the page shows the before picture and a picture for each step (default true). False shares the after picture and the list of steps alone, for an edit whose original must not be shown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / image / description
      Previous value: -"The id of the edited image, as returned by open_photo."New value: +"The id of the edited image, as returned by open_photo. Required unless `share_id` is given."
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "True returns the numbered steps (and the chapters, checked, when given) at once, with no draft and no pictures. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / share_id
      Added value: +{
      +  "description": "A draft's share_id, from an earlier call: revises that draft's `title` or `chapters` instead of making a new one, with no new pictures.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "image"
      -]
  2. Changed1 schema field changed
    • addedInput schema / properties / chapters
      Added value: +{
      +  "description": "At most 8 chapters covering every step once, in order. Without them the steps are grouped by kind of work.",
      +  "items": {
      +    "properties": {
      +      "steps": {
      +        "description": "The first and last step it covers, numbered from 1.",
      +        "items": {
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "maxItems": 2,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "text": {
      +        "description": "One or two plain sentences on what changed in the photo and why.",
      +        "maxLength": 200,
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "What this chunk of work did, e.g. \"Brought out the water\".",
      +        "maxLength": 60,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "steps"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 8,
      +  "type": "array"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Well beyond what the annotations state, it discloses that only a DRAFT is made, that a confirm link is returned and nothing is public until the user confirms, that it scans before/after for license plates and faces and reports them, that it takes about a minute, and that adjustments are left untouched. The replacement of an earlier unconfirmed draft on repeat sharing is consistent with destructiveHint=true rather than contradicting it.

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?

It is front-loaded with the purpose and nearly every clause carries operational information (the reopen warning, the preview loop, the minute-long runtime). The cost is a dense, dash-and-colon-heavy single block that an agent must parse in one pass; breaking the workflow into ordered sentences would improve scanability without losing content.

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 no output schema, the description still covers the return contract (a confirm link, or numbered steps for preview) and the error behavior (chapters that do not fit are refused before anything is made). For a six-parameter, non-idempotent, side-effecting tool, the description supplies everything needed to call it correctly.

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 100%, so the baseline is 3; the description earns extra by explaining how to author `chapters` (plain words about what changed, not tool names, with a worked example) and by describing the `share_id` revision path and its no-new-pictures behavior. It does not elaborate on `include_before` or `title`, leaving those to 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?

The opening sentence names a specific verb and artifact: prepare a shareable page showing how an edit was made, with before/after, per-step pictures and a step list. No sibling tool (export_photo, preview, make_carousel) does this, and the description makes the distinction obvious 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?

It gives explicit when-to-use conditions (an image edited in this conversation, once the user is happy and wants to share), an explicit when-not (do not reopen the photo, because a reopened photo starts a new history), and a prescribed workflow (preview: true first, then a single call with chapters). Alternative paths for revision via share_id are also spelled out.

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