Skip to main content
Glama

Get Company Sector Rankings

get_company_rankings
Read-onlyIdempotent

Get a company's revenue rank positions within its industry (PKD), region (voivodeship), and all of Poland. Returns rows from company_financial_rankings — one row per scope (pkd_full, pkd_division, pkd_section, region, country). PKD scope keys of historical classifications are prefixed with the version: 'v2007:62.01.Z', 'v2004:50', 'v1997:74.84.B' (no prefix = PKD 2025). benchmark: the company compared with peers (median, quartiles, mean of revenue, profit, costs, assets) in its industry, region and city, as on the profile. Use for questions like: where does company X rank in Poland / its industry / its region, how does it compare with its industry?

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

Input Schema

NameRequiredDescriptionDefault
krsNoKRS number of the company in the Polish National Court Register (10 digits).
nipNoPolish company tax number (NIP) of the business, 10 digits.
langNoLanguage of benchmark labels (default pl).
nameNoCompany name, used when the KRS or NIP is not known.
currencyNoCurrency of `benchmark` (default PLN).
scope_typeNoOptional. Filter to a single scope. Omit to get all scopes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Currency of `benchmark` (default PLN).",
      +  "enum": [
      +    "PLN",
      +    "EUR",
      +    "USD"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Language of benchmark labels (default pl).",
      +  "enum": [
      +    "pl",
      +    "en",
      +    "de"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond that: one row per scope, the scope key format, the PKD classification-version prefix convention, and the precise composition of the benchmark block (median, quartiles, mean of revenue, profit, costs, assets). It does not address not-found behavior or result limits, keeping it below the top mark.

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 is front-loaded, then output mechanics, then example use cases — a sensible ordering with little filler. The PKD-prefix parenthetical is dense and the reference to 'as on the profile' is slightly opaque, but no sentence is redundant.

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 and zero required parameters, the description carries the burden of explaining return values, and it does so by specifying the per-scope row structure and benchmark contents. Gaps remain around how the company is resolved when only `name` is supplied and what happens when no ranking rows exist, plus the internal table name and 'profile' reference assume context the agent may lack.

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 genuinely adds meaning: it explains what the scope keys in `scope_type` look like in practice and that historical PKD values are version-prefixed, which the bare enum cannot convey. It also clarifies that `lang` and `currency` govern the benchmark labels and values, tying those parameters to a concrete output component.

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 opening sentence names a specific verb and resource — revenue rank positions within industry (PKD), region (voivodeship) and country — which is clearly distinct from the sibling tools that fetch profiles (get_company) or raw financials (get_financials). It goes further by naming the underlying row set and enumerating the five scopes returned, so an agent knows exactly what class of answer this tool produces.

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?

The closing sentence gives concrete trigger questions ('where does company X rank in Poland / its industry / its region'), which is strong positive guidance for selection. It stops short of stating when NOT to use it or naming an alternative for plain financial figures, so the routing against get_financials/get_financial_stats is left implicit.

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.