Skip to main content
Glama

Apdex Score Calculator

apdex-score-calculator
Read-onlyIdempotent

Use this when a user asks about their Apdex score or wants to measure user satisfaction with response times. Takes satisfied, tolerating, and total request counts; satisfied plus tolerating may not exceed total. Returns the Apdex score (0–1) and its rating on the published five-band scale: excellent, good, fair, poor or unacceptable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYesAll requests in the sample, including frustrated ones (slower than 4T or failed).
satisfiedYesRequests answered within the target threshold T.
toleratingYesRequests answered between T and 4T.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ratingYes
next_stepYes
apdex_scoreYes
rating_bandYes
next_step_urlYes
satisfied_pctYes
total_samplesYes
why_follow_upYes
frustrated_pctYes
interpretationYes
tolerating_pctYes
affiliate_contextNo
computation_basisYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / satisfied / description
      Previous value: -"satisfied used by this deterministic tool."New value: +"Requests answered within the target threshold T."
    • changedInput schema / properties / satisfied / examples
      Previous value: -[
      -  1
      -]New value: +[
      +  850
      +]
    • changedInput schema / properties / tolerating / description
      Previous value: -"tolerating used by this deterministic tool."New value: +"Requests answered between T and 4T."
    • changedInput schema / properties / tolerating / examples
      Previous value: -[
      -  1
      -]New value: +[
      +  100
      +]
    • changedInput schema / properties / total / description
      Previous value: -"Total number of requests observed in the measurement window."New value: +"All requests in the sample, including frustrated ones (slower than 4T or failed)."
    • changedInput schema / properties / total / examples
      Previous value: -[
      -  1
      -]New value: +[
      +  1000
      +]
    • addedOutput schema / properties / frustrated_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / rating_band
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / tolerating_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / total_samples
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "apdex_score",
      -  "computation_basis",
      -  "interpretation",
      -  "next_step",
      -  "next_step_url",
      -  "rating",
      -  "satisfied_pct",
      -  "why_follow_up"
      -]New value: +[
      +  "apdex_score",
      +  "computation_basis",
      +  "frustrated_pct",
      +  "interpretation",
      +  "next_step",
      +  "next_step_url",
      +  "rating",
      +  "rating_band",
      +  "satisfied_pct",
      +  "tolerating_pct",
      +  "total_samples",
      +  "why_follow_up"
      +]
  2. Changed8 schema fields changed
    • addedInput schema / properties / satisfied / description
      Added value: +"satisfied used by this deterministic tool."
    • addedInput schema / properties / satisfied / examples
      Added value: +[
      +  1
      +]
    • addedInput schema / properties / tolerating / description
      Added value: +"tolerating used by this deterministic tool."
    • addedInput schema / properties / tolerating / examples
      Added value: +[
      +  1
      +]
    • addedInput schema / properties / total / description
      Added value: +"Total number of requests observed in the measurement window."
    • addedInput schema / properties / total / examples
      Added value: +[
      +  1
      +]
    • addedOutput schema / properties / computation_basis
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "apdex_score",
      -  "interpretation",
      -  "next_step",
      -  "next_step_url",
      -  "rating",
      -  "satisfied_pct",
      -  "why_follow_up"
      -]New value: +[
      +  "apdex_score",
      +  "computation_basis",
      +  "interpretation",
      +  "next_step",
      +  "next_step_url",
      +  "rating",
      +  "satisfied_pct",
      +  "why_follow_up"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "affiliate_context": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affiliate": {
      +          "type": "string"
      +        },
      +        "cta_label": {
      +          "type": "string"
      +        },
      +        "disclosure": {
      +          "type": "string"
      +        },
      +        "framing": {
      +          "type": "string"
      +        },
      +        "posture": {
      +          "enum": [
      +            "secondary"
      +          ],
      +          "type": "string"
      +        },
      +        "slot_id": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "variant": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "affiliate",
      +        "cta_label",
      +        "disclosure",
      +        "framing",
      +        "posture",
      +        "slot_id",
      +        "url",
      +        "variant"
      +      ],
      +      "type": "object"
      +    },
      +    "apdex_score": {
      +      "type": "number"
      +    },
      +    "interpretation": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "next_step_url": {
      +      "type": "string"
      +    },
      +    "rating": {
      +      "type": "string"
      +    },
      +    "satisfied_pct": {
      +      "type": "number"
      +    },
      +    "why_follow_up": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "apdex_score",
      +    "interpretation",
      +    "next_step",
      +    "next_step_url",
      +    "rating",
      +    "satisfied_pct",
      +    "why_follow_up"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  5. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources