Skip to main content
Glama

Remove a photo from a listing

remove_listing_photo
DestructiveIdempotent

Takes one photo off one of the person's listings: a wrong, blurry or doubled one, or one that doesn't match the description. photo_id is the photo's id (ph_...) or its address, as get_listing's card or see_listing_photos gives it. Check with the person first. If the listing was up, it goes back to a draft for them to sign again. The card's photo strip has a remove button for each photo too. Needs sign-in.

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": {
      "listing_id": "<listing_id>",
      "photo_id": "<photo_id>"
    },
    "name": "remove_listing_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
photo_idYesThe photo's id (ph_...) or its address.
listing_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the description's job is to add consequence detail – and it does: 'If the listing was up, it goes back to a draft for them to sign again' and 'Needs sign-in.' That is a meaningful side effect not captured by the annotations. It does not state whether the removal is reversible or what happens if the photo_id is stale.

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?

The core mutation and its consequence are front-loaded in the first and third sentences, with the id-format hint and caution following. The aside about the card's remove button is slightly tangential but still tells the agent an alternative exists, so little is wasted.

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 destructive two-parameter mutation with no output schema, the description covers the consequential behavior (revert to draft), the auth requirement, and the id source. Remaining gaps – error handling for unknown listings/photos and reversibility – are modest but real.

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?

With only 50% schema description coverage, the description compensates well for photo_id by explaining the accepted formats ('ph_...' or its address) and where to obtain them (get_listing's card, see_listing_photos). listing_id is left unexplained, but its meaning is unambiguous from context, so the gap is minor.

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 description opens with a concrete verb and resource: 'Takes one photo off one of the person's listings,' naming the target and the scope (one photo, one listing). The mentions of get_listing and see_listing_photos implicitly distinguish this from the read-side siblings (see_listing_photos) and the additive sibling (add_listing_photos).

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?

It gives a clear selection criterion ('a wrong, blurry or doubled one, or one that doesn't match the description') and a procedural caution ('Check with the person first'), plus an alternative path ('The card's photo strip has a remove button for each photo too'). It stops short of explicitly naming a sibling tool to use instead when someone just wants to view photos, but the context is otherwise clear.

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.