Skip to main content
Glama
hasancagrigungor

kapmcp

Financial ratios

get_financial_ratios
Read-onlyIdempotent

Compute financial ratios from KAP filings or Yahoo data, with the formula stated per item. Missing inputs return null with a reason, never a guess.

Instructions

Deterministic ratios with the formula stated per item: margins, current/cash ratio, debt-to-equity, financial debt-to-equity, net debt (/EBITDA), interest coverage, ROA, ROE, asset turnover, equity ratio. Flow-based ratios on quarterly data use trailing-12-month sums. A ratio whose inputs are missing returns value null with a reason — never a guess.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNo'2026Q2' or '2025'; default latest (for a KAP filing: the cumulative current period)
ratiosNoSubset; default all
tickerNoBIST ticker (Yahoo statements)
frequencyNoquarterly
disclosure_idNoKAP FR disclosure id to compute ratios on the official filing (TTM-based ratios need 4 quarters and are reported as unavailable)
include_market_multiplesNoAdd P/E, P/B, EV/EBITDA, dividend yield, market cap from Yahoo quote data

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior5/5

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

The description discloses key behaviors beyond the annotations: determinism, the TTM summation rule for flow-based ratios on quarterly data, and the explicit 'null with a reason, never a guess' policy for missing inputs. These are valuable operational details not present in the schema or annotations.

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?

Two sentences with no fluff. The core purpose and ratio list are front-loaded, followed by the key behavioral nuance. Every sentence carries essential 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?

With an output schema present and annotations covering safety, the description addresses the most important behavioral nuance (missing inputs) and the TTM rule. It does not explain interaction between ticker and disclosure_id, but that is a minor omission given the schema descriptions.

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 description coverage is high (83%), so the baseline is 3. The description adds context about the ratios list and the TTM behavior that relates to period and frequency, but it does not explain each parameter beyond what the schema already provides. It adds marginal value without compensating for any gaps.

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 clearly states the tool computes deterministic financial ratios and enumerates the specific ratio families (margins, liquidity, leverage, etc.). It distinguishes the tool from raw financial data tools like get_financials, though it does not explicitly name a sibling alternative.

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?

The description provides usage context such as the trailing-12-month behavior for quarterly flow ratios and the null-with-reason behavior for missing inputs. However, it does not explicitly guide when to choose this tool over related tools like get_financials or get_metric_history, leaving that to the agent.

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