Skip to main content
Glama

accounting.income_statement

Read-onlyIdempotent

Calculate multi-step income statement figures from revenue through gross profit, operating profit, pretax profit, and net income, including profit margins using precise decimal inputs.

Instructions

다단계 손익계산서: 매출에서 매출총이익, 영업이익, 세전이익, 당기순이익까지 단계별 이익과 이익률을 계산한다. 금액은 유한한 Decimal 문자열이며 매출과 매출원가는 0 이상이어야 한다. 50자리 Decimal 정밀도로 계산하며 이익에 별도 반올림을 적용하지 않는다. 이익률은 소수 6자리 HALF_EVEN(0.25 = 25%)이며 매출이 0 이면 0 이다. 계산 범위 초과는 입력 오류다. 비용 항목은 양수로 입력한다.

Input Schema

NameRequiredDescriptionDefault
revenueYes
tax_expenseNo0
other_incomeNo0
cost_of_salesYes
other_expensesNo0
interest_expenseNo0
operating_expensesNo0

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
net_incomeYes
net_marginYes
gross_marginYes
gross_profitYes
pretax_incomeYes
pretax_marginYes
operating_incomeYes
operating_marginYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description discloses important calculation behavior: 50-digit Decimal precision, no separate rounding of profit figures, 6-decimal HALF_EVEN margin rounding, zero-revenue margin behavior, and out-of-range errors. These details materially help an agent predict results and failure modes.

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 description is front-loaded with the purpose, then proceeds through input format, precision, rounding, error behavior, and sign convention. It is compact and every sentence adds operational 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?

For a 7-parameter financial calculation with an output schema, the description covers the key computational and input constraints needed to invoke it correctly. The main remaining gap is that the description does not fully clarify how each of the optional income and expense parameters is signed or categorized.

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?

With 0% schema description coverage, the description usefully adds that all amounts are finite Decimal strings, revenue and cost of sales must be non-negative, and expense items are entered as positive numbers. It still does not explain the role or sign conventions for every parameter, especially other_income versus other_expenses, interest_expense, and tax_expense.

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 a specific resource and operation: a multi-step income statement calculating gross profit, operating profit, pre-tax profit, net profit, and margins. It is distinguishable from balance-sheet or cash-flow siblings by resource, but it does not explicitly contrast itself with related profit tools such as accounting.break_even or accounting.ratios.

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?

Usage is implied by the resource name and the listed income-statement stages, so an agent can infer when this tool is appropriate. However, there is no explicit when-to-use guidance, no exclusions, and no named alternative such as accounting.break_even for break-even analysis.

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

Deploy Server

Other Tools