Skip to main content
Glama

ScorpTech x402 Tools

Depreciation

depreciation
Read-onlyIdempotent

Depreciation schedules: straight-line, declining balance (any factor, optional switch to straight-line), double-declining, sum-of-the-years-digits and US MACRS GDS (3/5/7/10/15/20-year, half-year convention, computed from the IRS rules: 200% or 150% DB switching to straight-line). Year-by-year depreciation, accumulated depreciation and book value. Returns JSON with: method, cost, salvage, lifeYears, totalDepreciation, schedule. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/depreciation

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": {
      "cost": "<cost>",
      "lifeYears": "<lifeYears>"
    },
    "name": "depreciation"
  }
}

Input Schema

NameRequiredDescriptionDefault
costYesAsset cost (basis)
methodNostraight-line
salvageNoSalvage value (ignored by MACRS)
dbFactorNodeclining-balance factor (2 = double)
lifeYearsYesUseful life; for MACRS the recovery class 3, 5, 7, 10, 15 or 20
switchToStraightLineNoDeclining balance: switch to straight-line when it gives more

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavioral facts: x402 payment of $0.002 USDC per successful call on Base or Solana, plus an equivalent HTTPS GET endpoint. It does not discuss failure/refund behavior, but the pricing disclosure is substantive.

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?

Method roster is front-loaded, followed by output semantics, then pricing/endpoint. Dense but every clause carries information; nothing is restated from the schema verbatim and there is no filler.

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?

With no output schema, the description compensates by enumerating the returned JSON fields (method, cost, salvage, lifeYears, totalDepreciation, schedule) and describes the computation depth. Pricing and transport alternatives are also covered, leaving only error/edge-case behavior as an omission.

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?

Schema coverage is 83%, so baseline is 3; the description goes beyond it by explaining that dbFactor accepts any factor and that declining-balance can optionally switch to straight-line, and by spelling out the MACRS 200%/150% DB-to-straight-line mechanics and half-year convention. It also clarifies that the MACRS lifeYears value is a recovery class rather than a literal life, which is a meaningful disambiguation.

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?

States a specific verb+resource (compute depreciation schedules) and enumerates the exact methods supported, including MACRS GDS classes and conventions. An agent knows precisely what this produces (year-by-year depreciation, accumulated depreciation, book value) without opening the schema.

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?

No explicit when-to-use/when-not guidance or named alternative, though the tool is a self-contained calculator whose method enum makes the input choices self-evident. Some applied guidance is embedded (salvage ignored by MACRS, lifeYears doubles as recovery class for MACRS), but it does not tell the agent when to pick this over another approach.

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