Skip to main content
Glama

Base token safety check

base_token_check
Read-onlyIdempotent

Base token safety check for one ERC-20 contract: proxy/upgradeable, owner and whether it is renounced, mint, blacklist, pause, fee/tax and limit switches found in the bytecode, DEX liquidity, pair age and 24 h buys/sells, risk flags, a 0-100 score and a grade A-F. Paid per call. Price: 10 sats or US$0.01 (USDC) per call.

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": {
      "token": "<token>"
    },
    "name": "base_token_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
l402NoOptional. After paying the Lightning invoice: '<token>:<preimage>'.
passNoOptional. A Diamond budget token (dp_...) that your user approved once (from US$0.89; USDC or other Base tokens, or Lightning) or that you funded with the free diamond_budget tool. Each call deducts its price; no wallet needed in the agent.
tokenYesERC-20 token contract address on Base (0x + 40 hex characters)
pay_withNoOptional. 'lightning' requests a BOLT11 invoice and a token when Diamond can receive Lightning payments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pay_with / description
      Previous value: -"Optional. 'lightning' returns a BOLT11 invoice and a token instead of the x402 payment request."New value: +"Optional. 'lightning' requests a BOLT11 invoice and a token when Diamond can receive Lightning payments."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnly/idempotent/openWorld=false; the description adds the crucial commercial behavior that this is paid per call at 10 sats or US$0.01 and that the result is a scored, graded verdict. It does not describe the payment-failure path (e.g. a 402/invoice response) or any rate limits, though the schema fields l402/pass/pay_with cover the mechanics.

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 coverage are front-loaded in the first sentence, followed by a short pricing sentence with no filler. The coverage list is dense but each item is a distinct signal an agent would care about when choosing the tool.

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 must convey return content, and it does so by listing score, grade A-F, risk flags and the individual checks. Payment semantics are partly delegated to schema fields, leaving a small gap on response shape and error/payment-flow behavior.

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%, including patterns, enum and per-field explanations for l402, pass, token and pay_with, so the schema carries parameter meaning. The description only reinforces that a single Base ERC-20 address is required and adds nothing about parameter interaction.

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 gives a concrete verb (safety check) and resource (one ERC-20 contract on Base) and then enumerates exactly what is inspected: proxy/upgradeable status, owner renouncement, mint/blacklist/pause/fee switches, DEX liquidity, pair age, buy/sell counts, risk flags, score and grade. That scope ('one ERC-20 contract') clearly separates it from wallet- and transaction-level siblings such as base_wallet_check.

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?

Single-token scope is implied by 'for one ERC-20 contract' and the required token address, but there is no explicit when-to-use or when-not guidance and no named alternative for batch or wallet-level screening. An agent must infer that this is the per-token due-diligence call.

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