Skip to main content
Glama

x402-margin-calc

Margin Calc: Margin Calc

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
costNoCost to process
priceNoPrice to process
marginNoMargin to process
revenueNoRevenue to process
marginPercentNoMarginPercent to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

D1.4/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Margin Calc: Margin Calc' reveals nothing about expected inputs, computation behavior, rounding, return format, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short, but this is under-specification rather than conciseness. It repeats the tool name and front-loads no useful information, so every token is wasted.

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

Completeness1/5

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

With 5 optional string parameters, no annotations, and no output schema, the description must explain what inputs are needed, what the tool computes, and what it returns. It supplies none of this, leaving an agent unable to invoke the tool correctly.

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 100%, which provides a baseline of 3. However, the schema descriptions only say 'X to process' for each parameter, adding little meaning beyond the parameter names. The description itself contributes nothing about how cost, price, margin, revenue, and marginPercent relate or which combinations are valid.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose1/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is exactly 'Margin Calc: Margin Calc', a pure tautology that restates the tool name without adding any verb, resource, or specific behavior. It does not distinguish this tool from related siblings such as x402-gross-margin, x402-profit-margin, or x402-markup-calc.

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

Usage Guidelines1/5

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

No guidance is given about when to use this tool versus alternatives like x402-profit-margin, x402-markup-calc, or x402-margin-of-error. There is no context, prerequisite, or exclusion information to help an agent select it appropriately.

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