Skip to main content
Glama

Search deals

search_deals
Read-only

Search active (not expired) deals on Pechincha.ai, newest first, 25 per page. Each result has price and old price in BRL, discount %, store, coupon code if any, publication date and the deal page URL. Content is Brazilian Portuguese, so search in Portuguese: query matches a literal substring of the title or description, prefer short terms. Accessories that mention the term also match ("notebook" returns backpacks and cables too), so check titles. For a budget ("até R$ 3.000"), pass max_price; for a floor or a range ("entre R$ 100 e R$ 200"), pass min_price too.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
queryNoText to search, e.g. "air fryer"
storeNoStore slug from list_stores, e.g. "amazon"
categoryNoCategory slug from list_categories
max_priceNoMaximum price in BRL, e.g. 3000
min_priceNoMinimum price in BRL, e.g. 100

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
dealsYes
pagesYes
totalYesActive deals matching the search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds real behavior beyond that: expired deals are excluded, results are newest-first at 25 per page, prices are in BRL with old price and discount %, content is Brazilian Portuguese, and query is a literal substring match rather than semantic. Minor gaps (total result counts, what happens when nothing matches) remain.

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 scope, ordering, and page size are front-loaded, followed by result contents, language constraint, matching caveat, and price usage. Almost every sentence carries actionable content, though the single dense paragraph packs several distinct topics (result shape, language, matching behavior, price params) that would scan better as separate sentences.

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?

An output schema exists, so result-field enumeration is arguably redundant, but the description still covers what an agent needs: freshness filtering, ordering, page size, currency, language of the corpus, substring matching semantics, and price filtering. The only real omissions are explicit behavior for zero results and relationship to sibling lookup tools.

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 83% (baseline 3), but the description adds genuine semantics beyond the schema: `query` is a literal substring of title or description, and min/max price map to named budget scenarios ("até R$ 3.000", "entre R$ 100 e R$ 200"). It also implies store/category slugs come from list_stores and list_categories, reinforcing the schema descriptions.

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 ("Search active (not expired) deals on Pechincha.ai") plus scope details: newest-first ordering, 25 per page, and the fields each result carries. This clearly distinguishes it from get_deal, get_product, and list_stores without needing to open their schemas.

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 guidance: search in Portuguese because content is pt-BR, prefer short terms, and use max_price for budgets and min_price for floors/ranges. It also warns that accessory matches pollute results ("notebook" returns backpacks) and that titles should be checked. It stops short of naming explicit alternative tools for narrower lookups (e.g., get_deal for a known deal), so it's strong but not fully routing-aware.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources