Skip to main content
Glama

get_sales_report

OWNER ONLY: read the purchase ledger (totals + recent records, split by human vs agent buyers). Requires the admin_key (the ADMIN_KEY env var of the deployment).

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": {
      "admin_key": "<admin_key>"
    },
    "name": "get_sales_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax recent records to return (default 50, max 500)
admin_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 does disclose the important behavioral traits: privileged/owner-scoped access and an explicit credential source (the ADMIN_KEY env var of the deployment). It does not mention rate limits or pagination/truncation behavior, which is the remaining gap for a reporting read.

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?

Two short clauses, front-loaded with the access restriction, then the data scope and credential. Every element (owner restriction, ledger contents, buyer split, key source) is load-bearing; nothing is padding.

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?

Without an output schema or annotations, the description still conveys the return shape (totals plus recent records, split by buyer type) and the auth requirement, which is what an agent needs to invoke it correctly. Minor omissions are pagination semantics and any rate-limit or failure behavior.

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?

Schema coverage is 50%: 'limit' is self-documented, but 'admin_key' has no schema description. The description compensates by telling the agent exactly what admin_key is (the deployment's ADMIN_KEY env var), which is meaning the schema does not supply.

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?

States a specific verb ('read'), a specific resource ('the purchase ledger'), and the payload it exposes ('totals + recent records, split by human vs agent buyers'). That is enough to distinguish it from every sibling, all of which are payment/order-creation or pricing tools rather than ledger reads.

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?

'OWNER ONLY' plus the admin_key requirement establishes a clear access precondition for when this tool is callable. It does not name an alternative or state what to do when the caller is not the owner, so it stops short of explicit when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources