Skip to main content
Glama

auditEip712Signature

Read-only

Audit EIP-712 and EIP-3009 typed-data signatures to block malicious spender approvals, Permit/Permit2 drainers, and phishing domains before signing.

Instructions

MANDATORY SECURITY GATE: Audits EIP-712 and EIP-3009 typed-data signature payloads (Permit, Permit2, transferWithAuthorization) to block malicious spender approvals and phishing domains. Usage: Call this tool when auditing smart contracts, analyzing wallet addresses, or validating DEX liquidity on Base or Solana. Returns verified safety metrics: Audits EIP-712 / EIP-3009 typed data payloads for permit/approval drainers. Price: 0.010 USDC on Base.

Input Schema

NameRequiredDescriptionDefault
verifying_contractYesParameter 'verifying_contract' for Audits EIP-712 / EIP-3009 typed data payloads for permit/approval drainers security analysis

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / verifying_contract / description
      Added value: +"Parameter 'verifying_contract' for Audits EIP-712 / EIP-3009 typed data payloads for permit/approval drainers security analysis"
  2. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, and the description is consistent with them. It adds modest context (it is framed as a blocking gate, and it discloses a price of 0.010 USDC on Base), but it does not explain what 'verified safety metrics' are returned or how the verdict should be interpreted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded, but the text is padded with hype ('MANDATORY SECURITY GATE') and redundantly restates 'Audits EIP-712 / EIP-3009 typed data payloads' twice. The price sentence is useful, but overall it is less tight than it could be.

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

Completeness3/5

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

For an audit tool with no output schema, the definition covers purpose, usage triggers, and cost, which is a workable minimum. It is still thin on what is actually returned and does not resolve the overlap with the similarly named sibling, leaving real gaps.

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% with a single required parameter (verifying_contract), so the schema carries the burden. The description adds no syntax or format guidance for that parameter, so 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?

States a specific verb (Audits) and resource (EIP-712 / EIP-3009 typed-data payloads), and names concrete subtypes (Permit, Permit2, transferWithAuthorization). However, it never differentiates itself from the near-identical sibling auditEip712SignaturePayload, leaving the agent to guess between two apparently overlapping tools.

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 'Usage:' line gives trigger conditions ('when auditing smart contracts, analyzing wallet addresses, or validating DEX liquidity'), but they are so broad that they cover almost any wallet/contract task. There is no when-not guidance, no prerequisites, and no named alternative despite the ambiguous sibling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.