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 registry number (10 digits, zero-padded).
nipNoNIP tax number (10 digits, dashes optional).
langNoLanguage of benchmark labels (default pl).
nameNoCompany name when KRS/NIP is unknown.
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.1/5.0
Behavior4/5

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

Well beyond the annotations: it discloses the underlying table (company_financial_rankings), row cardinality (one row per scope), and the PKD version-prefix convention ('v2007:62.01.Z', no prefix = PKD 2025), plus what the benchmark object contains (median, quartiles, mean of revenue/profit/costs/assets). It does not say how identifier resolution behaves when krs/nip/name are all optional, which is the main remaining behavioral gap.

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?

Front-loaded with the core purpose, then supporting detail, then example questions. Dense and largely waste-free, though the long PKD prefix parenthetical is syntactically heavy and could be split for readability.

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?

No output schema exists, and the description does compensate by describing the returned rows and the benchmark payload contents. It is nearly complete for a read-only lookup, with the identifier-resolution and empty-result behavior the only notable omissions.

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 genuine meaning beyond the schema: the prefix encoding of historical PKD scope keys and the fact that benchmark values are currency- and language-sensitive, which contextualizes lang and currency. It omits precedence among the mutually optional krs/nip/name identifiers.

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 — revenue rank positions within industry (PKD), region, and country — and implicitly separates itself from pure financials tools by emphasizing rank/positioning. The explicit scope list (pkd_full, pkd_division, pkd_section, region, country) makes the output shape concrete enough to distinguish from siblings like get_financials.

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?

Provides use-case framing ('where does company X rank in Poland / its industry / its region, how does it compare'), which is real when-to-use guidance. However it never names an alternative tool or states when NOT to use this (e.g., for raw financial figures use get_financials), so routing versus siblings 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.