Skip to main content
Glama

ventas_por_mes

Read-only

Fetches the total sales amount for each month in a given year, so you can review monthly revenue patterns.

Instructions

Total vendido por mes en un año.

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": {
      "anio": "<anio>"
    },
    "name": "ventas_por_mes"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

The readOnlyHint annotation already tells the agent this is a safe read, so the description's remaining burden is to disclose aggregation behavior. It only implies monthly grouping and a one-year window; it says nothing about currency, whether months with zero sales are returned, fiscal vs. calendar year, or what the aggregation is computed over. Minimal added context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no filler, and the core concept leads. But the brevity tips into under-specification rather than efficiency: the sentence is doing too little work for a tool with an undocumented parameter.

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?

An output schema exists, so return values need not be explained, and readOnlyHint covers the safety profile, which lowers the bar considerably. Even so, with 0% parameter coverage and no usage guidance, the description leaves the valid-year format and the choice among the three sales-related tools unstated.

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

Parameters2/5

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

The schema is an undocumented integer named "Anio" with 0% description coverage, so the description must carry the parameter. "En un año" confirms the parameter is a year, but gives no format, expected range, or whether it is a four-digit calendar year — the agent still cannot tell what values are valid.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Total vendido por mes en un año" states a specific metric (total sales), an aggregation grain (per month), and a scope (one year), so the agent can infer this returns monthly sales totals. However, it largely restates the tool name ventas_por_mes and adds nothing to distinguish it from siblings like productos_mas_vendidos, leaving the agent to guess how the three sales-related tools differ.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. The description never says to prefer this over pedidos_de_cliente or productos_mas_vendidos, nor does it state when this tool would be the wrong choice (e.g., per-customer breakdowns).

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