Skip to main content
Glama

Avito Search

avito_search
Read-onlyIdempotent

Search Avito listings by text query with optional category and location filters. Returns price, availability, and reservation status per ad.

Instructions

Search Avito listings via the internal js/items API.

price_rub is None for an ad without a price — never 0. Each hit carries availability from Avito's own isReserved flag; reserved hits are kept unless include_inactive=false.

Full field list and error codes: guide://avito/avito_search.

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

Input Schema

NameRequiredDescriptionDefault
pageNoResult page (1-based)
queryYesSearch text, e.g. 'thinkpad x1 carbon'
category_idNoOptional Avito category id to narrow the search
location_idNoAvito location id; default AVITO_LOCATION_ID (637640 = Moscow)
include_inactiveNoKeep reserved hits (availability=reserved), the default. false drops them from items and counts them in excluded_inactive; total_count still includes them

Output Schema

NameRequiredDescriptionDefault
pageNo
_metaNo
countNo
itemsNo
queryNo
statusNo
tier_usedNo
location_idNo
total_countNo
excluded_inactiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.1
    • addedInput schema / properties / include_inactive
      Added value: +{
      +  "default": true,
      +  "description": "Keep reserved hits (availability=reserved), the default. false drops them from items and counts them in excluded_inactive; total_count still includes them",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / excluded_inactive
      Added value: +{}
  2. First observedv1.5.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: price_rub is None rather than 0 for unpriced ads, availability derives from Avito's isReserved flag, and reserved hits are retained by default. It also points to a guide resource for field lists and error codes. Not a 5 only because return shape is partly covered by the output schema.

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?

The core action is front-loaded in the first sentence and the remaining lines are dense with distinct facts (unpriced ads, reservation handling, doc pointer). No filler sentences. The line breaks make it slightly fragmented to read but nothing is redundant.

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?

For a read-only, single-required-parameter search with a 100%-covered schema, an output schema, and full annotations, the description supplies exactly the missing context: null-price convention, availability semantics, and a pointer for the full field list and error codes. Nothing an agent needs in order to call it correctly is absent.

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 100%, so the parameters (page, query, category_id, location_id, include_inactive) are already documented. The description's added detail concerns output fields (price_rub, availability) rather than input semantics, and its restatement of include_inactive overlaps the schema's own description. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Search Avito listings via the internal js/items API.' That is enough to distinguish it from the *_card siblings, which presumably fetch a single listing, though the description never names an alternative explicitly. Purpose is clear but sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit statement of when to use this versus avito_card or the other marketplace search tools, and no when-not guidance. The only conditional logic given ('reserved hits are kept unless include_inactive=false') is parameter behavior, not tool-selection guidance. Usage is inferred from the verb alone.

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