Skip to main content
Glama

Get trending categories

get_trending_categories
Read-onlyIdempotent

Top trending supplier categories among the suppliers an AI agent may read, this week vs last week, with delta percentage. Returns available:false with a reason when too few recently published profiles are categorised to compute a trend, an empty result is never a silent zero.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many categories to return (1 to 30, default 8).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"How many categories to return (1 to 30, default 8)."
  2. First observed

TDQS

A4/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, closed-world), and the description goes beyond them by disclosing the degraded-mode contract: available:false with a reason when sample size is too small, and an explicit promise that an empty result is never a silent zero. That is a genuinely non-obvious behavioral trait an agent must handle, though the success-case payload shape is only partially sketched.

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 tight sentences, zero filler. The core purpose is front-loaded, and the failure-mode caveat follows in the second sentence where it belongs.

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 one-parameter read tool with no output schema, the description covers purpose, comparison basis, and the important edge-case response. It stops short of describing the success payload fields (category identity, ranking, delta sign conventions), which would be the last piece needed for fully confident invocation.

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?

There is a single optional parameter with 100% schema description coverage, including bounds and default, so the schema fully carries parameter meaning. The description adds no additional semantics about what limit affects (e.g., ranking cutoff behavior), so baseline 3 applies.

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 names the specific resource (supplier categories), the operation (trending), and the exact comparison window (this week vs last week, with delta percentage). The scoping qualifier 'among the suppliers an AI agent may read' further narrows the result set, so an agent knows precisely what it will get without opening the schema.

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 the phrasing 'among the suppliers an AI agent may read,' which hints at a permission-scoped subset, but there is no explicit when-to-use or when-not-to-use guidance and no routing to an alternative for raw per-seller data. Nothing is misleading, but nothing steers the agent between this and the sibling listing tools.

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