Skip to main content
Glama

delete_listing

DestructiveIdempotent

Delete (soft-delete) one of the USER'S OWN listings by listing_id: it leaves the marketplace and cannot be restored through these tools. Use it ONLY when the user clearly asks to delete the listing. If they say "take it down", "pause it" or "I sold it", use set_listing_status (hidden or sold) instead — that is reversible. Ask for confirmation when the request is ambiguous. Only the owner can delete. No credit is refunded — the listing was already published. Returns { success: true } when the listing was deleted.

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>"
    },
    "name": "delete_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
listing_idYesListing id, taken from the `id` field of search_listings, search_listings_by_meaning or list_my_listings results. Example: "adzuna-us-5947308680".

Output Schema

NameRequiredDescriptionDefault
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / listing_id / description
      Previous value: -"Listing id, taken from the `id` field of search_listings, semantic_search or list_my_listings results. Example: \"adzuna-us-5947308680\"."New value: +"Listing id, taken from the `id` field of search_listings, search_listings_by_meaning or list_my_listings results. Example: \"adzuna-us-5947308680\"."
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changed
    • addedInput schema / properties / listing_id / description
      Added value: +"Listing id, taken from the `id` field of search_listings, semantic_search or list_my_listings results. Example: \"adzuna-us-5947308680\"."
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  6. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds consequences those hints do not convey: the deletion is soft yet not restorable through these tools, only the owner can perform it, and no credit is refunded because the listing was already published. It also states the return payload, so the agent knows what success looks like.

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?

The irreversible action and its scope are front-loaded in the first clause, followed by the routing rule and the disambiguation guidance in descending order of importance. Every sentence carries decision-relevant content, with no restatement of the name or filler.

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?

For a destructive, single-parameter mutation tool, the definition covers reversibility, ownership preconditions, the credit/refund side effect, the sibling alternative, and the success response. With an output schema present and annotations covering the safety profile, nothing material is left for the agent to guess.

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 coverage is 100% and the listing_id field already documents its source (the `id` field of search_listings, search_listings_by_meaning, or list_my_listings) with an example. The description only adds the ownership constraint implied by 'USER'S OWN listings' and 'Only the owner can delete', which is useful but slight; baseline 3 is appropriate when the schema carries the parameter meaning.

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 specific verb and resource ('Delete (soft-delete) one of the USER'S OWN listings by listing_id') and immediately scopes it to the caller's own listings. It is clearly differentiated from the nearest sibling, set_listing_status, so an agent can route correctly without comparing schemas.

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 states an explicit positive condition ('ONLY when the user clearly asks to delete'), an explicit negative condition with literal user phrasings ('take it down', 'pause it', 'I sold it'), and names the correct alternative (set_listing_status with hidden or sold) along with why that alternative is preferred (reversible). It also instructs the agent to ask for confirmation when the request is ambiguous, which resolves the main ambiguity case.

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