Skip to main content
Glama

ScrapeReviews

Get category rankings

get_category_companies
Read-onlyIdempotent

Rank the companies of a Trustpilot category in a country, as Trustpilot shows them.

    Cost: 1 credit per call, up to 20 companies (one Trustpilot page); the next page is a
    new call with `cursor`.

    Args:
        category_id: Category id from list_categories, e.g. 'bank', 'electronics_store'.
        country: ISO 3166-1 alpha-2 country code, e.g. 'IT', 'GB', 'US'.
        sort: 'relevant' (default) or 'reviews_count'.
        min_trust_score: Only companies with at least '3.0', '4.0' or '4.5'.
        location: City, e.g. 'Milano'.
        limit: Companies to return, 1-20 (default 20).
        cursor: `next_cursor` from a previous call for the next page.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "category_id": "<category_id>",
      "country": "<country>"
    },
    "name": "get_category_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNorelevant
limitNo
cursorNo
countryYes
locationNo
category_idYes
min_trust_scoreNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, idempotent, open-world behavior, so the safety profile is covered. The description adds genuinely new context: 1 credit per call, a hard cap of 20 companies (one page) per call, and the requirement to issue a new call with cursor for the next page — operationally important and not derivable from 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded with purpose, followed immediately by cost and pagination constraints, then a scannable Args list. It is appropriately sized; 'as Trustpilot shows them' is the only slightly vague filler, and the Args block mildly restates schema structure but is justified at zero schema coverage.

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?

An output schema exists, so return values need no explanation, and the description covers everything else an agent needs: required inputs, formats, pagination mechanics, per-call cost, and result-size limits. Nothing material is missing for a 7-parameter read tool.

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 carries the full burden and does: all seven parameters are documented with formats and examples — ISO 3166-1 alpha-2 for country, literal ids like 'bank' for category_id, allowed sort values, allowed min_trust_score thresholds, city sample for location, the 1-20 bound on limit, and the origin of cursor. This is more meaning than the schema provides.

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?

States a specific verb and resource — ranking companies within a Trustpilot category restricted to a country — which is concrete enough to act on. It does not explicitly contrast itself with search_companies, though naming category_id as coming from list_categories gives a clear positional hint in the workflow.

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 rather than stated: it tells the agent to get category_id from list_categories and cursor from a previous call, which is real chaining guidance. However, it never says when to prefer this over search_companies for finding companies, so the alternative-selection decision is left to inference.

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.