Skip to main content
Glama

Prepare a new ad

kleinanzeigen_create_ad

Creates a new Kleinanzeigen ad in the local workspace, saving its YAML file and copying images so you can review it before publishing or saving it as a private draft.

Instructions

Creates a new ad in the local workspace (not online yet): writes ads//ad_.yaml and copies the images. Then call kleinanzeigen_publish_ads (public) or kleinanzeigen_save_drafts (private draft).

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": {
      "title": "<title>",
      "description": "<description>",
      "category": "<category>"
    },
    "name": "kleinanzeigen_create_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFolder name for the ad; derived from the title when omitted.
typeNoOFFER = Angebot (selling), WANTED = Gesuch.OFFER
priceNoWhole euros.
titleYes10-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.
categoryYesThe 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.NEGOTIABLE
descriptionYesPlain text, up to 4000 characters.
sell_directlyNo"Direkt kaufen"; needs shipping options and a price.
shipping_typeNoPICKUP = Nur Abholung, SHIPPING = Versand möglich.PICKUP
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.2/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent, closed-world mutation, so the safety baseline is set. The description adds real context beyond that: the ad is only staged locally, a specific YAML path is written, and images are copied. It omits what happens when ads/<name> already exists (relevant since idempotentHint=false) and whether an existing ad is overwritten.

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?

Two sentences, front-loaded with the core action and scope, then the required next step. No filler and nothing an agent must read past to find the key constraints.

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 creation tool this covers the essentials: what is produced on disk, that it is offline-only, and which sibling to call next. Return values are covered by the output schema, so the remaining gap is only edge-case behavior such as name reuse and interaction with the `active` flag.

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 description coverage is 93%, so the schema already carries nearly all parameter meaning, including the category-path syntax, image path restrictions, and shipping-size grouping. The description adds nothing about parameters beyond implying the image copy behavior, so the baseline 3 applies.

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 ("Creates a new ad") and immediately scopes it: "in the local workspace (not online yet)". It even names the concrete artifacts written (ads/<name>/ad_<name>.yaml plus copied images), which makes it unmistakable versus kleinanzeigen_publish_ads or kleinanzeigen_update_ad.

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?

Explicitly routes the agent to the two follow-up siblings with their distinguishing condition: kleinanzeigen_publish_ads for public listing vs kleinanzeigen_save_drafts for a private draft. It does not state when to prefer kleinanzeigen_update_ad for an existing ad or how to handle a name collision, so it stops short of full when/when-not coverage.

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