Skip to main content
Glama

get_pnl_charges

Break down charges and taxes on realised profit and loss for a chosen segment and financial year, helping you review the net P&L impact.

Instructions

Charges and taxes breakdown for realised P&L in a segment and financial year.

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": {
      "segment": "<segment>",
      "financial_year": "<financial_year>"
    },
    "name": "get_pnl_charges"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentYes
to_dateNodd-mm-yyyy
from_dateNodd-mm-yyyy
financial_yearYese.g. 2425

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does not say whether charges are actual or estimated, what units/currency apply, whether results are per-trade or aggregated, or what the response looks like — significant gaps for a financial read tool with no output schema.

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 front-loaded sentence with no filler or repetition. Its brevity is efficient, though it borders on terse given the tool's missing behavioral detail.

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

Completeness2/5

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

For a 4-parameter financial tool with no annotations and no output schema, the description omits essential context: parameter interaction (FY vs date range), return shape, and which segment values mean what. It is not complete enough for confident invocation.

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 75% and the schema already documents date formats ('dd-mm-yyyy', 'e.g. 2425'). The description adds no meaning beyond that — it does not explain the segment enum abbreviations (EQ/FO/COM/CD) or how financial_year interacts with from_date/to_date.

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?

The description names a specific resource ('charges and taxes breakdown') tied to a specific computation ('realised P&L'), scoped by segment and financial year. That distinguishes it from a plain P&L tool like get_trade_pnl, though it never names or contrasts a sibling explicitly.

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?

It states the domain (realised P&L charges for a segment and FY) but gives no explicit when-to-use, no prerequisites, and no alternative to pick when total P&L rather than the charges breakdown is wanted. Usage is only inferable from the resource name.

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