Skip to main content
Glama

Kategoriya va uning parametrlari

olx_get_category
Read-onlyIdempotent

Retrieve an OLX category's structure, posting rules, and advert parameters by category ID to prepare valid ad listings.

Instructions

Get an OLX category: name, path, whether adverts can be posted in it (is_addable / leaf), max photos, validity days, subcategories, and the advert PARAMETERS — code, label, type (enum/price/input...), required flag, units (e.g. currency UZS/UYE) and allowed values (key=label). Use the parameter codes and value keys when posting an advert. No auth needed. Find category ids with olx_list_categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
category_idYes
response_formatNoJavob formati: 'markdown' (o'qish uchun) yoki 'json' (to'liq tuzilgan ma'lumot)markdown
include_childrenNoSubkategoriyalar nomlarini ham olish

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, openWorldHint, idempotentHint, destructiveHint), the description adds 'No auth needed' and clarifies that the response is a category's configuration, including parameter constraints and allowed values. This gives the agent a concrete expectation of what will come back. It does not cover error handling or rate limits, but for a safe, read-only lookup the annotations already cover the key behavioral traits. No contradiction with annotations.

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?

Four short, information-dense sentences with no filler. The primary result fields are front-loaded in the first sentence, followed immediately by the actionable use case, auth note, and sibling-tool pointer. It avoids repeating schema text and every sentence earns its place.

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 read-only lookup with no output schema, the description covers what the category data contains, where to get the category_id, and why the result is useful for posting adverts. The optional response_format and include_children parameters are explained in the schema, so the description does not need to repeat them. The only minor omission is not mentioning error behavior for an invalid category_id, which is acceptable for a safe operation.

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?

The schema already describes response_format and include_children, and the description adds meaning to the undocumented category_id by framing it as an OLX category lookup and pointing to olx_list_categories as the source of ids. It also explains why the returned parameter codes and value keys matter, connecting the output back to ad posting. With two of three parameters already documented in the schema, the description's added contribution is moderate but useful.

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?

The description opens with 'Get an OLX category' and enumerates the exact payload: name, path, is_addable/leaf, max photos, validity days, subcategories, and advert parameter definitions including codes, types, required flags, units, and allowed values. This resource-level specificity clearly separates it from olx_list_categories, which returns category ids, and from olx_suggest_category.

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?

The description explicitly says to use the returned parameter codes and value keys when posting an advert, giving the agent a concrete downstream use case. It also directs the agent to olx_list_categories for finding category ids, establishing the proper lookup sequence. It does not spell out when to prefer olx_suggest_category or olx_list_categories, so the guidance is clear but not exhaustive.

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