Skip to main content
Glama

search_products

Search Tokopedia for products by keyword with filters for price, condition, shop tier, rating, and more. Returns product listings with name, price, rating, shop, and URL.

Instructions

Search Tokopedia products by keyword.

Returns a dict with a "products" list (name, price in IDR, rating, shop, URL) and the "count" of results returned. Each product can be passed to get_product_details for full information.

Args: keyword: Search keyword, e.g. "logitech mouse" or "asus zenbook". max_result: Maximum number of results (1-100, default 20). pmin: Minimum price in IDR. pmax: Maximum price in IDR. condition: Product condition: 1 = new, 2 = used. shop_tier: Shop tier: 2 = Mall, 3 = Power Shop. rt: Minimum average rating, e.g. 4.5. latest_product: Only products listed within the last 7, 30, or 90 days. bebas_ongkir_extra: Only products with extra free-shipping benefit. is_discount: Only discounted products. is_fulfillment: Only products fulfilled by Tokopedia. is_plus: Only Tokopedia PLUS seller products. cod: Only products eligible for cash on delivery.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rtNo
codNo
pmaxNo
pminNo
is_plusNo
keywordYes
conditionNo
shop_tierNo
max_resultNo
is_discountNo
is_fulfillmentNo
latest_productNo
bebas_ongkir_extraNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full transparency burden and does well by revealing the exact return structure (products list with name, price in IDR, rating, shop, URL, and count) and the filtering behavior of every parameter. It does not disclose sorting order or edge-case error handling, a minor gap given the otherwise thorough context.

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?

The description is well-structured: a single-sentence purpose, a brief return summary, and a clearly formatted Args list covering all 13 parameters. Every line provides necessary information without redundant prose, making it highly scannable for an agent.

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?

Given the tool's complexity (13 parameters, no annotations), the description is fully complete: it covers purpose, output format, parameter semantics, and the relationship to get_product_details. The output schema also exists, but the description goes beyond it, ensuring an agent can invoke the tool correctly with no missing context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain all parameters, and it does so comprehensively. Each parameter includes specific meanings, value mappings (e.g., condition 1=new, 2=used; shop_tier 2=Mall, 3=Power Shop), and examples, adding substantial value beyond the bare schema.

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 'Search Tokopedia products by keyword,' a specific verb+resource statement. It goes beyond a vague purpose by specifying the return format (dict with products list and count), clearly distinguishing it from the sibling tools for product details and reviews.

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?

It provides clear guidance for using search results: 'Each product can be passed to get_product_details for full information.' However, it does not explicitly mention when to prefer this over get_product_reviews or when not to use it, so the guidance is strong but not exhaustive.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fauzanmhr/tokopedia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server