Skip to main content
Glama
Prem07a
by Prem07a

detect_earnings_quality

Identify earnings-quality red flags for Indian stocks: profit vs cash-flow gaps, receivables/inventory outpacing revenue, and other-income reliance. Generates a 0-100 score and flags.

Instructions

Flag earnings-quality concerns for an NSE/BSE-listed Indian equity: profit rising while operating cash flow falls, receivables/inventory growing faster than revenue, heavy reliance on non-operating "other income", and whether cash flow has actually backed reported profit. Produces a 0-100 score (share of checks that came back clean) plus a flag list. These are observations worth investigating, not proof of a problem.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagsYes
scoreNo0-100: equal-weighted share of checks that came back clean (cfo>ni, fcf-positive, no outpacing receivables/inventory, no heavy other-income reliance) across the years evaluated
symbolYes
years_usedYes
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 full responsibility for behavioral disclosure. It specifies the output format (0-100 score plus flag list), explains what the score means (share of clean checks), and adds an important interpretive caveat that findings are observations, not proof of a problem. It does not explicitly state read-only behavior, but the analytical nature and output description make that reasonably clear.

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 description is efficiently front-loaded with the core action, followed by a scannable list of detection criteria, output summary, and caveat. Each sentence adds useful content; the param line is clearly separated. It is slightly longer than necessary but every portion serves a purpose.

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?

For a one-parameter analysis tool with an output schema, the description is largely complete: it explains inputs, detection logic, output semantics, and the interpretive stance of the results. The main gap is lack of differentiation from sibling analysis tools, and it does not mention any data-freshness or coverage limitations, but these do not prevent correct invocation.

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 only a required string field named 'symbol' with no description, so the description must compensate. It does this well by defining the parameter as a ticker symbol and providing concrete examples: RELIANCE, TCS.NS, TCS.BO. This gives the agent enough format context to construct a valid call, though it does not exhaustively specify all exchange-suffix rules.

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?

Starts with a specific verb and resource: "Flag earnings-quality concerns for an NSE/BSE-listed Indian equity." The description then enumerates the exact checks performed (operating cash flow versus profit, receivables/inventory growth, other income, cash-flow backing), clearly distinguishing it from broad ratio or health-score siblings. This leaves no ambiguity about what the tool does.

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?

The description implies appropriate use by defining the tool's scope and output, but it does not explicitly state when to prefer this tool over closely related siblings like detect_accounting_red_flags or analyze_cash_flow_quality. There is no exclusion guidance, so an agent must infer the differentiation from purpose alone.

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