Skip to main content
Glama

Cheapest courses

mkh_cheapest
Read-onlyIdempotent

Find low-cost paid courses for a topic or category, sorted by final price paid, with optional filters for level, max price, and free courses.

Instructions

Cheapest paid courses for a topic or category, ascending by final_price (what the customer pays).

Scans the first 300 results (relevant for query, else popular) and sorts here; scanned of total shows coverage. With query, category/type/level are ignored. Next: mkh_course.

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_cheapest"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNopaid (Maktab Plus), free, or any.any
levelNoCourse level.any
limitNoCourses per page.
queryNoTopic, e.g. 'پایتون'. Omit to scan category_slug.
max_priceNoMax price, Toman, e.g. 500000.
include_freeNoInclude free courses.
category_slugNoSlug from mkh_categories, e.g. 'python'; '-' = all.-

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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 / include_free / description
      Previous value: -"Include free courses (final_price 0)."New value: +"Include free courses."
    • changedInput schema / properties / max_price / description
      Previous value: -"Maximum price in Toman, e.g. 500000."New value: +"Max price, Toman, e.g. 500000."
    • changedInput schema / properties / query / description
      Previous value: -"Topic text, e.g. 'پایتون'. Omit to scan a category instead (category_slug)."New value: +"Topic, e.g. 'پایتون'. Omit to scan category_slug."
  2. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered; the description adds genuinely new behavior: only the first 300 results (relevant for query, else popular) are scanned and sorted, with `scanned` of `total` reporting coverage. That scan-limit disclosure is important context an agent wouldn't otherwise have. It stops short of explaining pagination behavior or how include_free interacts with type.

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, front-loaded with the sort definition followed by the scan-coverage caveat and the next-step pointer. No filler or restated name.

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?

Covers what is scanned, how results are ordered and filtered, and where to go next, which is sufficient for a read-only discovery tool with no output schema. Minor gaps remain around pagination and the include_free/type interaction.

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 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot express: query overrides category/type/level, and final_price is defined as what the customer pays. Those precedence semantics materially change how an agent composes arguments.

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 ("Cheapest paid courses for a topic or category") plus the exact sort key ("ascending by final_price") and clarifies what final_price means. This clearly separates it from siblings like mkh_free_courses and mkh_course without needing 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 the precedence rule "With query, category/type/level are ignored," which tells the agent when filters stop mattering, and routes to mkh_course as the next step. It doesn't say when to prefer this over mkh_search or mkh_deals, so a sibling-selection gap remains.

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