Skip to main content
Glama

Wesalna Islamic MCP

Calculate zakat

calculate_zakat
Read-onlyIdempotent

Calculate zakat with the same rules as Wesalna's calculators: zakat on money (cash, savings, money lent out and investments minus debts, 2.5% above the gold or silver nisab), zakat on gold (weight by karat converted to pure gold against the 85 gram nisab), or zakat al-Fitr (the sa' weight per person by staple food). Metal prices come from Wesalna's daily cached snapshot unless you supply your own price.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bankNomoney: bank balances.
cashNomoney: cash in hand.
kindYesWhich calculation to run.
lentNomoney: money lent out and expected back.
debtsNomoney: debts you owe, subtracted from the total.
peopleNofitr: how many people you pay for.
piecesNogold: the gold pieces you own, each with its weight and karat.
stapleNofitr: the staple food paid: wheat, rice, dates, barley, raisins. Defaults to rice.
savingsNomoney: savings and deposits.
currencyNoISO currency code for values and prices, e.g. USD, SAR, EGP, JOD.USD
nisabBasisNomoney: which metal sets the threshold. Silver is the lower, more cautious nisab.silver
pricePerKgNofitr: local price of one kilogram of that staple, to estimate the cash value.
investmentsNomoney: shares and investment holdings.
pricePerGram24Nogold: price of one gram of 24 karat gold. Omit to use Wesalna's cached price.
metalPricePerGramNomoney: price of one gram of the chosen metal. Omit to use Wesalna's cached price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only and idempotent behavior, lowering the burden on the description. The description adds valuable context: it uses Wesalna's daily cached metal price snapshot unless the caller overrides it. This makes the data source and default behavior explicit. There is no contradiction with the annotations.

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?

The description is two sentences with no filler and front-loads the core verb and the three calculation modes. The first sentence is dense with interrelated rules, but every clause carries information an agent needs. It remains appropriately sized for a 15-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, and the description never states what the result contains – such as the amount due, whether nisab was met, or a breakdown by category. While inputs and calculation rules are covered thoroughly, the missing return-shape information is a significant gap given the absence of an 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. The description adds meaningful calculation semantics beyond the schema: the 2.5% rate above gold or silver nisab, conversion of karat weight to pure gold against the 85-gram threshold, and the sa' weight per person for fitr. This enriches parameters like nisabBasis, pieces, and staple.

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?

The description opens with a specific verb and resource – 'Calculate zakat' – then enumerates the three distinct calculation modes: money, gold, and zakat al-Fitr. It is the only zakat-related tool among its siblings, so there is no ambiguity about which tool to pick.

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?

The description clearly explains when each mode applies: money for cash/savings/debts, gold for karat-weighted pieces, and fitr for per-person staple food. It also tells the agent that cached prices are used unless it supplies its own, which is useful guidance for customizing calls. It does not explicitly state exclusions, but no sibling tool competes for this purpose.

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