Skip to main content
Glama
Prem07a
by Prem07a

analyze_margin_trends

Track gross, operating, and net margin trends across an Indian stock's annual history, showing the percentage-point change from the first to the latest period.

Instructions

Track gross/operating/net margin (as %) across an NSE/BSE-listed Indian equity's available annual history, oldest to newest, plus the first-vs-latest delta in percentage points. Deliberately doesn't label the trend "expanding"/"contracting" -- that interpretation is left to the caller.

:param symbol: ticker symbol, e.g. "RELIANCE", "TCS.NS", or "TCS.BO"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointsYes
symbolYes
net_margin_delta_pctNo
gross_margin_delta_pctNoLatest gross margin minus earliest, in percentage points
operating_margin_delta_pctNo
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses several behavioral traits: it reports margins as percentages, uses available annual history, orders oldest to newest, provides a delta, and deliberately refrains from labeling trends. This is strong behavioral context, though it could mention how missing years are handled.

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?

The description is compact and front-loaded, with no filler. Every sentence adds value, including the explicit note about not labeling trends, which prevents misinterpretation.

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

Completeness5/5

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

Given the single required parameter and presence of an output schema, the description covers the essential semantics: scope, metric types, ordering, delta calculation, and the interpretation boundary. Nothing critical is missing for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides zero description for the symbol parameter, but the description compensates with concrete examples ('RELIANCE', 'TCS.NS', 'TCS.BO') and the term 'ticker symbol,' which clarifies the expected format and exchange suffix conventions. This is sufficient for a single parameter.

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?

The description clearly identifies the tool as tracking gross, operating, and net margins across an Indian equity's annual history, with a specific output of oldest-to-newest ordering and first-vs-latest delta. It is specific enough to distinguish itself from financial ratio and growth metric siblings.

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?

No explicit guidance is given for when to use this tool versus alternatives like calculate_financial_ratios or calculate_growth_metrics. The description explains what the tool does but not the conditions that should lead an agent to select it.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Prem07a/FinMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server