x402-ngram
Ngram: Generate n-grams from an array of values. Provide values and optional n (default 2); returns consecutive n-item groups. 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| values | No |
Ngram: Generate n-grams from an array of values. Provide values and optional n (default 2); returns consecutive n-item groups. 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| values | No |
Changes observed during successful MCP inspections.
Input schema / properties / n / descriptionRemoved value: -"N to process"Input schema / properties / values / descriptionRemoved value: -"Values to process"Input schema / properties / nAdded value: +{
+ "description": "N to process",
+ "type": "string"
+}Input schema / properties / valuesAdded value: +{
+ "description": "Values to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full load, and it does disclose the default window size, the shape of the result ('consecutive n-item groups'), and the 5-call free trial per signed wallet. It says nothing about edge behavior (empty input, n larger than the array length, ordering) or what payment is required after the trial.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two compact sentences plus a pricing tagline, with the core operation stated first and the parameter note immediately after. Nothing is redundant, though the emoji pricing note is boilerplate padding rather than tool-relevant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a two-parameter, no-output-schema utility the description is roughly sufficient, but the unresolved type mismatch (values as string, n as string) is a real risk for correct invocation given zero schema descriptions. It would be complete with one sentence on input encoding and the post-trial cost.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and both parameters are declared as plain strings, so the schema gives no semantics at all. The description partially compensates by flagging n as optional with a default of 2 and values as the input array, but it never resolves the string-vs-array type ambiguity or says how values should be encoded.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource ('Generate n-grams from an array of values') and states the output shape ('consecutive n-item groups'), so the operation is unambiguous. It does not, however, distinguish itself from the very close sibling x402-ngram-gen, nor from related tools like x402-bigrams or x402-tokenize.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to choose this over alternatives; the only contextual hint is the default of n=2 and the free-trial note. An agent seeing x402-ngram and x402-ngram-gen side by side gets no basis for choosing between them.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.