Skip to main content
Glama

Get operating costs

get_operating_costs
Read-only

Period costs not tied to an order (advertising, storage, penalties, platform fees, reimbursements) by type and channel; these sit outside SKU P&L margin. Amazon and Flipkart only, on settlement date; default last 30 days.

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": "get_operating_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoStart date (ISO, e.g. 2026-10-01, IST day). For "this month" send the 1st of the current month; for "last month" send its 1st with until = its last day. Default: 30 days ago.
untilNoEnd date (ISO, inclusive IST day). Default: today.
channelNoLimit to Amazon or Flipkart. Default: both.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / since / description
      Previous value: -"Start date (ISO, e.g. 2026-10-01, IST day). Default: 30 days ago."New value: +"Start date (ISO, e.g. 2026-10-01, IST day). For \"this month\" send the 1st of the current month; for \"last month\" send its 1st with until = its last day. Default: 30 days ago."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a safe read operation, so the description's job is narrower and it delivers the one fact an agent could easily get wrong: the date window is evaluated on settlement date, not order date. The channel restriction to Amazon/Flipkart is also behavioral context beyond the annotations. It stops short of describing aggregation or result shape, though the output schema covers that.

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?

One sentence plus a compact constraint clause: inclusions, exclusions, channel limits, date basis and defaults, in that order. No filler, and the scope-defining content is front-loaded before the operational constraints.

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?

With an output schema present, the description needn't explain return values, and it covers scope, date semantics, channel limits and defaults adequately for a read-only three-parameter tool. Minor residual gaps — currency and whether results are aggregated by type/channel — are partially handled by 'by type and channel' and the output schema.

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 100%, so all three parameters are already self-documenting and the baseline is 3. The description earns an extra point by clarifying that since/until filter on settlement date, which the schema's 'Start date (ISO)' wording never states, and by restating the effective defaults in one place.

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?

Names a specific resource and enumerates exactly what falls inside it (advertising, storage, penalties, platform fees, reimbursements), while explicitly excluding order-tied costs and SKU P&L margin. The negative scoping ('not tied to an order', 'outside SKU P&L margin') lets an agent separate this from order-level and P&L-margin siblings without opening their schemas.

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?

Usage is implied through scope statements — reach for this when you need period costs that aren't attributable to an order — but no sibling is named as an alternative or exclusion path ('use get_fee_breakdown for...'). The hard constraints that are given ('Amazon and Flipkart only, on settlement date') are useful but are eligibility rules, not routing 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