Skip to main content
Glama

INFAQA Zakat Mal & Sharia Audit MCP

calculate_zakat_mal

Deterministically calculate Indonesian zakat mal (profesi, tabungan, emas, umkm, saham) with step-by-step audit breakdown, fiqh method comparator, Kemenag RI Quran verses, and LexJustisia regulation citations. Never guesses or hallucinates.

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": {
      "rule_id": "<rule_id>",
      "inputs": "<inputs>"
    },
    "name": "calculate_zakat_mal"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYesCategory inputs in IDR/grams/months. Profesi: {period:"monthly"|"annual", income_idr, bonus_idr, basic_needs_and_debt_idr}. Uang: {cash_idr, savings_idr, deposits_idr, due_debt_idr, haul_months_hijri}. Emas: {gold_grams, excluded_jewelry_grams, due_debt_idr, haul_months_hijri}. Dagang: {kas_usaha_idr, persediaan_idr, piutang_lancar_idr, piutang_macet_idr, aset_tetap_idr, utang_usaha_idr, haul_months_hijri}. Saham: {stock_mode:"trading"|"investment", market_value_idr, dividend_idr, due_debt_idr, haul_months_hijri}.
rule_idYesZakat mal category rule ID.
gold_price_idr_per_gramNoOptional 24K gold price per gram in IDR (default 1078609, equivalent to SK Ketua BAZNAS No. 15/2026).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose meaningful behavior: the calculation is deterministic, it never guesses, and the response includes a step-by-step audit trail, a fiqh method comparison, and named regulatory citations. What it does not cover is failure behavior (e.g., mismatched inputs for a given rule_id) or confirmation that it is a side-effect-free pure computation.

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?

A single front-loaded sentence that packs the category list, the audit/comparator/citation outputs, and the determinism guarantee without padding. "Never guesses or hallucinates" is close to promotional, but it does convey a real behavioral guarantee, so little is wasted.

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 no output schema, the description usefully previews the return payload (audit breakdown, fiqh comparator, verses, citations), and the nested input contract is fully covered by the schema. The main gap is the mapping between the marketing category names (tabungan, umkm) and the rule_id enum values (ZKT-MAL-UANG-01, ZKT-MAL-DAGANG-01), which an agent must infer.

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 100% and the nested per-category input shapes and the gold price default are fully documented in the schema. The description adds no parameter-level meaning beyond naming the categories, so the baseline 3 is appropriate rather than a penalty.

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?

"Deterministically calculate Indonesian zakat mal (profesi, tabungan, emas, umkm, saham)" gives a specific verb, resource, and enumerated scope, and the outputs listed (audit breakdown, fiqh comparator, verses, citations) further pin down what the tool produces. It is clearly distinguishable from lookups like get_zakat_quran_verses or search_zakat_regulations, which retrieve sources rather than compute obligations.

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 implies usage (you need a zakat computation with an auditable breakdown) but never states when to prefer it over siblings such as get_nisab_2026 for threshold values or search_sharia_research for methodology discussion. No prerequisites, no '"do not use for X"' exclusion, and no guidance on choosing between the five categories beyond the enum names.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources