Skip to main content
Glama

ScorpTech x402 Tools

License Detect

license_detect
Read-onlyIdempotent

Identify a software / content licence from a LICENSE file, source header or SPDX expression and explain what it allows: 40 licences incl. MIT, Apache-2.0, BSD-2/3/4, ISC, 0BSD, GPL/LGPL/AGPL v2/v3, MPL-2.0, EPL, EUPL, Unlicense, CC0, Creative Commons BY/SA/NC/ND, and source-available BUSL / SSPL / Elastic / PolyForm / Commons Clause. Returns SPDX id, confidence, category (permissive, weak / strong / network copyleft, non-commercial, source-available), OSI approval, permissions / conditions / limitations, "or later" detection, SPDX-License-Identifier tags and copyright holders. Offline; not legal advice. Returns JSON with: license, matches, declared, copyright, proprietary, words. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/license-detect

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "license_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
spdxNoOr an SPDX licence expression, e.g. "MIT OR Apache-2.0", "GPL-2.0-or-later WITH Classpath-exception-2.0"
textNoLICENSE / COPYING text, README section or source file header

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that detection runs offline, that results include a confidence value and a category taxonomy, that 'or later' and SPDX-License-Identifier tags are detected, that output is JSON with named keys, and that it is not legal advice. It also surfaces cost and payment mechanics ($0.002 USDC per successful call via x402, Base or Solana) and an alternate HTTPS endpoint, which are operationally important and not captured by any structured field.

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?

Purpose and input forms are front-loaded, and the long licence enumeration earns its place by signalling coverage to a matching agent. The return-field list, pricing sentence and URL are appended in a somewhat dense run-on tail, but no sentence is purely 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 naming the returned JSON keys and the enrichment fields (category, OSI approval, permissions/conditions/limitations, copyright holders), and it flags cost and offline behavior. The one unresolved gap is that both parameters are optional and the description never says what a zero-argument call yields.

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

Parameters3/5

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

Schema description coverage is 100% and both parameters already carry example-rich descriptions, so the baseline is 3. The prose adds some meaning about what kinds of text are acceptable but does not map behavior to the spdx versus text parameters or explain precedence when both are supplied.

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 and resource (identify a software/content licence) and enumerates the accepted input forms (LICENSE file, source header, SPDX expression). The scope is narrowed further by naming the licence families covered and the classification scheme, so an agent can tell this apart from generic detectors like file_type_detect or pii_detect.

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?

The description makes the applicable situations reasonably clear by listing input shapes (LICENSE/COPYING text, README section, source header, SPDX string), which implicitly tells an agent when this tool fits. However, it never names an alternative or states when not to use it, and it does not clarify what happens if both parameters are omitted, so routing guidance stays implicit rather than explicit.

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