Skip to main content
Glama

get_train_fare

Calculate official IRCTC train fare breakdown by travel class and quota between origin and destination stations for a given train number.

Instructions

Calculate official IRCTC train fare breakdown across travel classes (1A, 2A, 3A, 3E, SL, CC, 2S) and quotas between origin and destination stations.

Input Schema

NameRequiredDescriptionDefault
toYesDestination station code (e.g. "MFP").
fromYesOrigin station code (e.g. "ANVT").
quotaNoBooking quota code ("GN", "TQ", "PT"). Defaults to "GN".GN
train_noYesThe 4-5 digit train number (e.g. "12557").
class_codeNoOptional travel class filter (e.g. "all", "3A", "2A", "SL"). Defaults to "all".all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It signals the data source ('official IRCTC') and that multiple class/quotas are computed by default, but says nothing about whether fares are live or static, whether any authentication or rate limits apply, or how the breakdown is structured.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

A single front-loaded sentence with zero filler: the action, the scope (classes, quotas, origin/destination), and the authoritative source are all packed in without repetition.

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?

All required inputs are documented and there is no output schema, so the description should ideally hint at what the 'breakdown' contains (base fare, reservation charge, GST, etc.) and its likely shape per class. It names the concept but not the returned structure, leaving a moderate gap for a 5-parameter tool.

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 100%, so all five parameters, their defaults, and example values are already documented in the schema. The description reinforces the class-code set (1A, 2A, 3A, 3E, SL, CC, 2S) and quota concept but adds no syntax or format meaning beyond the schema, making the baseline 3 correct.

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 ('Calculate') plus resource ('official IRCTC train fare breakdown') and enumerates the covered classes and quotas between stations, so the agent knows exactly what is returned. It does not explicitly differentiate from siblings, though none of the listed siblings (PNR, availability, schedule) overlap with fare calculation.

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?

Usage is only implied by the verb and resource – there is no explicit 'use this when…' or 'do not use this for…' guidance, and no note on prerequisites such as whether the train must exist or the quota must be valid. An agent can infer the context from the name, but nothing is stated.

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