Skip to main content
Glama

margin_calc

Calculate profit margin and markup using cost price and selling price to make informed pricing decisions.

Instructions

margin calc — Finance & Math tool. Costs $0.001 USDC via x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNoTool parameters as JSON object
Behavior2/5

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

The only behavioral detail disclosed is the cost ($0.001 USDC via x402), which is useful but minimal. With no annotations, the description carries the burden of explaining what the tool does, but it only gives a vague category. It does not mention any side effects, return values, or operation details.

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 very short, but the brevity comes from under-specification rather than efficient communication. It reads as a fragmented label, not a well-structured tool description. The cost information is the only substantive addition.

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?

Given the tool's name and the large set of sibling finance/math calculators, this description is grossly inadequate. It does not explain what margin is being calculated, what inputs are needed, or what output to expect. The lack of an output schema and annotations further amplifies the incompleteness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has a single generic 'params' object with no specific attributes, and the description provides no explanation of what parameters the margin calculator expects. The schema description 'Tool parameters as JSON object' is a placeholder, so the tool description adds no value in explaining parameter usage.

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

Purpose2/5

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

The description essentially restates the tool name ('margin calc') and adds a generic category ('Finance & Math tool') without specifying what margin calculation it performs. It fails to distinguish from sibling calculators like loan_calculator or percentage_calculator, making the purpose unclear.

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?

The description provides no guidance on when to use this tool vs alternatives. It does not state any use cases, prerequisites, or comparisons to other finance/math tools, leaving the agent to guess.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gadgethumans-dev/gadgethumans-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server