Skip to main content
Glama

FiLot: gold prices and gold bar records

Zakat on gold

gold_zakat
Read-onlyIdempotent

Work out zakat (zakat al-mal) on a person's gold: nisab 85 grams of pure gold (or the 595 g silver nisab if their scholars use it), rate 2.5%, due once the gold has been owned one hijri year (haul). Indonesia: valued at the latest Antam buyback price; elsewhere: the world gold price in the person's currency. Takes several items with their karat or fineness; worn jewellery is shown both ways unless the person says which view they follow (Hanafi counts it; Shafi'i, Maliki and Hanbali generally do not); an optional haul start date. A general calculation, not a fatwa. Nothing is stored and no receipt is kept.

Input Schema

NameRequiredDescriptionDefault
langNoAnswer language: id = Bahasa Indonesia, en = English (default).
itemsYesThe gold, one entry per item or per group of the same kind.
nisabNoWhich nisab: gold (85 g, default) or silver (595 g).
countryNoTwo-letter country code. ID values gold at the Antam buyback price.
currencyNoThree-letter currency code. Default IDR in Indonesia, else USD.
worn_jewelleryNoThe view the person follows on worn jewellery. Default show_both.
haul_start_dateNoWhen the person's gold first reached the nisab (YYYY-MM-DD), if known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds real value beyond them: 'Nothing is stored and no receipt is kept' confirms no persistence, the price-source sentences explain the openWorld behavior, and 'A general calculation, not a fatwa' sets the authority boundary. It does not disclose rate limits or failure modes for price lookups.

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 verb and resource, then conditions. Dense but every clause carries information (nisab thresholds, price sources, madhhab handling, disclaimer). It is a single long paragraph that could be split for scanability, which keeps it below a 5.

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 calculator with full schema coverage and no output schema, the description covers methodology, pricing sources, worn-jewellery handling and the non-fatwa disclaimer. The main gap is that it never says what the result contains (zakat due, nisab status, both-views breakdown), which matters since there is no output schema.

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 goes beyond the schema by explaining the religious and numerical rationale behind parameters: 85 g gold / 595 g silver nisab, 2.5% rate, one hijri year haul, karat-vs-fineness handling, and why worn_jewellery offers multiple views. This meaningfully aids correct parameter selection.

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: 'Work out zakat (zakat al-mal) on a person's gold', immediately distinguishing it from the sibling tools, which are all price lookups, tax, or record verification. The scope (per-person gold zakat calculation) is unambiguous.

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 clear conditional context for the key branches: Indonesia uses the Antam buyback price, elsewhere the world gold price in the person's currency; worn jewellery is shown both ways unless the person states a madhhab. It does not explicitly route away from siblings or say when not to use it, but the conditional guidance is strong.

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