x402-flatten
Flatten: Flatten a nested array to a given depth. Provide values and optional depth (default fully flat). 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| values | No |
Flatten: Flatten a nested array to a given depth. Provide values and optional depth (default fully flat). 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| values | No |
Changes observed during successful MCP inspections.
Input schema / properties / depth / descriptionRemoved value: -"Depth to process"Input schema / properties / values / descriptionRemoved value: -"Values to process"Input schema / properties / depthAdded value: +{
+ "description": "Depth 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?
No annotations are provided, so the description carries the full burden. It does add genuine behavioral value by stating that depth is optional and that omitting it flattens fully, plus a pricing/auth note about 5 free trial calls per signed wallet. It omits what happens with non-array or malformed input and says nothing about the return shape, which for a 0% documented schema is a real gap.
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?
The description is two tight sentences with the core behavior front-loaded. The redundant 'Flatten:' prefix repeating the tool name is wasted space, but otherwise every sentence carries 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 simple two-parameter utility with no output schema, the description covers purpose and the default-depth behavior adequately. It falls short by not specifying the serialization format expected for values or depth, which is the main failure mode when both inputs are untyped strings.
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 description coverage is 0% and both parameters are typed only as strings, so the description must compensate. It does clarify that depth is optional with a fully-flat default, which the schema does not encode. It never explains that values likely needs to be a JSON-encoded array or that depth is a numeric string, leaving the most error-prone interpretation unaddressed.
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 states a specific verb and resource: 'Flatten a nested array to a given depth.' An agent can tell this is array flattening rather than object flattening. However, it does not differentiate itself from near-name siblings such as x402-json-flatten or x402-matrix-flatten, so the distinguishing work is partly left to the agent.
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 use this versus x402-json-flatten or x402-matrix-flatten, and no mention of input constraints or prerequisites. The only usage-adjacent content is how to supply parameters and a note about free trial calls, which is billing context rather than selection guidance.
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.