Skip to main content
Glama

optimism_contract_risk

Use when: is this Optimism contract risky (owner, proxy, mint, pause, blacklist)? Heuristic risk flags for a Optimism contract from free public data: Sourcify verification, upgradeable proxy + admin, owner type, mint/pause/blacklist/fee selectors, bytecode size, and a flag for copycats of major tokens (USDC, USDT, WETH...) at a non-official address. Not an audit or financial advice. Costs $0.005.

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": {
      "address": "<address>"
    },
    "name": "optimism_contract_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the data source ('free public data', Sourcify), the exact signal set returned, and the pricing ('Costs $0.005'). It also caps expectations ('Heuristic', 'Not an audit or financial advice'). Undisclosed are the failure mode for unverified/non-contract addresses and the response shape or confidence level.

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?

Front-loads the decision trigger in a 'Use when:' clause before the feature list and caveats. It is dense but every clause carries a distinct signal; the only mild clutter is the uneven parenthetical list of checks, which mixes categories (verification, proxy, selectors, copycats) in one sentence.

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?

No output schema and no annotations, so the description must define both the purpose and the return semantics — which it largely does by enumerating the risk flags. Missing details (result format, handling of unverified contracts, chain confirmation) are modest gaps rather than blockers for invoking a single-address tool.

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?

Only one parameter, and the schema gives it a regex pattern but zero description coverage. The prose implies the address must be an Optimism contract address through context, but it never states that the target must be a contract, what happens if an EOA is passed, or which chain is assumed if the address exists elsewhere.

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?

Names a specific resource (an Optimism contract) and a specific output type (heuristic risk flags), and enumerates the dimensions it checks: Sourcify verification, proxy/admin, owner type, mint/pause/blacklist/fee selectors, bytecode size, copycat detection. It never explicitly contrasts itself with the sibling optimism_address_inspect, so an agent must infer that this is the risk-oriented counterpart rather than the general inspector.

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?

Opens with an explicit trigger: 'Use when: is this Optimism contract risky (owner, proxy, mint, pause, blacklist)?' and adds a negative scope ('Not an audit or financial advice'). It does not name alternative tools or state when a different sibling (e.g. optimism_address_inspect or token_deep_scan) should be preferred.

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