Skip to main content
Glama
willhaben-mcp

willhaben-mcp

by Samxel

get_ad_detail

Read-only

Retrieve one ad's full description, condition, attributes, category, and location, including handover options; pass up to 10 ids to compare several ads at once.

Instructions

One ad in full: the complete description (also when the app API cuts it), condition, attributes, category, location and image_count. To compare several, pass up to 10 ids instead; they come back as {count, ads, failed}.

It is the only place that says how an item changes hands: handover ("Selbstabholung", "Versand") with ships and pickup_only.

Args: ad_id: The ad id from a search. ids: Several ad ids, instead of ad_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_ad_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo
ad_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description's job is to add operational context, which it does: the 10-id batch cap, the batch return shape {count, ads, failed}, and the caveat that the app API may truncate the description. The presence of a `failed` bucket signals partial-failure behavior. It does not describe error handling for invalid ids or any rate limits.

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?

Front-loaded with the highest-value information (what comes back), then batching, then the differentiator, then args. The Args block restates ad_id/ids already mentioned in prose, which is mild redundancy, and the double-backtick markup adds visual noise but no real cost.

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?

With no output schema, the description does the work of explaining return contents and the batch envelope, which is the right call for a detail-fetch tool. It is nearly complete; only the semantics of the `failed` list and behavior when no id is supplied are left implicit.

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 description coverage is 0%, so the description carries the full burden and largely meets it: ad_id is explained as "The ad id from a search", ids is framed as a mutually exclusive alternative ("instead of ad_id") with a hard limit of 10. It does not clarify what happens if both are passed or that neither is required, which is the remaining gap.

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?

Opens with a specific verb+resource framing ("One ad in full") and enumerates exactly what is returned: description, condition, attributes, category, location, image_count. It also carves out a unique capability ("the only place that says how an item changes hands"), which separates it from siblings like get_ad_images and get_ad_seller without naming them.

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 concrete routing guidance for the batch case: "To compare several, pass up to 10 ids instead". Combined with "the only place that says how an item changes hands", an agent knows to call this for full detail and handover info. It stops short of explicit when-not-to-use guidance versus the per-aspect siblings.

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