Skip to main content
Glama

Get Sector Financial Statistics

get_financial_stats
Read-onlyIdempotent

Get precomputed aggregate financial statistics for a sector, region, PKD branch, or country. Returns median, p25/p75/p90, winsorized mean, mean, total, n_companies, min/max. Use for questions like: what is the median revenue / average profit / assets in industry X or region Y? median and winsor_mean are robust to outliers; mean is not. cost_wages is PLN-only.

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

Input Schema

NameRequiredDescriptionDefault
metricNoFinancial metric. Omit to return all metrics.
currencyNoCurrency (default: PLN). cost_wages is PLN-only.
dimension_keyNoKey for the dimension, e.g. 'PL', 'G', '46', '46.90.Z', 'mazowieckie'. Prefix match applied.
dimension_typeNoGranularity: 'country'=Poland; 'pkd_section'=A–U; 'pkd_division'=2-digit; 'pkd_full'=full code; 'region'=voivodeship; etc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds value beyond them: it enumerates the returned aggregates (median, p25/p75/p90, winsorized mean, mean, total, n_companies, min/max) since there is no output schema, and warns that mean is not outlier-robust. It also flags the cost_wages currency restriction, which is a real behavioral constraint.

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?

Three tight sentences: what it returns, when to use it, then a caveat block about robustness and currency. Front-loaded, no filler, and each sentence carries distinct information.

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?

Since there is no output schema, the explicit field list and robustness note make the return values intelligible, which is the main completeness need here. Minor gaps remain: with zero required parameters it never says what happens when metric/dimension_key are omitted or how dimension_key and dimension_type must pair up.

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?

Schema coverage is 100% with three enums and per-parameter descriptions, so the schema already carries the parameter burden. The description mostly restates schema content (prefix matching, cost_wages PLN-only) and adds only interpretive meaning about metric robustness, matching the baseline of 3 when the schema does the heavy lifting.

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 ('Get') and resource ('precomputed aggregate financial statistics') and pins the scope to sector, region, PKD branch, or country. The word 'aggregate' plus the dimension list makes it distinguishable from per-company siblings like get_financials without opening either schema.

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?

Gives concrete triggering questions ('what is the median revenue / average profit / assets in industry X or region Y?'), which is clear usage context. It stops short of naming an alternative tool or stating when not to use it (e.g., when company-level figures are needed instead).

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.