Skip to main content
Glama

Change a local ad

kleinanzeigen_update_ad
Idempotent

Updates only the given fields of a local ad file; supplied images replace all images. For live ads, apply the change with the online update step afterward.

Instructions

Changes fields of a local ad file. Only the given fields change; images, when given, replace all images. For an ad that is already online, call kleinanzeigen_update_online_ads afterwards to apply the change on Kleinanzeigen.

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

Input Schema

NameRequiredDescriptionDefault
nameYesName of the ad folder in the workspace (see kleinanzeigen_list_local_ads).
typeNoOFFER = Angebot (selling), WANTED = Gesuch.
priceNoWhole euros.
titleNo10-65 characters.
activeNofalse keeps the ad local; publish skips it.
imagesNoAbsolute paths of local JPG/PNG/WebP images (first = cover). They must lie inside KLEINANZEIGEN_UPLOAD_DIRS; they are copied into the workspace.
contactNoOverrides ad_defaults.contact from config.yaml. Postcode decides where the ad is shown.
categoryNoThe most specific category: an id path like "210/217/herren" or "161/278", or a name like "Elektronik > Notebooks". Some categories need a last selection (e.g. Fahrräder: damen, herren, kinder, zubehoer, weiteres); the error then lists it. Use kleinanzeigen_get_category_fields to see the extra fields a category needs.
price_typeNoFIXED = Festpreis, NEGOTIABLE = VB, GIVE_AWAY = Zu verschenken.
descriptionNoPlain text, up to 4000 characters.
sell_directlyNo"Direkt kaufen"; needs shipping options and a price.
shipping_typeNoPICKUP = Nur Abholung, SHIPPING = Versand möglich.
shipping_optionsNo
special_attributesNoCategory specific fields, e.g. {"condition_s": "like_new"}.
republication_intervalNoDays until republishing.

Output Schema

NameRequiredDescriptionDefault
adYes
nameYes
verifyYesResult of `kleinanzeigen-bot verify` for this ad (null when the bot is not installed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare idempotent, non-destructive, non-read-only, so the bar is lower, yet the description adds two facts the annotations do not convey: only supplied fields change (partial update, not overwrite), and images replace the entire image set despite destructiveHint=false. It omits failure modes such as invalid category paths or permission errors on upload dirs.

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 short sentences, zero padding, with the core mutation semantics front-loaded and the workflow pointer last. Every sentence carries distinct information.

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 15-parameter mutation with nested contact and special_attributes objects, the description covers the essentials: partial update, image replacement, and the two-step publish path. An output schema exists so return values need not be explained, and the rich schema carries the per-field detail.

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 93%, so the baseline is 3; the description earns a bump by stating the replace-not-append semantics for images, which the schema itself does not spell out. Other parameters (name pattern, contact override, category path syntax) are left entirely 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?

Names a specific verb and resource ("Changes fields of a local ad") and pins down the object as a local ad file, which separates it from the online-ad siblings. The closing sentence routing online ads to kleinanzeigen_update_online_ads completes the differentiation.

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?

Gives an explicit follow-up rule: for an ad already online, call kleinanzeigen_update_online_ads afterwards to push the change. It does not cover when to prefer this over create_ad or delete_local_ad, but the local-vs-online condition that matters most is stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.