Skip to main content
Glama

fa_gregorianToJalali

Convert a Gregorian (ISO, Western) calendar date to the Jalali, Solar Hijri, Persian or Shamsi calendar used in Iran. Use it to display a date to Iranian users, to schedule work in the Iranian calendar, or to convert a Gregorian deadline into a Jalali date. Returns the Jalali year, month, day and month name. ($0.005 per call, USDC on Base)

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": {
      "year": "<year>",
      "month": "<month>",
      "day": "<day>"
    },
    "name": "fa_gregorianToJalali"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYes
yearYes
monthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are present, so the description carries the burden; it usefully discloses the return payload (Jalali year, month, day, and month name) plus the per-call price. However it says nothing about accepted input ranges (e.g. supported Gregorian year span), month numbering, or behavior on out-of-range dates, which matters for a conversion tool.

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 the core conversion and the calendar names, then use cases, then return shape and price. The stack of four calendar aliases is mild redundancy but functionally useful for matching, not filler.

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 correctly supplies the return fields, and pricing is disclosed. The remaining gap is input-format precision (month numbering, year range), which for a simple deterministic conversion is a minor omission.

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 coverage is 0% and there are three required numeric parameters, so the description must compensate. It establishes that year/month/day together form a Gregorian (ISO, Western) date, but does not state the numbering convention (1-12 months?) or valid ranges for any parameter, leaving the schema's bare 'number' types under-specified.

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 (Convert) and two specific resources (Gregorian date -> Jalali calendar), and even disambiguates the calendar by its four aliases (Jalali, Solar Hijri, Persian, Shamsi). An agent can distinguish it from the sibling fa_jalaliToGregorian purely from the direction named.

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 three concrete when-to-use scenarios: displaying dates to Iranian users, scheduling in the Iranian calendar, and converting a Gregorian deadline. It does not explicitly name fa_jalaliToGregorian as the inverse alternative, so routing to the reverse tool is left to inference, but the forward direction is unambiguous.

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