Skip to main content
Glama

Compares the runtime bytecode of two Ethereum contracts you

agent_intel_bytecode_similarity_radar
Read-only

Compares the runtime bytecode of two Ethereum contracts you name: the share of shared PUSH4 function selectors (Jaccard) and the cosine similarity of their opcode frequencies, combined into one 0 to 1 score with a SIMILAR, PARTIAL or DIFFERENT label. It compares two addresses only; it has no database of known scam or exploit templates, so it cannot say a contract is a known clone. Price: $0.003 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "agent_intel_bytecode_similarity_radar"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst contract address 0x... (40 hex)
bYesSecond contract address 0x... (40 hex)

Output Schema

NameRequiredDescriptionDefault
aNo
bNo
noteNo
labelNo
scoreNo
bytesANo
bytesBNo
sourceNo
checkedAtNo
selectorsANo
selectorsBNo
opcodeCosineNo
selectorJaccardNo
sharedSelectorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description's added value is the billing model — $0.003 per successful call via x402 in USDC across Base, Solana and 10+ networks, with failed calls uncharged. That is useful cost/auth context beyond the annotations. It does not touch latency, rate limits, or behavior on an address that is an EOA rather than a deployed contract, which the schema does not cover either.

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-loaded with the mechanism and metrics, then the scope limitation, then pricing — a sensible order. The single dense block with a long clause chain ("the share of ... (Jaccard) and the cosine similarity ... combined into one ...") costs a little readability, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is not required, and the description still summarizes what the score and label mean. For a two-address read-only comparison, everything an agent needs to decide and invoke — cost, payment rail, scope limit, output shape — is present.

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 coverage is 100% — both parameters are documented with 0x/40-hex format — so the schema carries the semantic load. The description reinforces that exactly two contract addresses are involved and that both are contracts, but adds no format, ordering, or constraint detail beyond the schema. Baseline 3 applies.

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 — comparing the runtime bytecode of two named Ethereum contracts — and goes further to name the two metrics (Jaccard on PUSH4 selectors, cosine similarity of opcode frequencies) and the output form (0-1 score with SIMILAR/PARTIAL/DIFFERENT). Nothing here could be confused with a sibling like deployer_rug_forensics or honeypot_trap_detector.

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?

Gives an explicit negative boundary: it compares two addresses only and has no template database, so it cannot declare a contract a known clone. That is a real when-not-to-use signal. It stops short of naming a sibling to use instead for known-clone/scam matching, which keeps it off a 5.

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