Skip to main content
Glama
sahibinden-car-mcp

sahibinden-car-mcp

by gkdgbilal

İlan HTML içe aktar

import_listing_html

Imports locally saved sahibinden.com search and listing HTML pages, processing inbox files by path and skipping duplicates unless forced.

Instructions

Kullanıcının tarayıcıdan kaydettiği sahibinden arama/ilan sayfalarını (.html) içe aktarır. path verilmezse inbox klasöründeki yeni dosyaları işler; path yalnızca inbox içinde olabilir (göreli yol inbox'a göre çözülür). Büyük HTML'i html argümanına koyma; path kullan. Şehir filtreli arama sayfası kaydedildiyse (konum hücresi "İlçe Mahalle") ve sayfadan şehir anlaşılamıyorsa cityHint ver. Aynı dosya daha önce okunduysa ve parser sürümü aynıysa atlanır (duplicate); eski sürümle okunmuşsa otomatik yeniden okunur, force:true her durumda yeniden okutur.

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

Input Schema

NameRequiredDescriptionDefault
htmlNo
pathNo
forceNo
cityHintNo
sourceUrlNo

Output Schema

NameRequiredDescriptionDefault
skippedYes
importedYes
storeSizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it discloses the inbox-only path restriction (relative paths resolved against inbox), the default no-path behavior of processing new inbox files, dedup by file plus parser version, automatic re-read on old parser versions, and force:true overriding dedup. It stops short of describing failure handling (unparseable HTML, missing file) and whether the html argument is treated as raw content, which keeps it from a 5.

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 purpose, then ordered by operational need: path defaults, then the html-argument warning, then cityHint, then dedup/force. Dense but every clause carries operative information; the semicolon-chained duplicate/force sentence is the only spot that reads heavier than necessary.

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?

An output schema exists, so return values need no explanation, and the description covers the behavioral contract an agent needs: zero required parameters with clear defaults, path constraints, dedup semantics, and the force escape hatch. Only the sourceUrl parameter is left unexplained, which is a minor gap given the tool's overall clarity.

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 must supply meaning and it does for path (inbox-relative, inbox-only), html (avoid for large input, implies raw HTML content), force (bypass dedup), and cityHint (needed when a city-filtered search page's location cell is 'İlçe Mahalle' and city is undetectable). The fifth parameter, sourceUrl, is never mentioned, leaving one of five undocumented.

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: importing browser-saved sahibinden search/listing pages (.html). The scope is narrow and unambiguous, and no sibling tool (get_listing, search_cars, market_stats) does anything comparable, so an agent can route correctly.

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 when-to guidance on the internal choice of path vs html ('Büyük HTML'i html argümanına koyma; path kullan'), when to supply cityHint, and when force is needed. It does not say when to prefer this tool over the other listing tools (get_listing/search_cars), but the exclusive scope makes that mostly self-evident.

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