Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

financial_statements

Read-onlyIdempotent

Retrieve a symbol’s Codal income statement, balance sheet, and cash flow key items, plus margins, growth, ROE/ROA, liquidity, and leverage for companies, banks, and insurers.

Instructions

A company's financial statements from Codal (صورت‌های مالی): income statement, balance sheet and cash flow, each as key items for this period, the same period last year and the last full year (revenue, cost of revenue, gross/operating/net profit, EPS, total assets, equity, debt, cash, operating cash flow, capex, dividends paid...), plus margins, growth, ROE/ROA on trailing twelve months, current ratio and leverage. Banks (loans, customer deposits, loan interest, fee income, loans-to-deposits) and insurers (premiums, claims, technical reserves, loss ratio) are read in their own templates. Amendments and audited re-issues replace earlier versions. Amounts in million rial, EPS in rial. For the full tables of a letter use codal_letter.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "financial_statements"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNo'latest' = the newest statements, interim (3/6/9 months) or annual; 'annual' = the newest full fiscal yearlatest
symbolYesPersian symbol such as 'فولاد', or an insCode
historyNoAlso return revenue, profits and EPS of this many earlier periods (1 = only the latest)
consolidatedNoTrue for the group (تلفیقی) statements; default the company's own

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, and the description adds genuine behavioral context beyond them: restatements ('Amendments and audited re-issues replace earlier versions') and units (million rial, EPS in rial), plus TTM basis for ratios. It stops short of noting latency, coverage gaps for symbols with no filings, or freshness of the latest statement.

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 resource and its contents, then industry templates, then restatement semantics, then the sibling pointer — a sensible ordering. It is a long single paragraph with a parenthetical item list that borders on enumeration bloat, though nearly every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden of describing the return payload, and it does so: statement types, line items, ratio set, bank/insurer variants, restatement behavior, and units. Nothing an agent needs in order to call or interpret the result appears missing.

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%, so period/history/consolidated semantics are already documented in the schema; this sets the baseline at 3. The description adds only marginal meaning, clarifying that each item is reported for the current period, prior-year same period, and last full year, which loosely explains what the default periods yield but does not interpret history or consolidated explicitly.

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 the exact resource (a company's financial statements from Codal) and enumerates the three statements plus the key line items returned, so an agent knows precisely what it retrieves. It also differentiates itself from the sibling codal_letter by scoping itself to key items rather than full tables.

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 an explicit alternative and the condition for using it: 'For the full tables of a letter use codal_letter,' implying this tool is for summarized key items. It doesn't address when to prefer other numeric siblings like fundamentals, and it doesn't state prerequisites (e.g., whether the symbol must be Bourse-listed), so it falls short of full when/when-not guidance.

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