Skip to main content
Glama

publishing_print_royalty

Read-onlyIdempotent

Print cost and royalty calculator

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": {
      "pages": "<pages>",
      "fixedCharge": "<fixedCharge>",
      "perPageCharge": "<perPageCharge>",
      "method": "<method>",
      "percent": "<percent>",
      "listPrice": "<listPrice>"
    },
    "name": "publishing_print_royalty"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYesPage count, 1 to 2000.
methodYesrate: you earn percent of the list price. wholesale: percent is the discount given to retailers and you earn the rest.
percentYesThe royalty rate (method rate) or the retailer discount (method wholesale), 0 to 100.
listPriceYesThe list (cover) price per copy, 0 to 1,000,000; above that is a 400. At 0 nothing is earned, so the royalty is the printing cost as a loss.
fixedChargeYesFixed printing charge per copy, in your currency (0 to 1,000,000).
upfrontCostNoOne-off cost (editing, cover, ISBN), 0 to 1,000,000. When given, copiesToRecoverUpfront is how many copies earn it back (at least 1 when the cost is above 0); null when each copy earns nothing. targetRoyalty and upfrontCost may be null, which means not sent.
perPageChargeYesPrinting charge per page, in the same currency (0 to 1,000,000). Printing cost per copy = fixedCharge + perPageCharge x pages and must also be at most 1,000,000.
targetRoyaltyNoThe royalty per copy you want to earn, 0 to 1,000,000. When given, priceForTargetRoyalty is the lowest list price (to the cent) that earns it; null when the royalty share is 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed10 schema fields changed
    • changedInput schema / properties / fixedCharge / description
      Previous value: -"Fixed printing charge per copy, in your currency (0 or more)."New value: +"Fixed printing charge per copy, in your currency (0 to 1,000,000)."
    • addedInput schema / properties / fixedCharge / maximum
      Added value: +1000000
    • changedInput schema / properties / listPrice / description
      Previous value: -"The list (cover) price per copy, 0 or more. At 0 nothing is earned, so the royalty is the printing cost as a loss."New value: +"The list (cover) price per copy, 0 to 1,000,000; above that is a 400. At 0 nothing is earned, so the royalty is the printing cost as a loss."
    • addedInput schema / properties / listPrice / maximum
      Added value: +1000000
    • changedInput schema / properties / perPageCharge / description
      Previous value: -"Printing charge per page, in the same currency (0 or more). Printing cost per copy = fixedCharge + perPageCharge x pages."New value: +"Printing charge per page, in the same currency (0 to 1,000,000). Printing cost per copy = fixedCharge + perPageCharge x pages and must also be at most 1,000,000."
    • addedInput schema / properties / perPageCharge / maximum
      Added value: +1000000
    • changedInput schema / properties / targetRoyalty / description
      Previous value: -"The royalty per copy you want to earn, 0 or more. When given, priceForTargetRoyalty is the lowest list price (to the cent) that earns it; null when the royalty share is 0."New value: +"The royalty per copy you want to earn, 0 to 1,000,000. When given, priceForTargetRoyalty is the lowest list price (to the cent) that earns it; null when the royalty share is 0."
    • addedInput schema / properties / targetRoyalty / maximum
      Added value: +1000000
    • changedInput schema / properties / upfrontCost / description
      Previous value: -"One-off cost (editing, cover, ISBN), 0 or more. When given, copiesToRecoverUpfront is how many copies earn it back; null when each copy earns nothing."New value: +"One-off cost (editing, cover, ISBN), 0 to 1,000,000. When given, copiesToRecoverUpfront is how many copies earn it back (at least 1 when the cost is above 0); null when each copy earns nothing. targetRoyalty and upfrontCost may be null, which means not sent."
    • addedInput schema / properties / upfrontCost / maximum
      Added value: +1000000
  3. Changed11 schema fields changed
    • changedInput schema / properties / fixedCharge / description
      Previous value: -"Fixed printing charge per copy"New value: +"Fixed printing charge per copy, in your currency (0 or more)."
    • addedInput schema / properties / listPrice / description
      Added value: +"The list (cover) price per copy, 0 or more. At 0 nothing is earned, so the royalty is the printing cost as a loss."
    • removedInput schema / properties / listPrice / exclusiveMinimum
      Removed value: -0
    • addedInput schema / properties / listPrice / minimum
      Added value: +0
    • changedInput schema / properties / method / description
      Previous value: -"rate: royalty percent of list price; wholesale: discount given to retailers"New value: +"rate: you earn percent of the list price. wholesale: percent is the discount given to retailers and you earn the rest."
    • addedInput schema / properties / pages / description
      Added value: +"Page count, 1 to 2000."
    • changedInput schema / properties / perPageCharge / description
      Previous value: -"Charge per page"New value: +"Printing charge per page, in the same currency (0 or more). Printing cost per copy = fixedCharge + perPageCharge x pages."
    • addedInput schema / properties / percent / description
      Added value: +"The royalty rate (method rate) or the retailer discount (method wholesale), 0 to 100."
    • addedInput schema / properties / targetRoyalty / description
      Added value: +"The royalty per copy you want to earn, 0 or more. When given, priceForTargetRoyalty is the lowest list price (to the cent) that earns it; null when the royalty share is 0."
    • addedInput schema / properties / targetRoyalty / minimum
      Added value: +0
    • addedInput schema / properties / upfrontCost / description
      Added value: +"One-off cost (editing, cover, ISBN), 0 or more. When given, copiesToRecoverUpfront is how many copies earn it back; null when each copy earns nothing."
  4. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The annotations establish read-only, idempotent, non-destructive, closed-world behavior, and the description is consistent with them. Beyond calling the tool a calculator, it adds no behavioral context about per-copy results, rounding, null outcomes, or limit handling; those details are left to structured fields, and there is no output schema.

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?

The six-word phrase is front-loaded and contains no wasted wording. However, for an eight-parameter tool with multiple calculation modes, it is closer to a label than a well-proportioned operational description.

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?

The rich schema and safety annotations make correct invocation possible, but the description omits major capabilities such as wholesale discounts, minimum pricing for a target royalty, and copies needed to recover upfront costs. With no output schema, a brief statement of calculated results and optional analyses would materially improve selection and expectation setting.

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 description coverage is 100%, including the method enum semantics, printing-cost formula, ranges, and optional-parameter behavior. The description therefore meets the baseline for fully documented parameters but adds no parameter-specific meaning beyond broadly naming print cost and royalty.

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 identifies a concrete calculation over print costs and royalties, with a subject matter distinct from publishing siblings such as ISBN or spine-width tools. It does not reveal the rate-versus-wholesale methods or the optional target-price and upfront-cost recovery calculations, so its scope remains high-level.

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?

There is no explicit when-to-use guidance, prerequisite, exclusion, or alternative. “Calculator” implies a general use case, but the agent must inspect the schema to discover whether the tool supports target pricing, retailer-discount calculations, or upfront-cost recovery.

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