Skip to main content
Glama
sepehr071

codal-mcp

by sepehr071

Read one Codal letter

cd_letter
Read-onlyIdempotent

Reads one Codal.ir letter to return its text or structured tables, along with links to the page, PDF, Excel file, and attachments.

Instructions

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.

Input Schema

NameRequiredDescriptionDefault
sheetNoFor financial statements with several sheets: the `sheet` id from the `sheets` list of a previous call, e.g. 0 for the balance sheet. Omit for the first sheet.
tracing_noYesTracing number (شماره پیگیری) from cd_search_letters, e.g. 1612323.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, and the description layers on real behavioral detail: the tables-vs-text branch, ' | '-separated rows, the unit caveat for amounts, one-sheet-at-a-time paging, attachments often carrying the real content, and truncation at 16,000 characters with a `truncated` flag and a full-PDF fallback.

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?

The core capability is front-loaded in the first sentence, and every following sentence carries operational information an agent would otherwise have to discover by trial: format branching, sheet paging, attachment caveat, truncation limit. No filler or restatement of the name.

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 explaining returns, and it does: response variants, row encoding, unit note, paging, attachments, truncation. An agent can call this correctly and interpret the result without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it explains that `sheet` ids come from a prior call's `sheets` list and that omitting it returns the first sheet, and it ties `tracing_no` to the value obtained from cd_search_letters.

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 and resource ('Read one codal.ir letter') and immediately enumerates what comes back: text or tables plus page, PDF, Excel and attachment links. That is enough to distinguish it from cd_search_letters, which only finds letters rather than reading one.

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?

'Use it after cd_search_letters to see what a letter says' gives an explicit trigger and names the prerequisite sibling. It also explains the re-invocation path for multi-sheet statements ('call again with `sheet`'), though it never states when not to use the tool or what a search-only workflow looks like.

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