Skip to main content
Glama

edit_item

Destructive

Change one item in a review: its title, its comment, its position, or (for a screenshot) crop it. crop is {x, y, w, h} in fractions 0 to 1 of the current image; cropping removes the item's pins and shapes, since their positions were relative to the old image. move_to is the new 1-based position. Fields you leave out are unchanged.

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": {
      "review": "<review>",
      "claim_token": "<claim_token>",
      "item": "<item>"
    },
    "name": "edit_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropNoCrop rectangle in fractions of the image.
itemYes1-based position of the item in the review, as get_review numbers them.
titleNoNew title (empty string clears it).
reviewYesReview URL or slug.
commentNoNew comment text, replacing the old one.
move_toNoNew 1-based position.
claim_tokenYesThe claim_token from create_review (or the owner's agent token).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Goes meaningfully beyond annotations by disclosing a real consequence: cropping removes the item's pins and shapes because their coordinates were relative to the old image. That is exactly the destructive side effect an agent needs warned about, given destructiveHint=true. It still doesn't say what the call returns or whether concurrent edits conflict, so it stops short of full disclosure.

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?

Three tight sentences, operation stated first, then per-field semantics, then the partial-update default. No filler and nothing repeated from the schema verbatim; the semicolon-packed crop sentence carries two distinct facts without padding.

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 no output schema, the definition covers what can change, how crop and move_to are interpreted, and what is destroyed by cropping. Remaining gaps — return value, permission/claim_token expectations, and error behavior — are modest but real for a destructive non-idempotent call.

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 baseline is 3, but the description adds genuine meaning: crop coordinates are fractions 0–1 of the *current* image (not pixels, not the original image), move_to is 1-based, and omitted fields are left unchanged. That last point materially changes how an agent should construct a partial update.

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 a specific verb and resource ('Change one item in a review') and enumerates the exact editable aspects: title, comment, position, crop. The parenthetical '(for a screenshot)' scopes the crop capability so an agent can tell this apart from add_screenshot, replace_screenshot, or delete_item without opening another schema.

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

Usage Guidelines3/5

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

Usage is only implied: the tool edits an existing item, and 'Fields you leave out are unchanged' clarifies it is a partial update rather than a replace. There is no explicit when-to-use versus siblings (e.g., replace_screenshot vs cropping, or add_note vs setting comment), and no stated prerequisites such as needing edit rights on the review.

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