Skip to main content
Glama

Discounted courses

mkh_deals
Read-onlyIdempotent

Find currently discounted courses sorted by biggest discount, with filters for minimum discount, maximum final price, and category to pinpoint affordable deals.

Instructions

Currently discounted courses, biggest discount first (discount_pct, price before and final_price after).

Scans the 300 most popular paid courses of the category; mkh_course gives discount_ends.

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

Input Schema

NameRequiredDescriptionDefault
limitNoCourses per page.
max_priceNoMax final price, Toman, e.g. 1000000.
min_discountNoMin discount percent, e.g. 50.
category_slugNoSlug from mkh_categories, e.g. 'python'; '-' = all.-

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / category_slug / description
      Previous value: -"Category slug from mkh_categories, e.g. 'python' or 'programming'; '-' = every category."New value: +"Slug from mkh_categories, e.g. 'python'; '-' = all."
    • changedInput schema / properties / max_price / description
      Previous value: -"Maximum final price in Toman, e.g. 1000000."New value: +"Max final price, Toman, e.g. 1000000."
    • changedInput schema / properties / min_discount / description
      Previous value: -"Minimum discount percent, e.g. 50."New value: +"Min discount percent, e.g. 50."
  2. First observedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's added value is the scope disclosure: it only scans the 300 most popular paid courses of a category, which tells the agent results are non-exhaustive. It also documents the result shape (discount_pct, price, final_price), which is meaningful context beyond the 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?

Two short sentences: the first front-loads what is returned and how it is ordered, the second carries the scope limit and the cross-tool pointer. No wasted wording.

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?

With no output schema, the description helpfully names the returned fields, and it discloses the 300-course scan ceiling that materially affects result expectations. Minor gaps remain around pagination behavior and how min_discount/max_price interact with that scan window, but the definition is close to complete for a read-only listing tool.

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 limit, max_price, min_discount and category_slug are already fully documented with defaults and examples. The description only echoes the category scoping ('of the category') and adds no extra semantics, so the 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 first sentence states a specific resource and ordering: currently discounted courses, sorted biggest discount first, with the key return fields named. It implicitly separates itself from mkh_free_courses and mkh_cheapest via the discount framing, though it never names those siblings as alternatives.

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

Usage Guidelines3/5

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

Usage is implied by 'currently discounted' and the note that mkh_course supplies discount_ends, which is a useful routing hint for deadline info. However, there is no explicit statement of when to prefer this over mkh_cheapest or mkh_browse, nor any exclusion.

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