Skip to main content
Glama
GunsNPrices

GunsNPrices

Official

Ammo cost per round

cost_per_round
Read-only

Calculates the price per round for ammunition from a listing's total price and package round count, and extracts the round count from the title when missing.

Instructions

Compute the cost per round of an ammo listing from its price and round count. If the round count is not given, it is read from the title ('50/Box', '1,000 Rounds', 'Box of 20', '20/25').

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": {
      "price": "<price>"
    },
    "name": "cost_per_round"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceYesPrice in USD
titleNoAmmo title, used to read the round count and caliber
roundsNoRounds in the package

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the resolution order for the round count (parameter first, then title extraction) and the title patterns it recognizes. It stops short of disclosing behavior when no round count can be recovered or what the computed value looks like.

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 sentences, no filler. The core computation comes first and the conditional fallback follows immediately, so the reader hits the essential contract before any detail.

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?

For a three-parameter, read-only calculation tool with no output schema, this covers the main ambiguity — where the round count comes from. The remaining gap is the return value and the failure mode when the title yields no round count, which an agent would otherwise have to discover by calling it.

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?

With schema coverage at 100%, the schema already defines price, title, and rounds, so the baseline is 3. The description does add concrete format examples ('50/Box', '1,000 Rounds', 'Box of 20', '20/25') that clarify what the title parser accepts, but it doesn't explain precedence beyond the one fallback sentence or the relationship between title and rounds when both are supplied.

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?

States a specific verb and derived resource: 'Compute the cost per round of an ammo listing from its price and round count.' An agent can tell this is a calculation tool rather than a lookup or parser, though it never names a sibling such as parse_product_title to draw the boundary explicitly.

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

Usage Guidelines3/5

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

Provides one useful conditional rule — that the round count falls back to the title when not supplied — which tells the agent how to call it with minimal input. It gives no guidance on when to prefer this over the title-parsing sibling, and no note on when to skip it (e.g., unparseable titles).

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