Skip to main content
Glama

Channel Ops Demo

Calculate example campaign contribution

demo_contribution
Read-onlyIdempotent

Subtract refunds, fulfillment, fees and campaign costs from example cash receipts. Use illustrative USD values only.

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": {
      "collected_usd": "<collected_usd>",
      "refunds_usd": "<refunds_usd>",
      "delivery_fees_usd": "<delivery_fees_usd>",
      "campaign_cost_usd": "<campaign_cost_usd>"
    },
    "name": "demo_contribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
refunds_usdYes
collected_usdYes
campaign_cost_usdYesProduction, promotion, tools and loaded team time in USD.
delivery_fees_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world behaviour, so the safety profile is fully covered elsewhere. The description's real contribution is that the operation is a pure arithmetic computation over illustrative/synthetic USD inputs, which reassures an agent nothing is written. It says nothing about the shape or rounding of the result.

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 sentences, the operational formula front-loaded and the data constraint second. Every clause carries information and there is no filler.

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?

For a four-required-number pure function with complete annotations, the essentials are present. However, there is no output schema and the description never states that the return is a single net-contribution figure, nor how values are formatted or rounded, leaving a modest gap an agent must infer.

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 only 25% — just campaign_cost_usd carries its own description — so the description must compensate. It does map the four inputs conceptually (cash receipts, refunds, fulfillment/fees, campaign costs) and pins the currency to USD, but it adds no detail on the remaining parameters beyond their names and no units or precision guidance.

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 concrete computation: subtract refunds, fulfillment, fees and campaign costs from cash receipts. Verb and resource are both specific, so an agent can tell it is a net-contribution calculator rather than a drafting tool like draft_campaign_link. It loses a point only because the 'demo/example' framing makes the scope of the tool itself slightly ambiguous.

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?

'Use illustrative USD values only' is a data constraint, not guidance on when to call this versus another tool. There is no statement of when this calculator is appropriate, no preconditions, and no mention of the only potential alternative, draft_campaign_link.

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.