Agent Rynku MCP

Narzędzie publiczne · get_financial_ratios

Marże i wskaźniki finansowe GPW

Wskaźniki policzone z tych samych raportów co wyniki kwartalne: marża EBITDA, operacyjna, netto (także bez zdarzeń jednorazowych) i kapitał własny do aktywów. Odpowiedź zawiera formułę każdego wskaźnika.

Działa bez konta i klucza API przez serwer MCP pod adresem https://agentrynku.pl/api/mcp. Jak podłączyć klienta.

Kiedy użyć

Parametry

ParametrTypWymaganyDomyślnieZakresOpis
symbolstringtakdo 80 znakówTicker, nazwa, alias albo ISIN spółki z GPW, np. KGHM lub PLKGHM000017.
quartersBackintegernie81-20Ile ostatnich kwartałów zwrócić.

Przykładowe wywołanie

Agent wywoła narzędzie sam, gdy zadasz pytanie. Te same dane pobierzesz bezpośrednio przez JSON-RPC:

curl -sS https://agentrynku.pl/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_financial_ratios","arguments":{"symbol":"KGHM","quartersBack":2}}}'

Przykładowa odpowiedź

Prawdziwa odpowiedź serwera z 5 października 2026. Listy skróciliśmy do dwóch pozycji. Te same dane zobaczysz na karcie spółki na agentrynku.pl.

{
  "symbol": "KGHM",
  "universe": "polish-stocks",
  "assetId": "69ed03a9aed8a51a4f606dea",
  "companyUrl": "https://agentrynku.pl/asset/KGHM",
  "coverage": "Issuer reports and GPW announcements only. Portal databases and portal-sourced fields are excluded.",
  "units": "percent",
  "basis": "quarterly_report",
  "formulas": {
    "ebitdaMarginPct": "ebitdaPLN / revenuePLN * 100",
    "operatingMarginPct": "ebitPLN / revenuePLN * 100",
    "netMarginPct": "netIncomePLN / revenuePLN * 100",
    "netMarginExOneOffPct": "netIncomeExOneOffPLN / revenuePLN * 100",
    "equityToAssetsPct": "totalEquityPLN / totalAssetsPLN * 100"
  },
  "quarters": [
    {
      "quarter": "2026-Q2",
      "reportScope": "consolidated",
      "currency": "PLN",
      "reportedAt": "2026-08-19T15:08:36.000Z",
      "source": "pap",
      "sourceUrl": "https://www.gpw.pl/komunikat?geru_id=495559",
      "withheld": [],
      "withheldByOneOff": [],
      "dataQuality": {
        "flagRule": null,
        "flagRuleOpis": null,
        "manualVerdict": null,
        "manualVerdictOpis": null,
        "blocksComputation": false,
        "confirmedBadFields": []
      },
      "publicSourceWithheldFields": [],
      "ratios": {
        "ebitdaMarginPct": null,
        "operatingMarginPct": null,
        "netMarginPct": 15.97,
        "netMarginExOneOffPct": 15.97,
        "equityToAssetsPct": 60.45
      },
      "unavailable": {
        "ebitdaMarginPct": "missing_or_withheld_input",
        "operatingMarginPct": "missing_or_withheld_input"
      }
    },
    {
      "quarter": "2026-Q1",
      "reportScope": "consolidated",
      "currency": "PLN",
      "reportedAt": "2026-05-13T15:14:42.000Z",
      "source": "pap",
      "sourceUrl": "https://www.gpw.pl/komunikat?geru_id=488617",
      "withheld": [],
      "withheldByOneOff": [],
      "dataQuality": {
        "flagRule": null,
        "flagRuleOpis": null,
        "manualVerdict": null,
        "manualVerdictOpis": null,
        "blocksComputation": false,
        "confirmedBadFields": []
      },
      "publicSourceWithheldFields": [],
      "ratios": {
        "ebitdaMarginPct": null,
        "operatingMarginPct": 33.69,
        "netMarginPct": 29.73,
        "netMarginExOneOffPct": 29.73,
        "equityToAssetsPct": 58.33
      },
      "unavailable": {
        "ebitdaMarginPct": "missing_or_withheld_input"
      }
    }
  ]
}

Na co uważać

O co zapytać agenta

Opis narzędzia dla modelu

Tak serwer opisuje narzędzie w tools/list. Ten tekst czyta model, wybierając narzędzie:

GPW quarterly financial ratios from published, quality-gated reports: EBITDA, operating, net profit margins, plus equity/assets. Each percentage includes its formula and report basis. Null means missing, withheld or nonpositive denominator. No price-based valuation multiples or TTM estimates.

Pozostałe publiczne narzędzia

Portfel, alerty, prognozy i notowania w trakcie sesji są w pełnym katalogu i wymagają klucza API.