Skip to main content
Glama

ScorpTech x402 Tools

Markup Margin

markup_margin
Read-onlyIdempotent

Price, margin and markup in exact cents. Analyze a cost and a price (margin is profit / price, markup is profit / cost). Or set a price from a cost and a margin percent (price = cost / (1 − margin)), or from a markup percent (price = cost × (1 + markup)). Or walk a list of successive discounts off a price, rounding each step half away from zero to the cent. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/markup-margin

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

Input Schema

NameRequiredDescriptionDefault
costNo
modeNoanalyze
priceNo
discountsNoSuccessive percent-off discounts, e.g. 20,10
marginPctNo
markupPctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the read-only/idempotent/non-destructive safety profile, but the description adds real value beyond them: per-call pricing ($0.001 USDC via x402 on Solana), an alternate HTTPS endpoint, and the specific rounding rule (half away from zero to the cent). It doesn't mention validation failures or what happens on malformed strings, keeping this from a 5.

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 core purpose and each subsequent sentence adds a distinct mode or a pricing/rounding fact; no filler. It is denser than ideal — the chained 'Or ... or ... or' structure plus endpoint/pricing detail makes it a single long paragraph — but nothing is redundant.

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

Completeness4/5

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

With 6 optional parameters, 17% schema coverage and no output schema, the description does the heavy lifting: it explains each mode's formula, the rounding behavior, and that results are in exact cents. The remaining gap is that it never states which parameters are required per mode or the shape of the returned values, which an agent must infer.

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 description coverage is only 17%, so the description must carry the load and largely does — it defines what margin, markup, marginPct, markupPct, discounts and price/cost mean and how they relate mathematically. It omits the string encoding conventions (decimal strings with maxLength 20/12) and the exact mode-name-to-field mapping, which keeps it from being fully self-sufficient.

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?

States specific verbs and resources up front: 'Price, margin and markup in exact cents', then names the four computations (analyze, from-margin, from-markup, discount). An agent can distinguish this from nearby finance siblings like unit_economics or invoice_total without opening the schema.

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

Usage Guidelines4/5

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

The description gives explicit mode-selection logic by embedding the formulas each mode implies ('set a price from a cost and a margin percent', 'or from a markup percent', 'or walk a list of successive discounts'), so the agent knows which inputs trigger which behavior. It stops short of naming exclusion cases or alternative sibling tools, so it lands at 4 rather than 5.

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