Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-duration-humanize

Duration Humanize: Turn a duration in seconds into a short human string such as '1d 2h 30m'. Takes seconds. Returns human and seconds as the absolute value used. 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "seconds": "<seconds>"
    },
    "name": "x402-duration-humanize"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNo
secondsYes
durationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "seconds"
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / duration / description
      Removed value: -"Duration to process"
    • removedInput schema / properties / seconds / description
      Removed value: -"Seconds to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. First observed

TDQS

B3.2/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 burden. It does disclose two useful behaviors: the return shape ('human and seconds') and the notable quirk that the return value is 'the absolute value used,' which warns that negative input is coerced. It also discloses the paywall ('5 free trial calls per signed wallet'), which is real behavioral context. Gaps remain: no error behavior for malformed input and no statement of output precision/rounding.

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?

Three short sentences, front-loaded with the verb and an example, so an agent can read the core purpose in one line. The trial-call promo sentence serves policy rather than invocation and is slight padding, but it is not costly.

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

Completeness3/5

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

With no output schema, the description correctly spends words on the return value, and the absolute-value note is exactly the kind of behavioral detail that would otherwise be missing. However, for a tool with three undocumented parameters and no annotations, it leaves too much of the input contract unexplained.

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 description coverage is 0% across three declared properties (value, seconds, duration) with only seconds required. The description says only 'Takes seconds,' leaving an agent to guess whether value and duration are aliases, whether they override seconds, or whether sending both is an error. That is a meaningful ambiguity given the 0% coverage.

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 transformation with both input and output: convert seconds into a short human string, illustrated with the concrete example '1d 2h 30m'. It does not acknowledge the nearly identically named siblings (x402-duration-human, x402-duration, x402-duration-iso), so an agent must infer the difference from the name alone.

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?

Usage is implied by the input/output shape — call it when you have seconds and want a display string — but there is no explicit when-to-use, when-not-to-use, or pointer to the sibling formatters that produce ISO or plain duration output. The only conditional statement in the definition is the pricing note, not operational guidance.

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