Skip to main content
Glama

get_pnl_metadata

Retrieve trade profit-and-loss metadata, including counts and totals, for a specified segment and financial year, with optional date filtering.

Instructions

Trade P&L metadata (counts/totals) for 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_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentYes
to_dateNodd-mm-yyyy
from_dateNodd-mm-yyyy
financial_yearYese.g. 2425 for FY 2024-25

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?

With no annotations and no output schema, the description carries the full behavioral burden. It indicates that the tool returns counts/totals, which is useful, but it does not disclose response structure, whether results are aggregated across the date range, permission requirements, or how from_date/to_date interact with the financial year.

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 definition is a single front-loaded sentence with no filler. It is concise, though its brevity comes at the cost of the usage and behavioral detail an agent would need for unambiguous selection.

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 read-only tool with four parameters, two date filters, no annotations, and no output schema, the description is too thin. It omits when to choose this over sibling P&L tools and does not describe how date filtering affects the counts/totals, leaving meaningful invocation details to inference.

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%, so most parameters are already documented, and the description adds little parameter-level meaning beyond naming segment and financial year. It does not explain the optional from_date and to_date filters or how they constrain the metadata totals.

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 identifies a specific resource, 'Trade P&L metadata (counts/totals)', and distinguishes it from detailed P&L tools by emphasizing counts and totals. It also names the scoping dimensions, segment and financial year, so an agent can tell this is an aggregate metadata lookup rather than a detailed trade P&L report.

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 gives no explicit guidance on when to use this tool versus alternatives such as get_trade_pnl or get_pnl_charges. The 'metadata (counts/totals)' phrase implies summary usage, but the definition never states when this should replace a detailed P&L query or how the date filters affect scope.

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