Skip to main content
Glama

x402-ngram

Ngram: Generate n-grams from an array of values. Provide values and optional n (default 2); returns consecutive n-item groups.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoN to process
valuesNoValues to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / n
      Added value: +{
      +  "description": "N to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / values
      Added value: +{
      +  "description": "Values to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the return shape ('consecutive n-item groups') and the default n=2, but does not state that the tool is pure/read-only, side-effect-free, or how it handles invalid input. For a simple computation tool this is adequate, though not rich.

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, front-loaded with purpose, then parameter guidance, then return behavior. Every sentence earns its place with no wasted text.

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 low-complexity tool with no output schema and no annotations, the description covers purpose, parameters, default behavior, and return shape. Missing sibling differentiation and input serialization detail keep it from being fully complete.

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%, but the schema descriptions ('N to process', 'Values to process') are vague. The description adds the default value for n and clarifies output grouping, but conflicts with the schema by calling values an 'array' when the schema type is string, and does not explain expected serialization.

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 resource: 'Generate n-grams from an array of values,' and names the output form. It does not distinguish itself from sibling tools such as x402-ngram-gen or x402-bigrams, so it falls short of full sibling differentiation.

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

Usage Guidelines2/5

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

The description explains how to call the tool by naming inputs and the default n, but gives no guidance on when to use it instead of alternatives like x402-ngram-gen or x402-bigrams. No exclusions or contextual triggers are provided.

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.

Resources