Skip to main content
Glama
sepehr071

codal-mcp

by sepehr071

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODAL_MCP_PROXYNoOptional HTTP proxy URL for codal.ir requests; system proxy settings are ignored. A comma-separated list is used one at a time: the next proxy takes over when one is blocked or cannot connect.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
cd_search_lettersA

Search codal.ir disclosures (letters) of Iranian listed companies, newest first, 20 per page.

Use it for "latest letters of a company", financial statements, monthly reports, meeting decisions, dividend schedules or capital increases. With no filters it lists the newest letters of all companies. Combine filters to narrow down; total is the number of matching letters and pages the number of pages (pass page for more). Each letter has its tracing_no: pass it to cd_letter to read the letter's text and tables and get its PDF, Excel and attachment links. files lists what the letter has. Dates and times are Jalali (Tehran time). No results: check the symbol with cd_company, widen the dates or drop a filter.

cd_letterA

Read one codal.ir letter: its text or tables, plus links to its page, PDF, Excel and attachments.

Use it after cd_search_letters to see what a letter says. Structured reports (financial statements, monthly activity reports) come back as tables, one line per row with cells separated by ' | ' (amounts as on the site, usually million Rial; see unit_note). Financial statements show one sheet at a time: sheets lists them (income statement, balance sheet, cash flows ...); call again with sheet to read another. Other letters come back as text. attachments are files the company attached (often the real content of an explanation letter). Long letters are cut at 16,000 characters (truncated); the PDF link has the full letter.

cd_companyA

Find companies and funds on codal.ir by symbol or name, with their market, industry and type.

Use it to get the exact symbol for cd_search_letters and cd_financial_years, or to answer what a symbol is. Exact symbol or name matches come first, then symbols starting with the query, then names containing it; within each, exchange-listed companies before unlisted ones. Covers the ~5,400 publishers on codal.ir, including unlisted companies and funds. matched is the total number of hits.

cd_letter_typesA

List codal.ir letter groups, or the letter types of one group with the ids cd_search_letters takes.

Call it without arguments for the 11 groups, then with category for that group's letter types. Use the id of a type as letter_type in cd_search_letters (with or without the same category).

cd_financial_yearsA

List the fiscal year-end dates codal.ir knows for one company, newest first (Jalali).

Use it to learn when a company's fiscal year ends (e.g. 12/29 or 03/31) before searching for its annual statements with cd_search_letters (from_date after the year end, period_months 12). An empty list usually means the symbol is wrong: check it with cd_company.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 5 tools

Disambiguation5/5

Each tool occupies a distinct niche: search (cd_search_letters), read one record (cd_letter), entity lookup (cd_company), taxonomy browsing (cd_letter_types), and fiscal calendar (cd_financial_years). The only near-overlap — cd_letter_types vs. the letter_type filter of cd_search_letters — is explicitly explained in the descriptions, so an agent can choose correctly.

Naming Consistency4/5

All names share a clear 'cd_' namespace prefix and read naturally. The minor deviation is verb style: cd_search_letters uses a verb_noun form while cd_letter, cd_company, cd_letter_types and cd_financial_years are pure noun phrases, but the pattern is still predictable enough to guess names.

Tool Count5/5

Five tools is well-scoped for a read-only gateway to one disclosure site: one search, one reader, and three small resolution/lookup helpers. Every tool has a clear purpose and no filler operations appear to exist.

Completeness4/5

The surface covers the full read workflow — find company, find letter type, find fiscal year, search letters, read letter content and get file links (PDF/Excel/attachments). As a read-only source CRUD is not applicable, though there is no bulk/aggregate retrieval (e.g. multi-year statement series) and no tool for non-letter codal content, which are minor gaps an agent can work around through repeated calls.

Maintenance

ActivityMaintained
ResponsivenessNo issues