Skip to main content
Glama

x402-rotate

Rotate: Rotate an array left by k positions. Provide values and optional k (default 1). 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
kNo
valuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / k / description
      Removed value: -"K to process"
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / k
      Added value: +{
      +  "description": "K to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / values
      Added value: +{
      +  "description": "Values to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses the left direction and the k=1 default, but says nothing about edge behaviour (k larger than the array, negative or zero k) or what the response looks like; the trial-call note is commercial, not behavioral.

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?

Two short sentences, front-loaded with the core operation and then the argument guidance. The opening 'Rotate: Rotate an array...' repeats the name and wastes a few tokens, but there is no padding otherwise.

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

Completeness2/5

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

With no annotations, no output schema, and zero schema descriptions, the definition leaves the agent guessing how to serialize 'values' and what happens near boundary k values. For a two-parameter tool whose params are both untyped strings, that is a meaningful gap.

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 coverage is 0% and both parameters are typed 'string' despite describing an array and a count, so the description must resolve the format — yet it never says whether 'values' is JSON, comma-separated, or space-separated. It adds only the default value for k, leaving the critical encoding of 'values' ambiguous.

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?

'Rotate an array left by k positions' gives a specific verb, resource and direction, enough to separate it from neighbours like x402-reverse-array or x402-sorted-array. It stops short of naming any sibling it is not, so 4 rather than 5.

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?

'Provide values and optional k (default 1)' implies the required call shape and the default, which is real usage information. There is no statement of when to pick this over the other array-manipulation siblings, and no caveats such as k exceeding the array length.

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