Skip to main content
Glama

Profit get contribution

profit_get_contribution
Read-only

Contribution margin: revenue minus ad spend, product cost and overhead. Dates are YYYY-MM-DD; range is a preset such as 7d, 30d, 90d, yesterday, last_week, last_month, last_quarter. client_id picks the brand (defaults to the active one); extra passes any other field the app accepts.

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

Input Schema

NameRequiredDescriptionDefault
extraNo
rangeNo
date_toNo
user_idNo
client_idNo
date_fromNo
user_emailNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real context by defining what the metric includes (ad spend, product cost, overhead), but says nothing about whether dates and range are mutually exclusive, how missing cost data is handled, or other invocation behavior.

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?

Three tight sentences that front-load the metric definition, then parameters. Minimal waste; the range preset list is dense but earned since the schema has no enum.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and annotations present, the description needn't explain returns or safety, and the metric formula is a valuable inclusion. It is still incomplete for a 7-parameter tool: two parameters are undocumented and date-range precedence is unstated.

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 coverage is 0%, so the description must compensate and it partly does: date format YYYY-MM-DD, the preset range values (7d, 30d, 90d, yesterday, last_week, last_month, last_quarter), client_id defaulting to the active brand, and extra as a passthrough. However, user_id and user_email are left entirely undefined, and the interaction between range and date_from/date_to is not explained.

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?

States the specific metric being computed: 'Contribution margin: revenue minus ad spend, product cost and overhead.' That formula distinguishes it from generic analytics siblings, though the verb is implicit and it never names which sibling it differs from.

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?

No when-to-use or when-not-to-use guidance and no comparison to alternatives such as profit_get_ltv or profit_get_cost_settings. The agent must infer the scenario from the metric definition alone.

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.