Skip to main content
Glama

Gold valuation

gold
Read-onlyIdempotent

Calculate Gold and Silver commodity valuation, hallmarking purity adjustments (24K, 22K, 18K, 14K), statutory GST (3%), making charges, and Indian regional unit conversions (Tola, Sovereign, Sovereign/Pavan, Grams, Troy Ounces).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_of_dateYesCivil date YYYY-MM-DD. Selects the rule pack in force on that date. Required: the engine will not assume a date.
purity_karatYesPurity in Karats (24K pure, 22K standard jewellery 916, 18K 750, 14K 585). Required - the engine never assumes a hallmark.
weight_gramsYesWeight of gold in grams.
rate_per_gram_24kYesCurrent market price of 24K gold per gram in INR (₹), as a string with exactly 2 decimal places (money is never a float).
making_charges_percentNoMaking charges as percentage of pure metal value.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
traceNo
statusNo
currencyNo
gold_cgstNo
gold_sgstNo
total_gstNo
as_of_dateNo
disclaimerNo
unit_inputNo
minor_unitsNo
hallmark_feeNo
purity_karatNo
purity_ratioNo
weight_inputNo
hallmark_cgstNo
hallmark_sgstNo
rule_ids_usedNo
gold_gst_totalNo
making_chargesNo
raw_gold_valueNo
weight_in_gramsNo
hallmark_appliedNo
is_benchmark_rateNo
rate_per_gram_24kNo
gold_taxable_valueNo
hallmark_gst_totalNo
making_charges_typeNo
total_taxable_valueNo
final_invoice_amountNo
making_charges_valueNo
gold_gst_rate_percentNo
rate_per_gram_appliedNo
hallmark_total_with_gstNo
purity_fineness_percentNo
effective_price_per_gramNo
hallmark_gst_rate_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "as_of_date": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "currency": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "disclaimer": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "effective_price_per_gram": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "final_invoice_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gold_cgst": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gold_gst_rate_percent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gold_gst_total": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gold_sgst": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gold_taxable_value": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "hallmark_applied": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "hallmark_cgst": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "hallmark_fee": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "hallmark_gst_rate_percent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "hallmark_gst_total": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "hallmark_sgst": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "hallmark_total_with_gst": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "is_benchmark_rate": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "making_charges": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "making_charges_type": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "making_charges_value": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "minor_units": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "mode": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "purity_fineness_percent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "purity_karat": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "purity_ratio": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "rate_per_gram_24k": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "rate_per_gram_applied": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "raw_gold_value": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "rule_ids_used": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "total_gst": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "total_taxable_value": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "trace": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "unit_input": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "weight_in_grams": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "weight_input": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / as_of_date
      Added value: +{
      +  "description": "Civil date YYYY-MM-DD. Selects the rule pack in force on that date. Required: the engine will not assume a date.",
      +  "example": "2026-09-26",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "weight_grams",
      -  "rate_per_gram_24k",
      -  "purity_karat"
      -]New value: +[
      +  "weight_grams",
      +  "rate_per_gram_24k",
      +  "purity_karat",
      +  "as_of_date"
      +]
  3. Changed7 schema fields changed
    • removedInput schema / properties / purity_karat / default
      Removed value: -22
    • changedInput schema / properties / purity_karat / description
      Previous value: -"Purity in Karats (24K pure, 22K standard jewellery 916, 18K 750, 14K 585)."New value: +"Purity in Karats (24K pure, 22K standard jewellery 916, 18K 750, 14K 585). Required - the engine never assumes a hallmark."
    • changedInput schema / properties / rate_per_gram_24k / description
      Previous value: -"Current market price of 24K gold per gram in INR (₹)."New value: +"Current market price of 24K gold per gram in INR (₹), as a string with exactly 2 decimal places (money is never a float)."
    • addedInput schema / properties / rate_per_gram_24k / example
      Added value: +"7500.00"
    • addedInput schema / properties / rate_per_gram_24k / pattern
      Added value: +"^\\d+\\.\\d{2}$"
    • changedInput schema / properties / rate_per_gram_24k / type
      Previous value: -"number"New value: +"string"
    • changedInput schema / required
      Previous value: -[
      -  "weight_grams",
      -  "rate_per_gram_24k"
      -]New value: +[
      +  "weight_grams",
      +  "rate_per_gram_24k",
      +  "purity_karat"
      +]
  4. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds context about computational behavior (statutory GST rate of 3%, supported karat levels, Indian regional units), which is useful but does not describe return format, rounding, or 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence, front-loaded with the core action ('Calculate Gold and Silver commodity valuation') and then the components. Dense but efficient; each listed item carries information without padding.

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?

For a pure calculation tool with full schema coverage and an output schema, the description scopes the computation adequately. However, it advertises 'Silver commodity valuation' while the schema exposes only gold inputs (weight_grams described as gold, rate_per_gram_24k), a capability mismatch that leaves the description incomplete relative to what the tool actually accepts.

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%, so the schema already documents all five parameters with patterns, enum values, and defaults. The description lists the karats and units but adds no syntax or format detail beyond the schema, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('Calculate Gold and Silver commodity valuation') and enumerates the computation components (purity adjustments, GST, making charges, unit conversions), making the tool's scope clear. It doesn't explicitly differentiate from siblings like land_units or gst_regular, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides no when-to-use or when-not-to-use guidance and names no alternatives. The reader must infer that this is the tool for gold/silver valuation from the description alone, which is descriptive rather than directive.

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