Skip to main content
Glama

ag_calc_stats

Deterministic descriptive statistics for a numeric series.

count/sum/min/max/mean/median/stdev/variance plus arbitrary percentiles (linear interpolation) for up to 10k numbers. Exact arithmetic instead of model estimation.

Deterministic, fixture-verified, free for guests (rate-limited; pass your Guild api_key to use your member budget). Returns the result plus a Guild-signed provenance envelope.

payload MUST match this JSON Schema: {"type": "object", "properties": {"values": {"type": "array", "items": {"type": "number"}, "minItems": 1, "maxItems": 10000}, "percentiles": {"type": "array", "items": {"type": "number", "minimum": 0, "maximum": 100}}}, "required": ["values"], "additionalProperties": false}

Output schema: {"type": "object", "properties": {"count": {"type": "integer"}, "sum": {"type": "number"}, "min": {"type": "number"}, "max": {"type": "number"}, "mean": {"type": "number"}, "median": {"type": "number"}, "stdev": {"type": "number"}, "variance": {"type": "number"}, "percentiles": {"type": "object"}}, "required": ["count", "mean", "median", "percentiles"], "additionalProperties": false}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
payloadYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: determinism, fixture verification, guest rate limits, API key usage for member budget, and the return of a Guild-signed provenance envelope. It also states the 10k number limit, covering important operational characteristics beyond what the schema alone conveys.

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 description is compact but information-dense, covering output statistics, input constraints, authentication, and provenance in a few sentences. It is front-loaded with the core purpose and avoids redundancy, though the embedded JSON Schema adds length. Every sentence contributes value, deserving a 4.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity and the presence of an output schema, the description is highly complete. It explains what the tool computes, the input shape, the output envelope, rate limits, authentication, and determinism guarantee. No critical context is missing for an agent to decide whether and how to invoke it correctly.

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

Parameters5/5

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

Though schema description coverage is 0%, the description embeds the complete payload JSON Schema, explicitly defining 'values' (array of numbers, min/max items) and 'percentiles' (array of numbers 0-100). It also explains the api_key parameter's purpose (guest rate limit vs member budget), providing far more meaning than the generic input schema.

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 deterministic descriptive statistics for a numeric series, listing specific statistics (count, sum, min, max, mean, median, stdev, variance, percentiles). It distinguishes itself from siblings by emphasizing exact arithmetic rather than model estimation, which is unique among the listed tools.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool: when exact, deterministic statistics are needed for up to 10k numeric values. It implies it should be used over model-based estimation ('Exact arithmetic instead of model estimation'), but does not explicitly name alternative tools or state when not to use it, keeping it just below a 5.

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.

TDQS

A4.1/5.0
Disambiguation4/5

Tools are grouped by prefix (ag_calc_, ag_data_, ag_json_, ag_table_, ag_text_), which helps disambiguate. However, some clusters like guild_search, guild_check, guild_risk_score, and guild_best_agent have overlapping goals (all find or evaluate agents), and guild_prove and guild_prove_verify are tightly coupled but distinct. Overall, most tools have clear purposes.

Naming Consistency4/5

The tools follow a consistent verb_noun or domain_verb pattern (e.g., ag_calc_stats, ag_data_dedupe, guild_search). The mix of ag_ and guild_ prefixes is slightly inconsistent, but within each group naming is uniform. No chaotic mixing of cases (all snake_case). Minor deduction for the split prefix.

Tool Count3/5

39 tools is on the high side for a single MCP server. While the tools are genuinely useful and cover distinct deterministic utilities plus guild trust operations, the count feels heavy. A more focused split (e.g., separate server for deterministic utilities vs. guild trust) could improve coherence.

Completeness5/5

The server covers a broad set of deterministic utilities (statistics, unit conversion, JSON, CSV, regex, date normalization) and a full trust/reputation workflow (register, search, check, risk score, escrow, attest, record, passport, verify, preflight). There are no obvious gaps: for the declared capabilities, the tool surface is comprehensive.