Skip to main content
Glama
ScrapeReviews

ScrapeReviews

Official

get_category_companies

Rank Trustpilot companies within a category and country by relevance or review count, with optional trust-score and location filters for targeted business research.

Instructions

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

Cost: 1 credit per 10 companies (min 1).

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-100 (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 observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose real behavioral traits: a credit cost of 1 per 10 companies (min 1), Trustpilot's own ordering semantics ('as Trustpilot shows them'), and cursor-based paging keyed to next_cursor. It omits auth/rate-limit behavior and what happens on an invalid category_id or country, which keeps it below a 5.

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?

Purpose and cost are front-loaded before the argument list, and every sentence does work. The Args block is somewhat long, but with zero schema coverage that verbosity is functional rather than padding. Minor redundancy in the per-parameter examples is the only drag.

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 seven-parameter ranked-listing tool with an output schema covering return values, the description supplies the missing pieces: cost model, pagination contract, ordering, and meaning for every argument. It is only incomplete in not clarifying how it relates to sibling lookup tools or how failures behave.

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 must compensate and it does for all seven parameters: category_id provenance and examples, ISO 3166-1 alpha-2 for country, the sort enum values with 'relevant' as default, the three allowed min_trust_score values, a city example for location, the 1-100 bound and default 20 for limit, and cursor linkage to next_cursor. This adds meaning well beyond the bare schema types and enums.

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 description opens with a specific verb and resource: 'Rank the companies of a Trustpilot category in a country, as Trustpilot shows them.' An agent immediately knows this returns an ordered category listing rather than raw company records. It stops short of naming how it differs from a sibling like search_companies, so a 4 rather than a 5.

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: the tool is for ranked category browsing, and the cursor argument signals pagination. The description points to list_categories as the source of category_id, which is useful routing. However, it never says when to prefer this over search_companies or get_company, and no exclusions or prerequisites are given.

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