Skip to main content
Glama
JuanDsm04

finanzas-pyme

by JuanDsm04

detectar_gastos_atipicos

Detect unusual spending by comparing each category to its own history. Uses z-scores to flag outliers and identify the transactions behind them.

Instructions

Detecta gastos inusuales comparando cada categoria contra su propio historial.

Util para responder "hubo algun gasto raro?" o para explicar por que un mes salio mal. Calcula el z-score de cada categoria por mes y reporta las desviaciones que superan el umbral, junto con el movimiento que las explica.

Args: meses: Cuantos meses hacia atras inspeccionar (minimo 3). umbral_z: Desviaciones estandar minimas para reportar un gasto como atipico. 2.0 es estricto; 1.5 muestra mas casos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mesesNo
umbral_zNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden of outlining side effects. It implies a read-only analysis (calculates z-scores, reports deviations) but never explicitly states that it does not modify data or access sensitive information. This lack of explicit safety disclosure leaves room for uncertainty.

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 concise and well-structured, with a brief narrative followed by an 'Args' section that clearly maps parameters to their meanings. It is front-loaded with the core purpose and avoids extraneous details.

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?

For an analysis tool with two parameters and a clear methodology, the description provides sufficient context to use it correctly. It explains the input (months back, threshold) and the expected behavior (calculate z-scores, report deviations with explanations), even without detailing the output schema.

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

Parameters5/5

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

Both parameters are fully explained in the description: 'meses' is defined as how many months to look back (with a minimum of 3) and 'umbral_z' as the standard deviation threshold with practical guidance (2.0 strict, 1.5 more cases). This goes well beyond the bare schema.

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 states the tool's function: detecting unusual expenses by comparing each category against its own historical data. It explicitly mentions the z-score method and reporting deviations, which distinguishes it from sibling tools like simple breakdowns or income trends.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides concrete use cases: answering 'hubo algún gasto raro?' and explaining why a month went badly. However, it does not explicitly contrast with alternatives or state when not to use this tool, so some inference is needed.

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

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/JuanDsm04/mcp-finanzas-pyme'

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