Skip to main content
Glama

SaaSCity

Net Promoter Score

calculate_nps
Read-onlyIdempotent

Net Promoter Score from the counts of promoters (9-10), passives (7-8) and detractors (0-6), with the margin of error at 95% confidence. Full calculator: https://saascity.io/free-tools/nps-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": {
      "promoters": "<promoters>",
      "passives": "<passives>",
      "detractors": "<detractors>"
    },
    "name": "calculate_nps"
  }
}

Input Schema

NameRequiredDescriptionDefault
passivesYesResponses scoring 7 or 8
promotersYesResponses scoring 9 or 10
detractorsYesResponses scoring 0 to 6

Output Schema

NameRequiredDescriptionDefault
resultYesThe calculator result; percentages as 0-1 shares unless the key says pct
calculator_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, closed-world computation, so the safety profile is covered. The description adds genuine behavioral detail beyond that — the result includes a margin of error at 95% confidence — telling the agent what kind of statistic comes back.

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?

A single front-loaded sentence that defines the computation and its confidence level, followed by a link. The external URL is mildly promotional but does not obscure the core statement.

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 simple three-parameter arithmetic tool with a documented schema and an output schema, the description says enough to invoke it correctly. Only edge-case behavior (zero total responses, integer-only counts) is unaddressed.

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% and the schema itself defines the 0-6, 7-8, 9-10 bands. The description restates those same bands rather than adding new semantics, so the baseline 3 applies.

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 computed metric (Net Promoter Score) and the exact inputs it derives from, including the score bands for each category. It does not differentiate itself from metric siblings such as calculate_arr or calculate_churn, but the resource is unambiguous.

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?

Usage is only implied: you supply the three respondent counts and receive an NPS. There is no statement of when to prefer this over other metric tools, no prerequisites, and no note on valid input ranges or zero-response cases.

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.