Skip to main content
Glama

Contribution breakdown

get_contribution_breakdown
Read-onlyIdempotent

The full descent from net revenue to contribution for the current period: net revenue, cost of goods sold, gross profit, ad spend and contribution after media, each with its share of revenue. Use for any question about margin structure, COGS, gross profit, or what is left after costs — get_summary does NOT carry COGS or gross profit. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the last 30 days, which is not that month.

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period.
fromNoFirst day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / from / description
      Added value: +"First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period."
    • addedInput schema / properties / to / description
      Added value: +"Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, so the safety profile is covered. The description adds genuinely new behavioral context: the default period is the last 30 days, bounds are inclusive, and dates may never be after today. It does not describe pagination, freshness, or currency handling, so it stops short of a 5 given there is no output schema to fill that gap.

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?

Front-loaded with the returned fields, then the routing rule, then the parameter constraint — a sensible order with no filler sentences. There is mild duplication of the schema's 'both or neither, never after today' wording, which costs a little tightness but reinforces a correctness-critical rule.

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?

With no output schema, the description compensates by enumerating every returned line item and noting each carries its share of revenue. Combined with the default-period disclosure and the sibling differentiation, an agent has enough to select and call this correctly without further context.

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 the baseline is 3 and the schema already documents format, inclusiveness, and the send-both-or-neither rule. The description goes beyond the mechanics to the business intent — the operator's stated month or date range must be passed here rather than relying on the default — which is meaning the schema does not convey.

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 names a specific resource and its exact decomposition: net revenue, COGS, gross profit, ad spend, contribution after media, each with share of revenue. It also explicitly separates this from get_summary by stating get_summary does NOT carry COGS or gross profit, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

It gives a direct usage trigger ('any question about margin structure, COGS, gross profit, or what is left after costs'), names the alternative it supersedes (get_summary), and adds a hard rule: a named month, week, or two dates the operator gave MUST be sent here, because otherwise the default 30-day read will not match. Both when-to-use and the failure mode of not following it are stated.

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