Skip to main content
Glama
Local Business Data & Report Analyst

Local Business Data & Report Analyst

refund_analysis

Analyze refund rates by product and identify top refund reasons for a chosen date range. Use it to pinpoint return issues and compare periods.

Instructions

Analyze refund rate per product and top refund reasons for an optional date range.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "refund_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNo
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose what is computed (per-product refund rate plus ranked refund reasons), which implies an aggregation/read operation. However, it says nothing about permissions, how many reasons are returned, or what happens when no dates are supplied, leaving meaningful behavioral gaps for an unannotated tool.

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?

A single front-loaded sentence with zero filler; the output dimensions are named before the date constraint. It is efficiently sized, though it lacks any structural separation of what versus when.

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?

An output schema exists, so return shape need not be explained, and the remaining complexity is low (two optional date parameters). The one gap, default date-window behavior, is minor and partly implied by "optional date range."

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 description coverage is 0%, so both start_date and end_date are undocumented in the schema. The description compensates only partially: it establishes that the two parameters form an optional date range, but gives no format (ISO, epoch), no default window when omitted, and no inclusivity semantics.

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 names a specific verb ("Analyze") and concrete outputs ("refund rate per product" and "top refund reasons"), which clearly separates it from sibling aggregates like sales_summary or top_products. It stops short of explicitly contrasting with any named sibling, so it lands at a clear-but-not-differentiated 4.

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?

The only usage signal is "optional date range," which hints the tool can be called without parameters. There is no statement of when to prefer this over sales_summary, monthly_trend, or top_products, and no when-not-to-use guidance.

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