Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

Which functions this code carries

chain_bytecode_capabilities
Read-onlyIdempotent

Scans deployed bytecode for 4-byte selectors we can name from a derived table: what this contract can be asked to do, read off the code rather than trusted from a README. Costs $0.001 USDC per call. Chains: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche. Byte-identical to GET /chain/bytecode-capabilities?chain=base&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&count=8.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYeschain key: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche [required]
countNohow many named selectors to list (max 60) (default 40)
addressYestarget address, 0x + 40 hex [required]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
noteNo
chainNo
namedNo
staleNo
caveatNo
reasonNo
sourceNo
addressNo
chainIdNo
hasCodeNo
chainLabelNo
namedCountNo
bytecodeSizeNo
push4CandidatesNo
unnamedSelectorCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "address": {
      +      "type": "string"
      +    },
      +    "bytecodeSize": {
      +      "type": "integer"
      +    },
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chainId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "chainLabel": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "hasCode": {
      +      "type": "boolean"
      +    },
      +    "named": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "namedCount": {
      +      "type": "integer"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "push4Candidates": {
      +      "type": "integer"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "ts": {
      +      "type": "string"
      +    },
      +    "unnamedSelectorCount": {
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already indicate readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false, so the tool is clearly a safe, read-only, idempotent operation. The description adds useful context about cost ($0.001 per call) and that results are derived from code rather than assumed, which goes beyond the annotations. However, it doesn't detail response structure or error behavior, but that is partially covered by the output schema.

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?

The description is concise, with three sentences covering purpose, pricing, and chain list. It is front-loaded with the main purpose. The mention of a byte-identical GET endpoint is useful for debugging but adds a bit of extra length. Overall, every sentence earns its place, though it could be slightly tightened.

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?

The description is complete for an agent to call the tool correctly: it explains what it does, costs, supported chains, and parameter defaults. The output schema is present, so return values are documented elsewhere. Cost and the difference from trusting a README are not in the schema or annotations, making the description cover the needed context.

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%, so the schema already documents all parameters. The description adds context like the default count (40) and max (60) for the count parameter, which is helpful but not critical. The chain parameter's supported values are listed both in the schema description and the tool description, so the description adds limited extra value. Baseline 3 is appropriate.

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?

The description clearly states it scans deployed bytecode for 4-byte selectors and identifies named functions. It distinguishes from siblings like chain_bytecode_fingerprint by focusing on function discovery rather than fingerprinting. However, the phrasing 'which functions this code carries' is somewhat colloquial and could be more precise.

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?

The description implies usage when you need to know what functions a contract supports by reading on-chain code, not trusting documentation. It mentions pricing and supported chains, which helps decide when to use it. However, it does not explicitly state when NOT to use it or mention any alternatives.

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