Skip to main content
Glama

ScorpTech x402 Tools

Prorate

prorate
Read-onlyIdempotent

Prorate a money amount across a date range, in exact cents. The window is half-open: from the start date up to but not including the end date. The charge is amount × days used / days in the period, rounded half away from zero. The used range has to sit inside the period. Returns JSON with: amount, periodDays, usedDays, fullAmount, method. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/prorate

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": {
      "amount": "<amount>",
      "periodStart": "<periodStart>",
      "periodEnd": "<periodEnd>",
      "useStart": "<useStart>",
      "useEnd": "<useEnd>"
    },
    "name": "prorate"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
useEndYes
useStartYes
periodEndYes
periodStartYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, openWorld), it discloses the rounding mode (half away from zero), the half-open interval convention, the returned JSON fields, and a per-call price plus payment protocol. Cost and payment rails are exactly the kind of behavior an agent needs and cannot get from the structured fields.

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?

Five tight sentences, front-loaded with purpose, then the window convention, formula, constraint, and return shape. The trailing pricing and HTTPS endpoint line is compact and directly relevant to invocation.

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?

There is no output schema, but the description enumerates the returned keys, and annotations cover safety and idempotency, so an agent has what it needs to call and interpret the result. Only date and amount string formats remain unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description carries the burden and does well: it assigns meaning to periodStart/periodEnd as the period, useStart/useEnd as the used range, and states the containment constraint. It leaves the string formats implicit (maxLength 10 suggests YYYY-MM-DD, and 'amount' as a string in cents is not spelled out), which keeps it short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

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: 'Prorate a money amount across a date range, in exact cents.' It is unambiguous and clearly distinct from the arithmetic/number-theory siblings, and the half-open window convention is stated in the same breath.

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

Usage Guidelines4/5

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

It states the key precondition ('the used range has to sit inside the period') and gives the exact formula, which tells an agent when the call will be valid. There are no explicit when-not-to-use cases or named alternatives, but for a single-purpose calculator there is little to disambiguate.

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