Skip to main content
Glama
willhaben-mcp

willhaben-mcp

by Samxel

list_categories

Read-only

Find category IDs for search_willhaben by querying the category tree, listing subcategories under a parent, or browsing top-level categories.

Instructions

Find category ids for search_willhaben. Returns {count, categories: [{id, path, has_children}]}.

Args: query: Part of a category name; searches the whole tree. parent_id: List the subcategories of this id. Omit both for the top level. limit: At most 100. Default 50.

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": "list_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
parent_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=true and openWorldHint=false, and the description adds real value on top: it documents the return shape ({count, categories:[{id, path, has_children}]}) and the hard cap of 100 on limit. It does not say what happens to values above 100 (error vs clamp) or whether results are paginated.

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-loads purpose and return shape, then a compact Args block with zero filler. The RST-style double-backtick markup adds light noise but does not impede comprehension.

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 compensates by declaring the return structure, and it documents every input parameter. For a read-only tree-browsing tool the only missing pieces are query/parent_id combination semantics and limit overflow behavior, both minor.

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 0%, so the description carries the full burden and does so for all three parameters: query is a partial-name tree search, parent_id selects subcategories of an id, limit is capped at 100 with default 50. The only gap is the unstated interaction between query and parent_id and the enforcement behavior of the limit cap.

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 ('Find category ids') and names the consumer tool it serves ('search_willhaben'), which immediately distinguishes it from the sibling search_* tools. An agent can tell what it produces without opening the schema.

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 traversal guidance: query searches the whole tree, parent_id lists subcategories, and omitting both returns the top level. It lacks an explicit statement of when NOT to use this versus browsing via other list_* tools, and never says whether query and parent_id may be combined.

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