Skip to main content
Glama

percentiles

Computes p50/p90/p95/p99 via nearest-rank and linear interpolation. Warns when n < 100 that p99 is just the maximum.

Instructions

p50/p90/p95/p99 by nearest-rank AND linear interpolation.

Warns when n < 100 that p99 is just the maximum wearing a label.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numsYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / nums / title
      Added value: +"Nums"
    • addedInput schema / title
      Added value: +"percentilesArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the warning about p99 being the maximum for n<100, which is a key behavioral caveat, and states the calculation methods. However, it does not disclose return format, edge cases (e.g., empty array), or whether both methods are returned separately, leaving some ambiguity.

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?

The description is two sentences, front-loaded with the core purpose, and includes a valuable caveat. Every sentence earns its place with no filler or redundancy. It is appropriately concise for a simple tool.

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?

Given the tool's simplicity (one parameter, no output schema), the description provides the key facts: which percentiles, calculation methods, and a warning. However, it lacks clarity on the output structure (e.g., does it return an object with both nearest-rank and interpolation results?) and does not address potential edge cases, making it incomplete for a fully informed agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for the 'nums' parameter. It provides no explanation of what the array should contain, constraints, or how it is used beyond the tool name. The parameter semantics are essentially left to the schema type alone, which is insufficient.

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?

The description clearly states the tool computes p50/p90/p95/p99 percentile values using two methods (nearest-rank and linear interpolation). It names the specific percentiles and the resource (numeric array), making it distinct from sibling tools like calc_stats which likely provide broader statistics.

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?

The description implies usage when percentile values are needed, but does not provide explicit guidance on when to use this tool over alternatives like calc_stats or compare_threshold. No exclusions or alternative tool mentions are present, so it falls into 'implied usage'.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/The-40-Thieves/codecalc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server